WordPress.org

Ready to get started?Download WordPress

Forums

Church
[resolved] Setting up a child theme (13 posts)

  1. eagles051387
    Member
    Posted 8 months ago #

    I am trying to setup a child theme for this theme, but i am getting an error

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.
    Name Description
    church child The "church" theme is not a valid parent theme.

    Any help would be greatly appreciated.

  2. Noone Here
    Member
    Posted 8 months ago #

    Hello! Could you please share the contents of your child theme's style.css file?

  3. eagles051387
    Member
    Posted 8 months ago #

    this has been copied from another working css style sheet of another child theme i setup

    /*
    Theme Name: church child
    Theme URI: http://mhpo.info/
    Description: Church Child Theme
    Author: Jonathan Aquilina
    Author URI: http://mhpo.info
    Template: church
    Version: 1.0.0
    */

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

    /* =Theme customization starts here
    -------------------------------------------------------------- */

  4. Noone Here
    Member
    Posted 8 months ago #

    Hello!

    I have installed the Church theme to one of my test sites. It looks like the theme is already a child theme, it says in it's style.css, and when you install it, you get the omega theme also, which is the parent. As far as I know, you cannot create a child theme for a child theme, so that is the problem. I could not find any usable solutions to your situation, so I have just this idea that may help you somewhat. You can create your child theme for Omega, and copy the contents of the style.css and other files to your child theme if they were your modifications, and your code to that.

    Cheers,
    Toth Balint BT

  5. eagles051387
    Member
    Posted 8 months ago #

    Shouldnt that have in the name child? whats confusing me is that it is only called church. there is no parent theme what so ever installed.

  6. Andrew
    Forum Moderator
    Posted 8 months ago #

    What is your Child Theme's folder name?

  7. eagles051387
    Member
    Posted 8 months ago #

    church-child.

    This theme was installed automatically through the themes section within the backend of wordpress

  8. Noone Here
    Member
    Posted 8 months ago #

    In the church theme's style.css it says Template: omega on line 12, this is why it is a child theme. The [parent]-child is just a naming convention, WordPress does not needs the parent theme's name to be present in the child's name to work.

  9. eagles051387
    Member
    Posted 8 months ago #

    What happens to modifications of said child theme when parent is updated

  10. Andrew
    Forum Moderator
    Posted 8 months ago #

    Nothing happens.

  11. eagles051387
    Member
    Posted 8 months ago #

    To make sure im understanding this right. The developer of this theme hosts the parent and makes the modifications and we connect to a remote server to inherit from the parent theme?

  12. Noone Here
    Member
    Posted 8 months ago #

    Ok, it looks like we have overcomplicated this, so I apologize for this.

    The answer for your question: no. Everything is on your server. We are downloading the files from a remote server when we install a theme, but from that point on, the files are completely on our server. However, as for plugins, themes also get updates occasionally, and when that happens, WordPress notifies us, and the updates can be downloaded and installed automatically by WordPress, we just have to click a button. And this is a good thing.
    Whenever you update your theme, WordPress deletes all the files in your theme's folder, and downloads the new version's files from the central WordPress server. And there lies our problem, because WordPress has absolutely no way of distinguishing our modifications to the theme from the original files, and it deletes everything on update. This is why people use child themes, so you update the parent theme, but everything you have modified, stays intact. Now here the problem is, that the designer who created the Church theme, has also done this, he also created a child theme for a theme called omega. And he named his child theme Church. So basically when you have downloaded the theme, you have downloaded it together with the theme omega. So Church is a child theme, and you cannot create a child theme for a child theme.
    So I am not 100% sure about this, but because the Church theme is in the WordPress central theme database (meaning you can find it if you search for it in WordPress Dashboard->Appearance->Themes->Add New Theme), it will get updates eventually from the designer. And when you update, you would loose any modifications you have made to it.
    Considering this, I only see one option. Because the Church theme is already a child theme, you don't have to create an other child theme, use it like THAT is the child theme, add modifications, and so on. Of course, the style.css file is not empty, so just add your code to the end of the file.
    The most important thing is to never update the Church theme, if you get a notification that it has updates. This way, you can make sure that the modifications you make to the Church theme won't get overwritten.

    I hope this makes sense, if you have any questions, feel free to ask.

    Cheers,
    Toth Balint BT

  13. eagles051387
    Member
    Posted 8 months ago #

    I understand how they work, but I have never had a theme automatically from the free themes that one can search for have it automatically install a child theme.

    The strange thing is the name of the parent theme isnt called church but omega O_o the naming conventions used with this theme arent correct imho

    Thank for all your help and the clarification :)

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.