WordPress.org

Ready to get started?Download WordPress

Forums

Snapshot Child Theme not in Appearance>Themes (4 posts)

  1. 2314
    Member
    Posted 1 year ago #

    Hello.
    I am making a child theme for the snapshot theme.
    The first change I want to make is to move the top menu bar below the slider. In other words, the slider to be the top of the page, next the menu bar and then the pics and the rest unchanged.

    I followed the guides for creating child themes and you can check my style.css below, but it is not showing up in the list of themes. I also read here : http://wordpress.org/support/topic/child-theme-not-showing-up-1?replies=8" that creating separate function.php and index for the child theme solved this problem for people who had The call to get_stylesheet_directory() in their functions. This is not the case for snapshot so I need help.

    /*
    Theme Name: snapshot Child
    Description: Child theme for snapshot
    Author: 2314
    Template: snapshot
    */
    
    @import url("../snapshot/style.css");

    The above does not contain any changes but i cannot even get it to show up.

    inb4:
    My child style.css file is located inside of the parent theme, in its own folder named snapshot child.

    I have tried renaming the child css file into style2.css it did not help.

    The parent directory is snapshot; therefore, the template: snapshot should be correct and yes case sensitive.

    Please advise!

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The child theme does not go inside the parent theme - the file structure should be:

    wp-content
       themes
          snapshot
          snapshot child
              style.css

    Put only the style.css file in the child theme to start with.

  3. 2314
    Member
    Posted 1 year ago #

    Ahhh~~That was fast! It worked immediately.
    Thanks and excuse my poor attention to detail.
    Thanks Volunteer Mod WPyogi!

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You're welcome - it's kind of counter-intuitive that a child theme is actually more like a sibling (at least in terms of file structure)!

Topic Closed

This topic has been closed to new replies.

About this Topic