Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #977933

    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

    #978242

    Hey pilepale,

    What exactly is not working? As far as I can see you are only enqueing a CSS file?

    Best regards,
    Rikard

    #978261

    Hi Rikard,
    that was my fault. Everything works fine.
    The problem was “very aggressive” browser caching :)
    best regards
    Mario

    #978278

    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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add Bootstrap to Enfold’ is closed to new replies.