Support » Themes and Templates » WordPress child theme and change of theme's name

  • Resolved Helen-kh

    (@helen-kh)


    I have used Responsive Theme by CyberChimps. I usually like to change the name of the theme to reflect my site’s name. Then I create a child theme.

    – So if I change the name of a theme would it cause problems in automatic upgrades of that theme? Would the upgrade shows up on the dashboard or it doesn’t recognize it anymore?

    Thanks

Viewing 13 replies - 1 through 13 (of 13 total)
  • If you change the parent theme name, it won’t get updates, no.

    Thread Starter Helen-kh

    (@helen-kh)

    Thanks, is there anyway to have a different name but also get the updates?
    I guess it should be only manually, right??

    No way to do so automatically, but if you are making a child theme, you can name that anything you want, so why bother changing the parent theme name?

    Thread Starter Helen-kh

    (@helen-kh)

    That is actually another question.
    I am using a child theme, but doesn’t the child theme folder and style sheet need to be the same as parent’s? For example if the parent is Responsive, the child has to be Responsive-child.
    So, can it be different?

    You can call it whatever you want – the only thing that HAS to be specific to the parent is the Template line in the child theme’s style.css file has to be the same as the name on the parent theme directory (folder) – and that’s case sensitive.

    Thread Starter Helen-kh

    (@helen-kh)

    Ok, that sounds good!

    So I changed the name of the parent back to responsive and the style sheet also is responsive. I activated the parent child, but the site is not showing up, just a white page…

    (at this point the child theme is broken, because it can’t relate to the parent theme, but the parent theme should work???)

    Thread Starter Helen-kh

    (@helen-kh)

    In fact all the other pages are working but the home page. meaning if I add /about after the domain the about page shows up, but the main domain url doesn’t show.

    Is your child theme set up correctly?

    https://codex.wordpress.org/Child_Themes

    Thread Starter Helen-kh

    (@helen-kh)

    Ah, so the name of the folder is not important, all matters is in the style sheet.
    So the name of the parent folder is responsive. and the name of child folder is mysite-child.

    But both style sheets are “Theme Name: responsive”.

    So I activated the child theme and it is working fine even the home page. But when I activate the parent theme, the home page is not showing, only the interior pages.

    This is how it supposed to work or I am missing something here?

    Thanks a lot

    But both style sheets are “Theme Name: responsive”.

    That’s not going to work – you’ll have two themes in your site with the same name.

    That page says:

    The Template line corresponds to the directory name of the parent theme. The parent theme in our example is the Twenty Fifteen theme, so the Template will be twentyfifteen.

    So your child theme style.css file MUST have this:

    Template: responsive

    and the parent theme folder must still be named responsive

    Can you post a link to this site?

    Thread Starter Helen-kh

    (@helen-kh)

    No, unfortunately I can’t. It is on my local server.
    But I am getting this.
    So the name of the “Theme Name” shows up on the dashboard: Appearance->themes
    and the “Template” has to be the same as parent to make it actually relate to parent.

    So far the child theme is working fine. I am just wondering why when I activate the parent theme, the home page is all white.

    Thread Starter Helen-kh

    (@helen-kh)

    Never mind, I found out my problem. I have used a custom template for the home page, but it is not in my parent theme.

    So all is working fine. Thanks so much for your help and resolving my confusion 🙂 that was great!

    Cool, glad to hear you got it sorted out :)!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘WordPress child theme and change of theme's name’ is closed to new replies.