Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #166113

    Hi,
    I have written this code in style.css file for child theme
    /*
    Theme Name: EnfoldChild
    Description: A superflexible and responsive Business Theme by Kriesi – <br/> Update notifications available on twitter and facebook:<br/> Follow me on twitter<br/> – Join the Facebook Group
    Version: 1.7
    Author: Kriesi
    Author URI: http://kriesi.at
    Theme URI: kriesi.at/themes/enfold/
    Template: Enfold
    */
    I have also typed this code in functions.php file:
    <?php
    /*
    * Enfold Child Theme functions File
    */
    I have followed each steps for creating child theme as per the vedio given by you.
    Though i am facing error message . I am getting error message as: this child theme require the parent theme.
    I have also tried the zip folder that you have given to me though i am getting error message.
    Please help me out in this.
    Thanks & Regards.

    #166390

    Hey kriru!

    Did you place the main theme files on wp-content/themes folder?

    You should have this code for the following files:

    1.) styles.css

    /*
    Theme Name: Enfold Child
    Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold WordPress Theme. If you plan to do a lot of file modifications we recommend to use this Theme instead of the original Theme. Updating wil be much easier then.
    Version: 1.0
    Author: Kriesi
    Author URI: http://kriesi.at
    Template: enfold
    */
    
    /*Add your own styles here:*/

    2.) functions.php

    <?php
    
    /*
    * Add your own functions here. You can also copy some of the theme functions into this file. 
    * WordPress will use those functions instead of the original functions then.
    */

    3.) A screenshot.

    Best regards,
    Ismael

    #166449

    yes i have did this. But not succeded yet. and i am create child theme for version 1.7

    #166569

    Hello!

    Just to make sure, you have installed parent theme prior to creating child theme and their template names are matching, is that correct?

    Best regards,
    Yigit

    #166611

    yes you are correct

    #167067

    Hello!

    You should place enfold parent folder and enfold child theme folder inside wp-content/themes folder. Is that what you did?

    Regards,
    Ismael

    #168001

    Yes i have do it

    #168219

    Hey!

    Please download the latest version of the theme, Enfold 2.2. This is the screenshot of how your themes folder should look like on a localhost. It is basically the same when you upload the site live.

    Cheers!
    Ismael

    #169763

    Please check – http://screencast.com/t/NeJawTNvon

    my directory look like this

    #169829

    Hey!

    Please create me a wordpress admin account and send me the login data to: (Email address hidden if logged out) – I’ll look into it.

    Regards,
    Peter

    #170741

    Hi

    as you said i have create a WordPress admin account

    please check your email

    and please check for these questions also-
    1) https://kriesi.at/support/topic/how-to-customize-google-custom-search/
    2) https://kriesi.at/support/topic/error-message-in-child-themeparent-theme-is-required-in-the-child-theme/

    #170747

    Hey!

    Please tell me where you see the error message. I can see this text on the theme option page: http://www.clipular.com/c?5311784160329728=xucg7q1StSu1w2NN8XDvM9pKzO8&f=.png but it’s not an error message but just a standard wordpress text which will always show up as soon as the user activates a child theme.

    I thought you can’t activate the child theme because wordpress always returns an error.

    Regards,
    Peter

    #170761

    i see this error where you describe your answer

    #170762
    #170793

    Hi!

    Yes, but it’s not an error message. It’s the standard wordpress message which tells you that
    1) the current selected theme is a child theme
    2) and it helps you to determine which theme is used as the parent theme. This information is important coz otherwise an user could delete the parent theme by accident and then the entire websites doesn’t work anymore.

    Cheers!
    Peter

    #176620

    I received this message as well, and I’m glad to see that it’s not an error message. But it does look like we are both facing the same error when trying to use a child theme.

    I wonder whether our problem is caused by broken links in the Theme Options section for our theme children.

    My child theme will not import settings from its parent theme (Enfold, version 2.3.2). It appears to use # as placeholder links for the “Import dummy data” and “Import Parent Theme Settings” buttons. Do you see this same error in your Theme Options for your Enfold Child theme?

    For me, when I hover over either of these buttons, I see that they link to:
    {my website address}/wp-admin/admin.php?avia_welcome=true&page=avia#
    which is the URL of the page I was on followed by a pound sign. Is it possible that when a new version of Enfold was being tinkered with, a placeholder link (#, which redirects to the current page) was accidentally left in the code?

    Thanks, and take care.

    • This reply was modified 10 years, 6 months ago by MHM. Reason: fixed code to bold links
    #176624

    Hey!

    I just installed a child theme for someone today and imported everything that was previously set up from the parent so as of 2.3.2 there are no code errors or anything like that with the button.

    The # is the correct “url” and you’ll see it used all over the theme options since the links aren’t actually urls taking you anywhere.

    This image however is *not* an error. Its just an informational message: http://www.clipular.com/c?5311784160329728=xucg7q1StSu1w2NN8XDvM9pKzO8&f=.png

    For more on Child themes see: https://vimeo.com/67221517

    You can download an enfold child theme from here: http://kriesi.at/files/enfold-child.zip

    Cheers!
    Devin

    #177048

    Thanks! I used the video you linked as a guide to create my child theme. And I have downloaded the .zip and reviewed it to make sure that my child theme was set up properly (it was, down to the lowercase “e” in “enfold”).

    This child theme has worked with previous versions of Enfold. For example, my child theme told the socket to be right-aligned. However, it has stopped working with 2.3.2.

    #177051

    And I have tried clicking “Import Parent Theme Settings,” but it has not worked. My website remained in the default color scheme and did not absorb any of my customizations that I have set in Enfold.

    #177436

    You can try disabling any active plugins you have running to check if there is a conflict or anything. If you have any changes in the child theme to the core files then you may also need to re-do them or check if the parent files they are replacing have been adjusted.

    #177444

    Thanks for responding. The only file I am replacing is custom.css, so it’s not an issue of core files. My child theme worked with my previous version of Enfold including my current plug-ins.

    #177487

    Things change from version to version of the theme. A plugin that may have worked before may not work with something new that has been added.

    For instance in 2.4 we’ll be adding the masonry option in and the javascript to support it may not work with another plugin.

    #177514

    I will just use the main Enfold theme for now and tweak its code there. I am having other larger concerns with Enfold that need to be settled first. Thank you for your time.

Viewing 23 posts - 1 through 23 (of 23 total)
  • The topic ‘Error message in child theme:parent theme is required in the child theme.’ is closed to new replies.