
-
AuthorPosts
-
December 13, 2022 at 7:15 pm #1376073
Hello,
I had to update my Enfold theme, to be compatible with PHP 8.0+. I have a child theme and a parent theme.
The childtheme is called ”FC” The updatet parent theme Enfold made the footer widgets dissapear.I have tried everything, like uploading a new copy of header.php to the childtheme. Please help.
Greetings,
Andrew
-
This topic was modified 2 years, 7 months ago by
Andries16.
December 13, 2022 at 8:06 pm #1376084Hey Andries16,
It looks like header-nieuw.php is the newest header file in your child theme. Note that it needs to be called header.php, nothing else. Please try to rename the old file, then rename the new file to only header.php.
Best regards,
RikardDecember 13, 2022 at 8:11 pm #1376085Hi Rikard,
No that header/nieuw.php was tryout. This was not the solution, I have removed it now, so you won´t be confused…
There is a header.php now, the original one. Please check what the solution is.Greetings.
Andrew
December 14, 2022 at 11:13 am #1376114Hi,
Could you share WordPress login details as well, so that we can check your settings?
Best regards,
RikardDecember 14, 2022 at 11:40 am #1376118Hello Rikard,
Thanks for the fast reply, see login below.
Hope you can solve it.Greetings
Andrew.
-
This reply was modified 2 years, 7 months ago by
Andries16.
December 15, 2022 at 3:30 pm #1376275Hi Rikard,
Maybe you can take a look today? If you have time.
See login.Greetings,
Andrew
-
This reply was modified 2 years, 7 months ago by
Andries16.
December 17, 2022 at 4:17 pm #1376475Hi Andrew,
Sorry for the late reply. I tried renaming your current header.php file, but there’s a critical error on your site after that, and the same thing happens when I try to upload a new version of the same file. Maybe you could try to check your code in header.php, and move it into the file I’ve uploaded called __header-new.php? Once you are done, then you can rename the old file to header-old.php for example, and the new file to only header.php. If you need further help with the critical error, then please share server error logs with us as well.
Best regards,
RikardDecember 17, 2022 at 4:44 pm #1376481Hi Rikard,
I have replaced the new Header.php.
Now the footer is back, but the footer menu’s are broken as you can see. http://www.frieslandcentraal-concept.nlThis line of code that I removed in the childtheme was in Functions.php to remove the critical error:
add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);You can compare the current Functions.php with the ”_functions-old.php” in childtheme.
You can also check the current Header.php with the ”_header-old.php” in childtheme.I want my footer to be restored… I don’t know what to do…
It’s something that’s missing in the new Header.php and the line of code (see above) in the new Functions.phpDecember 17, 2022 at 7:24 pm #1376524Hi,
Thanks for the update. So you are generating the content in your footer with shortcode? We can’t be responsible for third party shortcode unfortunately, but you might want to try to use the functionality to use a page as your footer in the theme instead, if you want a custom footer. You can set your footer options under Enfold->Footer.
Best regards,
RikardDecember 17, 2022 at 9:29 pm #1376544Hi Rikard,
I know you can’t be responsible, just hoping you could take a look what the issue might be.
With the old enfold it worked, sadly not with the updated Enfold version. The fix is pretty crucial for a working site.So there is something in the new Header.php that is missing, that’s needed from the header-old.php.
And the removed add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1); missing in the new Functions.php.
You can compaire it with functions-old.php and you will notice. But when I insert it back, there will be an error,Maybe because something is missing in the new header.php or because of something that has been added to the updated Enfold that causes a conflict.
It might be an easy fix for you, but I’m not so advanced in the code to repair it. I even want to pay you extra for it… please
Hoping you might give it a try to fix.Greetings
Andrew
December 18, 2022 at 12:37 pm #1376574Hi,
I’m not sure exactly what those shortcodes are doing unfortunately, but wouldn’t it be easier to simply design your footer in a new page, then assign it to be used as your footer under Enfold->Footer? Investigating what those shortcodes actually do and why they are not working could take hours, and designing a new footer would likely not take more than 30 minutes.
Best regards,
RikardJanuary 1, 2023 at 9:41 pm #1377354This topic can be closed. I have fixed it.
January 1, 2023 at 10:34 pm #1377356Hi,
Glad to hear that you have this sorted out, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
This topic was modified 2 years, 7 months ago by
-
AuthorPosts
- The topic ‘Footer disapeared after update Enfold’ is closed to new replies.