Tagged: header widget
-
AuthorPosts
-
May 27, 2019 at 3:06 pm #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
May 28, 2019 at 12:53 pm #1104793Hi,
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.May 28, 2019 at 1:23 pm #1104823I am still getting the same broken theme message above. Please can you help?
May 28, 2019 at 4:08 pm #1104888The problem seems fixed after restoring my original child theme using style.css.
May 30, 2019 at 6:00 am #1105342Hi 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,
NikkoJune 4, 2019 at 12:34 am #1106868Hi,
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?
June 4, 2019 at 12:01 pm #1107031Hi,
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,
RikardJune 4, 2019 at 12:28 pm #1107056Thank you Rikard, that’s great – I don’t know how I missed updating that file!
June 4, 2019 at 2:15 pm #1107106Hi Fionadee,
We’re glad that hear that :)
Let us know if you need further assistance or if we can close this thread.Best regards,
NikkoJune 4, 2019 at 2:23 pm #1107108Yes, please close the thread – all styles working now.
Thanks for your help.June 4, 2019 at 5:30 pm #1107188Hi Fionadee,
Thanks also for using Enfold :)
And have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘Broken Child theme’ is closed to new replies.