• Resolved aarmfield

    (@aarmfield)


    Hello,

    I am having an issue with wordpress recognizing my child theme so I can activate it. I have followed the instructions from here: (https://codex.www.ads-software.com/Child_Themes)

    The parent theme’s folder is named “optimized_pro” and the child’s is “optimized_pro-child” and each are under the “/wp-content/themes” folder structure. I have 2 files in the child’s folder: “style.css” and “functions.php”.

    I have the following code in those files.

    “style.css”:

    /*
     Theme Name:   Optimizer Pro Child
     Template:     optimizer_pro
    */
    @import url("../optimizer_pro/style.css");

    “functions.php”:

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

    What am I missing? I have scoured the forums, but I have done everything from changing the encoding to using a child theme plugin. Nothing seems to be working (well the child theme plugin worked, but I wasn’t able to change .css file).

    Here is a link to my site: Northwest Integrated Concepts

Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you please re-check the name of your child theme folder? In your post, you said that the child theme folder you created was optimized_pro-child, but I’m sure you meant optimizer_pro-child. However, when I tried to look at your child theme’s stylesheet:

    https://northwestintegrated.com/wp-content/themes/optimizer_pro-child/style.css

    I get a Page Not Found error. That is, I should be able to view your stylesheet by just entering the URL in my web browser. It works for the parent theme’s stylesheet:

    https://northwestintegrated.com/wp-content/themes/optimizer_pro/style.css

    Thread Starter aarmfield

    (@aarmfield)

    Thanks for clarifying that. I typed that wrong in the original post. It should be “optimizer_pro” and “optimizer_pro-child”.

    That being said, I’m not sure why you can’t find the child’s .css file.

    I get the same result, but here is a screenshot of the hosting.

    Thread Starter aarmfield

    (@aarmfield)

    I got this fixed. Apparently, there was a separate folder created in the wrong root and when uploading my child folder and style.css file, I was uploading it to the wrong part of my hosting.

    Once I called tech support for the hosting, I was able to move the files to where they needed to be and was able to access them. Instead of

    https://northwestintegrated.com/wp-content/themes/optimizer_pro-child/style.css

    It should have been /public_html/wp-content, but the URL looks the same.

    Thanks for the help in figuring that out.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Theme: Optimizer Pro] WordPress is not recognizing my child theme’ is closed to new replies.