Child theme css

Hello,

I was wondering how I can use the child theme CSS? All the styling I put in there doesn't output the same way as when I put it in the theme options panel Custom CSS?

I like to work in a editor like Coda, which I think helps my process when working on the sites. Is this possible in any way? I'm not sure if this is the same as the static.css part of your documentation?

Thanks, Dennis

Comments

  • Hi Dennis,

    please take a look at http://codex.wordpress.org/Child_Themes to understand how it works for Child Theme exactly.
  • Hi again,

    I have been working with child theme before - but hadn't noticed the missing functions file in the child theme folder, but I finally got it working - maybe you should add a prepared functions.php with this inside the child theme folder?

    <?php

    add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style', 99 );
    function enqueue_parent_theme_style() {
        wp_enqueue_style( 'be-parent-style', get_template_directory_uri().'/style.css' );
        wp_enqueue_style( 'be-child-style', get_stylesheet_directory_uri().'/style.css' );
    }

    Just a thought?

    Thanks.
  • Ok, we'll consider it while future updates. Thanks!
  • Dear Muffingroup,


    we have issues with using the child theme as well.

    We tried different things (among other we tried dennis' code above) and read your link to wordpress.org and a lot more… nothing helped so far and of course there are even more questions than before.


    do we have to change the functions.php? do we have to copy the content of the parent-functions.php to the new one and then change? 

    what do we have to write exactly in the functions.php? do we still have to use the @import… or is it old-fashioned? do we have to implement every .css file in css-folder (i changed something in the shortcodes.css) because of several .css-files instead of one main-css?


    maybe you can give us a short description, how it works concerning to your theme. Or just tell, what to write in the function.php file…?! we are not familiar with php and didn't expect to have to use it.


    Thanks a lot!


  • @amtenbrink As you read on http://codex.wordpress.org/Child_Themes, @import is not a good practice now. This has been changed quite long time ago. But please explain what exactly does not work for you? Because if you mean "ALL", then this is not explanation for us. We must to know what exactly what you want to do and what exactly does not work. Because we always do all modifications as it has been described on http://codex.wordpress.org/Child_Themes and of course it works properly what means that something wrong must be on your side.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.