• Resolved nigel52blog

    (@nigel52blog)


    I have looked at previous posts on this and cannot see any obvious mistakes in my CSS code but still saying Template missing when I go to activate it. The site is: https://sirmoor.2ndgoorkhas.com/ it will be a renewal of a site built in Serif WebPlus. Built for charity (I am a newbie to WordPress so likely to be asking quite a few questions I am afraid as I was volunteered to do all their sites for free and have had to learn everything from scratch,)

    Code I am trying to use for the child theme below

    /*
    2.Theme Name: mh-magazine-lite-child
    3.Theme URI: http: //mysite.com/
    4.Description: This is a custom child theme I have created.
    5.Author: my Name
    6.Author URI: http: //mysite.com/
    7.Template: mh-magazine-lite
    8.Version: 0.1
    9.*/
    @import url(“../mh-magazine-lite/style.css”);

    Many thanks Nigel

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator t-p

    (@t-p)

    is this the guide you followed:https://codex.www.ads-software.com/Child_Themes

    Thread Starter nigel52blog

    (@nigel52blog)

    No – I used this one. See link below:

    https://managewp.com/how-to-create-a-child-theme

    Moderator t-p

    (@t-p)

    Also try reviewing WP codex and see if you missed anything

    Susan Langenes

    (@susanlangenes)

    You gotta get those numbers out of there.

    /*
    2.Theme Name: mh-magazine-lite-child
    3.Theme URI: http: //mysite.com/
    4.Description: This is a custom child theme I have created.
    5.Author: my Name
    6.Author URI: http: //mysite.com/
    7.Template: mh-magazine-lite
    8.Version: 0.1
    9.*/

    Should be:

    /*
    Theme Name: mh-magazine-lite-child
    Theme URI: http: //mysite.com/
    Description: This is a custom child theme I have created.
    Author: my Name
    Author URI: http: //mysite.com/
    Template: mh-magazine-lite
    Version: 0.1
    */
    Thread Starter nigel52blog

    (@nigel52blog)

    Dear Susan sorry for the delay in thanking you for your suggestion but as new to WordPress having moved from two other website software trying to get my head round everything.
    Anyway uploaded the new CSS script as below and still getting the error message ‘stylesheet is missing’ I thought the @import ur1(“../mh-magazine-lite.css”) command was supposed to load the script?

    Many thanks Nigel

    /*
    Theme Name: mh-magazine-lite-child
    Theme URI: http: //mysite.com/
    Description: This is a custom child theme I have created.
    Author: my Name
    Author URI: http: //mysite.com/
    Template: mh-magazine-lite
    Version: 0.1
    */
    @import ur1(“../mh-magazine-lite/style.css”)

    Michael

    (@alchymyth)

    uploaded the new CSS script as below

    what file name are you using for that?
    into which folder have you uploaded the file?

    Thread Starter nigel52blog

    (@nigel52blog)

    Michael the folders on the server are as follows:

    Themes
    -index.php
    -mh-magazine-lite
    -mh-magazine-lite-child
    – style.css

    into the style css of the child folder is the following code:

    /*
    Theme Name: mh-magazine-lite-child
    Theme URI: http: //mysite.com/
    Description: This is a custom child theme I have created.
    Author: my Name
    Author URI: http: //mysite.com/
    Template: mh-magazine-lite
    Version: 0.1
    */
    @import ur1(“../mh-magazine-lite/style.css”)

    As I understand it the line above should use the template from mh-magazine-lite.

    regards Nigel

    Thread Starter nigel52blog

    (@nigel52blog)

    Dear forum readers can anybody help with my child theme issues above. All the work I do for Gurkha Regimental Associations and their charities are free of charge and I have been doing this for over 6 years. My current issues is that all the websites need to be cut over to WordPress which is new to me.
    Many thanks.

    Thread Starter nigel52blog

    (@nigel52blog)

    Come on folks I had hoped that moving to WordPress would provide me with an active forum that answers questions. I follow what I am told and always answer other queries. On the Joomla and Serif Webplus forums I have a high record of answering people’s questions and offering IT support and yet so far the WordPress forum has been (well just say disappointing)

    I just tried to create a child theme with the mh-magazine-lite theme —

    I created a new folder inside of the /wp-content/themes/ folder, like:

    /wp-content/themes/mh-magazine-lite-child/

    in that folder, I inserted a style.css, like:

    /wp-content/themes/mh-magazine-lite-child/style.css

    and in that style.css, I inserted:

    /*
    Theme Name: mh-magazine-lite-child
    Theme URI: http: //mysite.com/
    Description: This is a custom child theme I have created.
    Author: my Name
    Author URI: http: //mysite.com/
    Template: mh-magazine-lite
    Version: 0.1
    */
    @import url("../mh-magazine-lite/style.css")

    the child theme activates without problem.

    Thread Starter nigel52blog

    (@nigel52blog)

    Dear Michael that is fantastic thank you very much. I am still not sure what went wrong but following your instructions my child theme is now activated.

    I got volunteered into building websites for various Gurkha Charities 6 years ago and started off with Serif Webplus then Joomla and now they have asked me to change all their sites to WordPress so having to learn all over again. Amazing that one hour of free service 6 years ago has led to my near on full time doing this foc. Oh well a good cause.
    many thanks
    Nigel

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Child Theme Template missing’ is closed to new replies.