BuddyBoss Home – Web Support Forums General BuddyPress (general issues) Child theme customisations not showing

Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #35454
    @beybot

    Hi,

    I read the Child Themes guide and have implemented custom CSS edits in both css/custom.css and css/bbpress.css. However, despite the Child Theme being activated, they aren’t showing up on the front end unless I implement them in the parent theme.

    Any advice would be much appreciated!

    Answers

    #35457

    Child themes are not as difficult as they may appear. The benefits of working off a parent theme means you don’t need to write all the HTML/CSS from scratch. A child theme will automatically use any template files you include, such as sidebar.php or footer.php. But if they are missing, then your child theme will pull the same files from its parent.Applying CSS rules to your theme is just as easy as editing the original. In your case it could be that you are missing some files in your child theme structure their for by default that is falling back to the directions given by the parent theme

    The !important Things

    CSS has a special declaration to mark priority above other styles. The syntax is displayed as !important beginning with the exclamation mark and terminating at the end of your CSS property. This is necessary if you have cascading styles from a parent theme which are overriding your own custom rules.

    Cloning functions.php

    Unlike the main stylesheet, your child theme will import its parent’s functions automatically. This means you don’t need to copy over any of the PHP code to still have it active in your new theme. Yet if you’d like to re-define some of the functions you can build another functions.php and write in your new code with any changes.

    I hope this helps

    #35479
    @beybot

    Christopher, thanks. I checked the child theme files and tried putting !important next to the custom CSS properties, but still no joy.

    #35850
    @milena

    @cwilliams how about saving changes made to theme-functions.php? How does one save these in functions.php?
    thank you 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The question ‘Child theme customisations not showing’ is closed to new replies.