Activity

  • Christopher replied to the topic Child theme customisations not showing in the forum BuddyPress (general issues) 9 years, 2 months ago

    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 deafult 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