• Resolved mtjarrett

    (@mtjarrett)


    Hi I am trying to create a child theme for Quest but my Child style.css does not seem to be used at all. Not only have a I tried modifying some of the existing css classes but also I’ve created a new <div> with an original class and nothing happens.

    Is this just the way it is with Quest? Or is there something I need to add to my functions.php? Or should I just call in the voodoo lady down the street?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Theme Author pacethemes

    (@pacethemes)

    Hi

    You could try calling the voodoo lady but i think there is an easy solution:) You have to create a functions.php file in the child theme folder and add the below code in it

    <?php
    add_action( 'wp_enqueue_scripts', 'quest_child_enqueue_styles' );
    
    function quest_child_enqueue_styles() {
    
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    
    }
    Thread Starter mtjarrett

    (@mtjarrett)

    Thanks.

    I do have a functions.php

    I was doing it this way

    function theme_enqueue_styles() {
    
        $parent_style = 'parent-style';
    
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style )
        );
    }
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );

    I changed it to do it your way but that didn’t seem to make any difference.

    Theme Author pacethemes

    (@pacethemes)

    Are you not seeing the styles being applied ? Or the child theme style.css is not loading at all ? can you provide me the site URL

    Thread Starter mtjarrett

    (@mtjarrett)

    https://pgx-info.com

    Styles are not being applied.

    Currently you can notice that there is a class “test” being applied to the <div> that contains the words “See a Sample PGx Report.”

    This is in my styles.css

    .test {
    	color: #ff0000;
    	font-size: 100px;
    }

    Thanks for your time, man.

    Thread Starter mtjarrett

    (@mtjarrett)

    style.css

    it’s named correctly.

    Theme Author pacethemes

    (@pacethemes)

    Issue is because of file permissions, if you try to access the child theme style.css file you get a 403 error, my bet is because of file permissions, it might also be some other reason, but definetly not theme related

    https://pgx-info.com/wp-content/themes/quest-kid/style.css?ver=4.2.4

    Thread Starter mtjarrett

    (@mtjarrett)

    you got a paypal account where I can give you a tip?

    Theme Author pacethemes

    (@pacethemes)

    Did you take a look at Quest Plus and what it has to offer ? Purchasing that is the best tip for us ??

    If you don’t need Quest Plus and just want to give us a donation, please use ravichandrach1[at]gmail.com, also please rate us so that we can reach out to other users

    Thread Starter mtjarrett

    (@mtjarrett)

    thanks for all your help

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Child Theme Stylesheet Not Loading’ is closed to new replies.