Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1104526

    Hi,
    I have a broken child theme after trying to create a header widget using.
    https://kriesi.at/documentation/enfold/header/#toggle-id-3 but something in the process broke my child theme. I have restored the site to an earlier version, (I also replaced the header in the css file and added an index.php to the child theme folder) but I am still seeing this message:

    Broken Themes
    The following themes are installed but incomplete.
    Name
    Description
    Web-shell
    Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.
    Delete
    enfold-child
    Stylesheet is missing.
    Delete

    Please can you help?

    • This topic was modified 5 years, 7 months ago by Fionadee. Reason: Edited to clarify main problem
    #1104793

    Hi,
    The Child Theme broke again since writing above, I have now done another restore.
    Reading this post:
    https://kriesi.at/support/topic/child-theme-default-style-css-or-enqueue-my_custom-css/ I’m wondering whether I caused the problem by using the outdated enqueue method. I will switch back to the usual method using style.css and let you know if it solves the problem.

    #1104823

    I am still getting the same broken theme message above. Please can you help?

    #1104888

    The problem seems fixed after restoring my original child theme using style.css.

    #1105342

    Hi Fionadee,

    We apologize for the delayed response and we are glad to hear that it’s fixed.
    Child themes needs to have 2 required files, style.css and functions.php.
    style.css needs to have Theme Name and Template, then functions.php will need atleast enqueue the style.css.

    Best regards,
    Nikko

    #1106868

    Hi,
    Unfortunately I still have a problem.
    Just to summarise, I used some out-of-date information to create an enqueue folder for CSS in my child theme. This seemed to be the cause of the broken theme so I replaced it with a fresh child theme folder.

    However my new style.css is not being recognised and I am getting the error message below:

    /wp-content/themes/enfold-child/css/my_custom.css?ver=5.2.1:1 Failed to load resource: the server responded with a status of 404 ()

    Enfold is still looking for the old “my_custom.css” file. How can I direct Enfold to the new version?

    #1107031

    Hi,

    Thanks for the update, but you are still enqueuing that file in your functions.php file:

    /*Enqueue css for custom modifications*/
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/css/my_custom.css',
            array('parent-style')
        );
    }  

    If you don’t want to enqueue that file then please remove that part of the code.

    Best regards,
    Rikard

    #1107056

    Thank you Rikard, that’s great – I don’t know how I missed updating that file!

    #1107106

    Hi Fionadee,

    We’re glad that hear that :)
    Let us know if you need further assistance or if we can close this thread.

    Best regards,
    Nikko

    #1107108

    Yes, please close the thread – all styles working now.
    Thanks for your help.

    #1107188

    Hi Fionadee,

    Thanks also for using Enfold :)
    And have a great day!

    Best regards,
    Nikko

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Broken Child theme’ is closed to new replies.