CSS file does not have effect

Home Forums WordPress Theme CityBook – Directory & Listing WordPress Theme CSS file does not have effect

This topic contains 5 replies, has 2 voices, and was last updated by  CTHthemes 2 weeks, 1 day ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #38534

    Aron Verhoeven
    Participant

    Supported

    Hi support,

    I’ve placed an style.css file in my childtheme. However, when I try to make some changes in this file, it won’t have effect on my website. But the codes which are already their, do have effect. It seems that new changes to that file do not have effect.

    For CSS changes I have to use the CSS Customizer of WordPress itself.

    Do you have any idea?

    Thanks in advance.

    Aron Verhoeven

    #38551

    CTHthemes
    Keymaster

    Hello, please make sure that sever and browser caches was deleted.

    #38562

    Aron Verhoeven
    Participant

    Supported

    I’m sure that’s not the problem. Also tried Incognito.

    Could this be the problem? Am I using the right notes? https://prnt.sc/q2qnn2

    Or maybe something in the functions.php of my childtheme? https://prnt.sc/q2qo4b

    #38578

    CTHthemes
    Keymaster

    You didn’t enqueue child-theme’s style: https://prnt.sc/q37hya
    Use our code instead.

    #38598

    Aron Verhoeven
    Participant

    Supported

    Where can I find this code?

    Thanks in advance.

    #38618

    CTHthemes
    Keymaster
    
    function citybook_child_enqueue_styles() {
        $parent_style = 'citybook-style'; // This is 'citybook-style' for the Anakual theme.
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css', array('citybook-fonts', 'font-awesome', 'lightgallery', 'slick','citybook-plugins'), null );
        wp_enqueue_style( 'citybook-child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style , 'citybook-color'),
            wp_get_theme()->get('Version')
        );
    }
    add_action( 'wp_enqueue_scripts', 'citybook_child_enqueue_styles' );
    
Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

New featues: CityBook - Listing & Directory WordPress Theme version 2.1.8 was outUpdate now
+