WordPress.org

Forums

child theme not appearing in themes for activation (24 posts)

  1. Mag_ick
    Member
    Posted 1 year ago #

    Hi, hope you will be able to help.
    I have created a Child template of Spun following the instruction in the WordPress.org codex.

    When I go to my dashboard, Appearance, themes, I cannot find it to activate it. Any ideas?

  2. WPyogi
    Forum Moderator
    Posted 1 year ago #

    What is the code in your new style.css file?

  3. Mag_ick
    Member
    Posted 1 year ago #

    /*
    Theme Name: spun child
    Theme URI: http://example.com/
    Description: Child theme for spun theme
    Author: Your name here
    Author URI: http://example.com/about/
    Template: spun
    Version: 0.1.0
    */
    @import url ("../spun/style.css);

  4. WPyogi
    Forum Moderator
    Posted 1 year ago #

    You're missing a closing quotation mark here and also remove the space between "url" and "("

    @import url ("../spun/style.css);

    But also, is your files structure correct?

    themes
        spun
        spunchild

    What is the name on the child theme folder?

  5. Mag_ick
    Member
    Posted 1 year ago #

    Hi
    It was spun-child which meant it appeared higher up than spun.
    I have changed the name to spunchild and refreshed and it now appears under spun
    also added the closing quotation mark ("../spun/style.css");

    Still cant see it in Appearance, themes. Im assuming it will come up with the other templates Twnety Twelve, Twenty Eleven etc.

  6. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Did you remove the space after "url" in the @import line?

  7. Mag_ick
    Member
    Posted 1 year ago #

    No I hadn't... I have now

    /*
    Theme Name: spun child
    Theme URI: http://example.com/
    Description: Child theme for spun theme
    Author: Your name here
    Author URI: http://example.com/about/
    Template: spun
    Version: 0.1.0
    */
    @import url("../spun/style.css");

    still not working

  8. WPyogi
    Forum Moderator
    Posted 1 year ago #

    How did you create that file? Using a plain text editor and then uploaded?

  9. Mag_ick
    Member
    Posted 1 year ago #

    I created a new text file, but copy and pasted the info from the codex and then edited it.

    Which I thought would be ok in a text editor?? I am v new to this

  10. Andrew
    Nuh uh moderator
    Posted 1 year ago #

    Can you link a webpage with your Child Theme theme activated? Edit NVM didn't read.

  11. Mag_ick
    Member
    Posted 1 year ago #

    Hi Andrew

    The problem is that I cant activate the child theme from the dashboard, its not visible to be selected.

    Edit NVM ??

  12. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Do you have any caching on your site? Also clear your browser cache.

  13. Mag_ick
    Member
    Posted 1 year ago #

    Hi
    I cleared google caching yesterday when I had difficulty making the site live through my Hosts FTP manager.

    Is there another cache I need to look at and how would I get there?

  14. Mag_ick
    Member
    Posted 1 year ago #

    I've cleared the cache again

  15. Andrew
    Nuh uh moderator
    Posted 1 year ago #

    Just to clarify, in which directory is your Child Theme?

  16. Mag_ick
    Member
    Posted 1 year ago #

    C:\Program Files\wordpress-3.6\wordpress\wp-content\themes

    then within themes

    spun
    spunchild
    twentythirteen
    twentytwelve
    index.php

    The wordpress 3.6 had been sitting in downloads and accessed via my desktop. One of the things I thought might help rectify was to move it to Program Files. The Spun compressed files are still in the Download file I think, but the spun files were extracted to the above file path.

  17. Andrew
    Nuh uh moderator
    Posted 1 year ago #

    Are you working locally?

  18. Mag_ick
    Member
    Posted 1 year ago #

    no - Ive just asked my daughter to look at the site from her phone (its running in the parent template)

    Im beginning to think it might be in Appearance and I just cant see it...! Im looing for spun child with or perhaps without a picture. The current page shows spun as the active template with available templates being the Twenty range, and suffusion

  19. Andrew
    Nuh uh moderator
    Posted 1 year ago #

    This path:

    C:\Program Files\wordpress-3.6\wordpress\wp-content\themes

    Is not where your website resides, it's only local to your machine.

    Your website will probably on the server of the hosting organisation you pay for - which has nothing to do with your local machine path (above).

    What looks like the issue is that you're not transferring your Child Theme to where your website files really reside (on the server). You need to do this through FTP.

  20. Mag_ick
    Member
    Posted 1 year ago #

    Thanks
    I spoke to them yesterday as I had installed their holding page. I was advised to change the index.html file to my domain name.

    This is working on the current template as the changes I have been making have shown up on my daughter's phone. So is it that there is no path for the new file structure (spun child) to get to?

    Looks like another call the them.
    Thanks for all your help ... a real problem solver !!

  21. Mag_ick
    Member
    Posted 1 year ago #

    So, just thinking... if I go back into the host FTP file manager, change the domain name (executable) file back to index.html then cahnge it back to my domain name... will that pick up the newly written file?

  22. Mag_ick
    Member
    Posted 1 year ago #

    ok.... I tried the above but it must be other files that are required to be uploaded probably those with a .php extension.

    I'll talk to the web host

    Thanks again for your help

  23. WPyogi
    Forum Moderator
    Posted 1 year ago #

    No, you only need to upload the folder that contains the style.css file. Where is your site hosted?

  24. WPyogi
    Forum Moderator
    Posted 1 year ago #

    if I go back into the host FTP file manager, change the domain name (executable) file back to index.html then cahnge it back to my domain name... will that pick up the newly written file?

    No, you just need to use FTP to upload the file to the theme's folder:

    wp-content
        themes
           spun
           spunchild (PUT THE NEW FOLDER IN HERE)

    Are you using FTP - like FileZilla?

Topic Closed

This topic has been closed to new replies.

About this Topic