Hello,
I want to add Bootstrap to my Enfold theme and I added this code to functions.php in my child theme:
function theme_add_bootstrap() {
wp_enqueue_style( ‘bootstrap_css’, “https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css”);
}
add_action( ‘wp_enqueue_scripts’, ‘theme_add_bootstrap’ );
Unfortunately this does not work :( . How to do this?
Thanks for help,
best regards
Mario
Hey pilepale,
What exactly is not working? As far as I can see you are only enqueing a CSS file?
Best regards,
Rikard
Hi Rikard,
that was my fault. Everything works fine.
The problem was “very aggressive” browser caching :)
best regards
Mario
Hi Mario,
Glad that it’s resolved. :)
Feel free to comeback if you need further assistance.
Thanks for using Enfold and have a great day!
Best regards,
Nikko