• After browsing through a lot of posts in this forum about child themes and looking over the documentation from the codex I still have questions regarding the use of child themes.

    For example: I created a child theme based on the accesslite theme and made changes to the style.css, footer.php, header.php, searchform.php, and the 404.php and no other files. I have added the correct references in the style.css file.

    Yet when I upload the child theme files and folders to the server the only way the website will show everything properly is if I also upload the following files to the child theme folder from the parent theme folder: content-page.php, content.php, index.php, page.php, sidebar-left.php, sidebar-right.php and sidebar-shop.php. I have made no changes to any of those files so why are they needed in able for my site to load properly? Any ideas?

    Also with the enqueue process I see this in the codex:

    <?php
    function my_theme_enqueue_styles() {
    
        $parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
    
        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 ),
            wp_get_theme()->get('Version')
        );
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    ?>

    Am I supposed to change the parent-style and child-style with the actual names of the themes? I tried both ways and they broke my website so I left the enqueue process out of the steps.

    Appreciate any help or direction to move me forward with this issue.

    • This topic was modified 8 years, 6 months ago by nootkan.
  • The topic ‘Another Child Theme Question’ is closed to new replies.