WordPress.org

Ready to get started?Download WordPress

Forums

The Bootstrap
Child theme with independent CSS (2 posts)

  1. bob marteal
    Member
    Posted 1 year ago #

    Hi,

    I'm really excited about using this theme. It's been ~3 years since i made a WP theme and things are a bit different. I want to use a child theme to essentially replace all of the CSS in The Bootstrap to 1. just keep it totally separate, 2. use a sass port of bootstrap to update the CSS. I've got a child theme up and running, but now i need to find where the stylesheets are being called from. It seems like it would be best to use something in childtheme/functions.php to do that... I just don't know what.

    So 1.How do stylesheets get called by The Bootstrap and 2. What's my best way to change that so i don't have to messup the original files.

    Thanks,
    ~bob

  2. Hi Bob,

    How exciting, thank you for choosing The Bootstrap for that! :)

    The stylesheet business starts in functions.php on line 208:
    https://github.com/obenland/the-bootstrap/blob/master/functions.php#L208

    On the 'init' hook it registeres all scripts and styles and it enqueues it on the 'wp_enqueue_scripts' hook. You can remove the hooked action the_bootstrap_print_styles() from your child theme and replace it with your own implementation.

    Best,
    Konstantin

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic