• I have a premium theme and I am using a child theme in order to make my personalizations.
    The pages I create in the child theme will override the parent pages. No problem.
    But the css will not override the parent css. The parent style.css is empty and all the css is located in a folder called css and the file theme.css.
    I reproduced the files in my child-theme byt it does not matter if I make the changes in style.css or theme.css. None works.

    I created a functions file with this info:

    <?php
    
    add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
    function enqueue_child_theme_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
        wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style')  );
    }

    Any tips to give me how to make it work?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have a premium theme

    Have you asked the developers for help with this ?

    Thread Starter PillanAnder

    (@pillanander)

    Yes, I did. They dont give support for custom changes.

    Thread Starter PillanAnder

    (@pillanander)

    Just discovered that the css properties in the style.css works but the changes comes with a long delay (about 10 min after change is made). What could cause this? Normally I see changes inmediatly. ??

    Just discovered that the css properties in the style.css works but the changes comes with a long delay (about 10 min after change is made). What could cause this? Normally I see changes inmediatly. ??

    Usually it’s because you’re running some sort of caching plugin, like WP Supercache, or an SEO plugin, which can sometimes include some sort of caching function as well. You want to disable those types of plugins when doing development work, then re-activate them when done. It could also be your local broswer’s cache that needs clearing as well. Hit Ctrl-F5 on your keyboard to refresh the cache.

    Thread Starter PillanAnder

    (@pillanander)

    I already checked all that you tell me CrouchingBruin. Thats not the problem. I did refresh my cache also.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Overriding parent theme’ is closed to new replies.