• Resolved lmissenda

    (@lmissenda)


    Hi,

    I have a site that was setup by someone else. I do not have access to the ftp at this time.

    They used the enqueued method of the style sheets.

    There is only one theme in the admin side called willow child.

    I have tried to add styles to the style sheet (which doesn’t look like the complete stylesheet) but I get nothing. It looks like it is ingnoring the child theme stylesheet.

    1. Should I have the parent theme available on the admin side of wp?
    2. Is it possible that the parent theme is outside the wp-content/theme folder?

    I fear that the person who set this site up somehow copied all the files from the parent theme and the child theme to create a new theme. But called it Willow Child.

    Is that the case or is there a reason someone would keep the [arent theme outside the wp-content/themes folder?

    Thanks for any help anyone can give.

    Lisa

Viewing 2 replies - 1 through 2 (of 2 total)
  • It’s a little strange not to have access to the parent theme but without browsing through your setup it’s difficult to make suggestions.

    You can try adding this to your child theme’s functions.php

    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' );

    Let me know if that helps.

    All the best ??

    Thread Starter lmissenda

    (@lmissenda)

    Thanks epicdevspace, I think what has happened is that this is really not a child theme so without access to the ftp I can’t know how the theme is structured. Thanks for the suggestion.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘problem with child theme styling’ is closed to new replies.