Well – a manual way to do it is to use the shortcode for the breadcrumb trail:
place this to your child-theme functions.php :
and use whereever you like to place that as : [av_breadcrumbs]
Dear Mike – thank you so much for your help.
Q: so did you just update to PHP v8?
A: after realizing the problems on the live site, I´ve changed from PHP 8 auf PHP 7.4 – no effect, so I changed this settings again
Q: did you make any changes with the better search replace plugin
A: yes, after installing “better search replace” I´v noticed the problem with stylsheet, after saving some settings there was no effect on live site
Q: do you have a pre plugin server backup
A: unfortunatly not :-(
Q: If you don’t have a backup then you could add the css needed to correct your menu in your child theme stylesheet
A: I tried and after changing my wp-config (to “define(‘WP_MEMORY_LIMIT’, ‘256M’);” at least the navigation is back but still “frozen” – I tried to change to font-size 16px – again no result on live page
Q: I have not seen a case of the Advanced Styling not working and I don’t see any related errors?
me either, and I´m working many years with enfold _ I will contact the hosting company but I´m still desparate about this
Thank you again for your help
Hi,
Thank you for the login, I’m not sure why this was not working on your site, but I did notice that your category page was different than my default version, probably due to one of your plugins.
Anyways I adjusted my approach with a new function in your PHP snippets plugin, I left the old one disabled and you can delete it.
So the first improvement for this one is that it checks the category page for the ID “search-fail” which is only found on empty category pages, if found it injects the shortcode that gets the category description, so you don’t need to add the shortcode on the pages and then remove it once you add products to the category later.
But you need to add your html table without line breaks, you will see what I mean when you check the back end of the two pages I adjusted for you:
https://diyjewellery.com/bails/bails-attached/bails-attached-gold/
https://diyjewellery.com/bails/bails-glue-on/bails-glue-on-gold/
Also note that for these two page you didn’t add an image url just img src="#" so no images are showing in the table right now.

This is the function I added
function archive_description_callback() {
$term_object = get_queried_object();
$archive_description = $term_object->description;
echo '<div class="container archive-description">'.$archive_description.'</div>';
return $output;
}
add_shortcode( 'archive_description_shortcode', 'archive_description_callback' );
function add_archive_description_shortcode() { ?>
<script>
(function($){
var short_code = '<?php echo do_shortcode("[archive_description_shortcode]"); ?>';
if ($('#top.archive.tax-product_cat .entry-content-wrapper').attr("id") == "search-fail") {
$(short_code).insertBefore( ".container_wrap_first" );
}
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'add_archive_description_shortcode');
Best regards,
Mike
Hi,
Thanks for the feedback, I tested my first solution again on my test site and achieve this:

I wanted to check that I didn’t leave a step out, so please include an admin login in the Private Content area so I can examine your site closer.
Have you removed the custom archive-product.php template in your child theme, from the original solution above, as this is not a factor of the shortcode solution?
Also is the woocommerce/templates/archive-product.php file from the original solution above, in it’s original state, without any modifications?
Best regards,
Mike
Hi,
Thanks for your patience, as I understand your request you have added a html table to your category Description and you want it to show when there are no products in that category, I was not able to get the above solution to work on my test site, but I was able to create a shortcode that you can add to empty categories to show your custom description:

Try adding this code to the end of your functions.php file in Appearance ▸ Editor:
function archive_description_callback() {
$term_object = get_queried_object();
$archive_description = $term_object->description;
echo '<div class="container archive-description">'.$archive_description.'</div>';
return $output;
}
add_shortcode( 'archive_description_shortcode', 'archive_description_callback' );
function remove_archive_description_shortcode() { ?>
<script>
(function($){
$('.archive-description').contents().filter(function() {
return this.nodeType == 3
}).each(function(){
this.textContent = this.textContent.replace('[archive_description_shortcode]','');
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'remove_archive_description_shortcode');
and add this shortcode to the category Description [archive_description_shortcode]
and this is the result:

Perhaps this will help.
As a side note I had originally thought that you wanted to show the category full width banner, and I found that this shows without and modifications:

the results:

In the process I stumbled on to this solution for just showing the category image without the description when using the default Category Styling and not the full width banner:

use this shortcode: [banner_image_shortcode]
This code to the end of your functions.php file in Appearance ▸ Editor:
function banner_image_callback() {
ob_start();
avia_woocommerce_overview_banner_image();
$banner_image = ob_get_clean();
echo '<div class="container">'.$banner_image.'</div>';
return $output;
}
add_shortcode( 'banner_image_shortcode', 'banner_image_callback' );
for this result:

Best regards,
Mike
Hi,
Thanks for the login to your site, on your /service-center/ page in your screenshot above I found that the wrong color showing (a bright blue) was the default browser user agent color, so no setting seemed to be applied from the Enfold Theme Options ▸ Advanced Styling
When I added the color and font size to your child theme stylesheet in your current .av-main-nav > li > a rule:
.av-main-nav > li > a {
line-height: 35px!important;
height: 35px!important;
color: #00315c;
font-size: 17px;
}
it worked correctly, so this points to your child theme stylesheet working but not the theme Enfold Theme Options ▸ Advanced Styling
I see in your WordPress ▸ Dashboard ▸ Tools ▸ Site Health ▸ Info ▸ Server both of your PHP memory limit & Max input time are negative values:

typically I would expect to see positive values:

So from your post above it sounds like everything was working fine until recently, so did you just update to PHP v8, if so it looks like the PHP setting are not the same for your previously PHP version, probably 7.4 and the new v8 on your server, try going back to v7.4 to test, and if that works try adjusting them to match.
If you didn’t change the PHP version since the error, then did you make any changes with the better search replace plugin and then noticed the error? This plugin is very powerful and can make serious unexpected changes, and has no fall back option.
If this is true, do you have a pre plugin server backup? You might need to use it to correct, I’m not sure.
If you don’t have a backup then you could add the css needed to correct your menu in your child theme stylesheet and not rely on the Enfold Theme Options ▸ Advanced Styling options.
I have not seen a case of the Advanced Styling not working and I don’t see any related errors?
Best regards,
Mike
Hi,
Thanks for the login to your site, what web host are you using?
I see in your WordPress ▸ Dashboard ▸ Tools ▸ Site Health ▸ Info ▸ Server you have a negative number: Max input time -1, typically this is set to a positive 180.

This makes me think that you are using OVH hosting which disables the PHP set_time_limit() function on their sites. If you are not using OVH hosting please ask your web host to change the Max input time to 180.
I also note that it looks like your web host is deferring the javascript loading before the theme, because the javascript options are not showing in the Enfold Theme Options ▸ Performance ▸ Change WordPress Defaults, these are the options you have:

this is what you should see:

Please ask your web host to enable the WordPress defaults for jQuery.
After correcting these two server issues try importing the demo again.
If this still doesn’t work then try the manual import as in our documentation
Best regards,
Mike
Hi,
Thanks for your question, in order to make your heading rows span across multiple columns the table would use the colspan attribute, unfortunately, the Enfold table element doesn’t offer this feature and considering that you are also looking for advanced fixed columns and rows when scrolling I would recommend looking for a table plugin that offers these features.
I did find a stackoverflow example: Set colspan dynamically with jQuery to use as a base to try this with our table element, but please note that it will not work for the mobile table view.
The script works by removing the empty cells and adding the colspan attribute to the first cell with text, also the very first cell is ignored.

the result:

If you want to try this add this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_colspan_script() { ?>
<script>
window.addEventListener('DOMContentLoaded', function() {
(function($){
$('#colspantest .avia-heading-row').each(function() {
var tr = this;
var counter = 0;
var strLookupText = '';
$('th', tr).each(function(index, value) {
var th = jQuery(this);
if ((th.text() == strLookupText) || (th.text() == "")) {
counter++;
th.prev().attr('colSpan', '' + parseInt(counter + 1,10) + '').css({textAlign : 'center'});
th.remove();
}
else {
counter = 0;
}
strLookupText = th.text();
});
});
})(jQuery);
});
</script>
<?php
}
add_action('wp_footer', 'custom_colspan_script');
and add the custom ID colspantest to the table element
Best regards,
Mike
Big thanks to Arno Weterings who is the author of Arnoweterings speed and performance optimisation for Enfold
Arno and I have been speaking regularly about Enfold Speed and Performance for the past few years. He forwarded me an enquiry from the website owner in need of assistance optimising a self built Enfold site.
Ligety Weibrecht Ski Camp Mt Hood Oregon USA
The site had some major configuration issues – using Cloud Flare DNS which was incompatible with their hosting providers Varnish Cache. I removed Cloud Flare and several premium plugins saving the customer over $150 per year in licenses.
Conducted a full site review and performance analysis
Removed Cloud Flare and reset the DNS back to Dream Host
Fixed a compatibility problem with Caching so Varnish Cache worked properly
Updated and licensed Enfold (over 2 years out of date!)
Upgraded to the latest Paypal payments plugin
Redrew the logo so a higher res copy could be used
Deactivated several unused or incorrectly configured plugins
Rebuilt every page on the site using Enfold best practice
Added over 500 lines of code to functions.php to optimise Enfold and WordPress
Ran a database optimisation
Added WebP
Removed Enfold auto generated image sizes and added new ones for srcset
Added social share imagery
Added missing H1 tag and intro paragraph to home page
Tidied up WooCommerce pages
Removed redundant custom css and functions.php code
The Results
The site now runs extremely well and no longer lags through WP-Admin. It was almost unusable with server timeouts and disconnect errors when I started.
The site scores up to 97/100 in Google Web Vitals mobile speed testing
As a UK based business I’d like to extend my thanks to Gary at Ligety Weibrecht who has been extremely trusting of me to get this work done properly and legitimately remotely. The company is based over the other side of the pond in the USA.
-
This reply was modified 3 years, 9 months ago by
thinkjarvis.
Hi again Arantza,
// https://kriesi.at/support/topic/search-results-page-6/#post-1358427
As we mentioned in the thread above, you have to edit the template files manually but this time look for the archives.php file. Unfortunately, it is not possible to modify the archive (category, tag) pages using the page editors.
Best regards,
Ismael
We are trying to upgrade our site to WP6 and PHP8. We just downloaded a new copy of Enfold 5.0.1 and tried to put it on the site. This was the fatal error that ensued:
Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /app/web/wp-content/themes/enfold/includes/helper-assets.php:54 Stack trace: #0 /app/web/wp/wp-includes/class-wp-hook.php(307): av_asset_merging_settings('none') #1 /app/web/wp/wp-includes/plugin.php(191): WP_Hook->apply_filters('none', Array) #2 /app/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(58): apply_filters('avf_merge_asset...', Array) #3 /app/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-template-builder.php(1826): aviaAssetManager->__construct(Object(AviaBuilder)) #4 /app/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-template-builder.php(567): AviaBuilder->asset_manager() #5 /app/web/wp/wp-includes/class-wp-hook.php(307): AviaBuilder->init('') #6 /app/web/wp/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #7 /app/web/wp/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #8 /app/web/wp/wp-settings.php(598): do_action('init') #9 /app/web/wp-config.php(16): require_once('/app/web/wp/wp-...') #10 /app/web/wp/wp-load.php(55): require_once('/app/web/wp-con...') #11 /app/web/wp/wp-blog-header.php(13): require_once('/app/web/wp/wp-...') #12 /app/web/index.php(17): require('/app/web/wp/wp-...') #13 {main} thrown in /app/web/wp-content/themes/enfold/includes/helper-assets.php on line 54
Do you recognize this error? What do we need to do to remediate?
Please try again.
This page doesn’t work – https://truthbook.com/home-copy/
This page does – https://truthbook.com/home-copy/
I’ve updated Enfold and php is over 7.4
Have not tried disabling plugins yet.
Hey hostworks,
Thank you for the link to your site but the login is not working please check.
I see that you are using Enfold v4.9.2.1, please try updating to v5.0.1 and ensure your PHP is at least v7.4
Have you tried disabling all of your plugins? Can we disable them in our tests?
Best regards,
Mike
Hey profumopuntoit,
Thank you for the inquiry.
Looks like the WP Cerber Security (wp-cerber) plugin is trying to access the searchform.php via the error404.php page based on these stack error traces.
#1 /www/buyandsellambergris_814/public/wp-content/themes/enfold/includes/error404.php(17): get_search_form()
#6 /www/buyandsellambergris_814/public/wp-content/plugins/wp-cerber/cerber-load.php(4635): include(‘/www/buyandsell…’)
#7 /www/buyandsellambergris_814/public/wp-content/plugins/wp-cerber/cerber-load.php(2448): cerber_404_page()
#8 /www/buyandsellambergris_814/public/wp-content/plugins/wp-cerber/cerber-load.php(2411): cerber_access_control()
Did you run any task from the wp-cerber plugin prior to the issue?
Best regards,
Ismael
Hey WPStyling2020,
Thank you for the inquiry.
You can redeclare the whole avia_newsbox class directly in the child theme’s functions.php file or in a separate file inside the child theme directory to override the default class.
Example:
<?php
namespace aviaFramework\widgets;
use WP_Query;
/**
* CUSTOM AVIA NEWSBOX
*
* Widget that creates a list of latest news entries
*
* @package AviaFramework
* @since ???
* @since 4.9 Code was moved from class-framework-widgets.php
*/
if( ! defined( 'AVIA_FW' ) ) { exit( 'No direct script access allowed' ); }
class avia_newsbox extends \aviaFramework\widgets\base\Avia_Widget
{
// the rest of the code
}
?>
Best regards,
Ismael
Hi, I installed the woocommerce plugin but when I create a product I get the following error message :
2022-07-12T18:49:39+00:00 CRITICAL Uncaught Error: Attempt to assign property “extra” on null in /home/jntz3ipi3v32/monosujet.com/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:913
Helklo, i try to personalize/customize the enfold theme, and i have this error:
Fatal error: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type() in /home/customer/www/festivalesaereos.es/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:517 Stack trace: #0 /home/customer/www/festivalesaereos.es/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(377): Avia_Gutenberg->can_use_block_editor(‘post’, true) #1 /home/customer/www/festivalesaereos.es/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(412): Avia_Gutenberg->init_force_classic_post_types() #2 /home/customer/www/festivalesaereos.es/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(487): Avia_Gutenberg->get_force_classic_post_types() #3 /home/customer/www/festivalesaereos.es/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(615): Avia_Gutenberg->force_classic_editor(‘page’) #4 /home/customer/www/festivalesaereos.es/public_html/wp-includes/class-wp-hook.php(307): Avia_Gutenberg->handler in /home/customer/www/festivalesaereos.es/public_html/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php on line 517
how can i resolve this? thanks!
Hello,
I received an email saying
WordPress caught an error with your theme, Enfold.
Front and back end are working correctly
I had updated everything a few hours before receiving the email, and cleared all caches
WordPress 6.0
Enfold: 5.0.1
PHP 8.1
Can you help please?
Thank you
Mauro
BTW, It’s running Your PHP version: 7.3.31-2+ubuntu18.04.1+deb.sury.org+1
and WordPress 6.0 (which updated today) and 5.0.1 Enfold.
This reply has been marked as private.
Hey qhsedirectory,
Thanks for the link to your page, currently you have an error showing at the top of your page above your menu:
/** 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.*/
this is the text in your child theme functions.php, please try removing any changes that you have made to correct.
As for hiding and showing the header when a specific place on the page is in view, I tested on an example page containing many columns with text blocks, and for one text block I added a custom class waypoint-trigger:

this “trigger” element is down a ways on the page so it is not in view on the page load:

then I added this css in the Enfold Theme Options ▸ General Styling ▸ Quick CSS field:
.waypoint-hide {
position: fixed !important;
top: -100px;
width: 100%;
z-index: 999;
opacity: 0;
background: #fff;
transition: 0.3s all;
box-shadow: 0 2px 3px rgba(0,0,0,0.15);
}
.waypoint-show {
top: 0;
opacity: 1;
transition: 0.3s all;
}
and this code in the child theme functions.php file in WordPress ▸ Appearance ▸ Editor:
function custom_waypoint_trigger_script() { ?>
<script>
window.addEventListener('DOMContentLoaded', function() {
(function($){
var $header = $('#header_main');
var $things = $('.waypoint-trigger');
$things.waypoint(function(direction) {
if (direction === 'down') {
$header.addClass('waypoint-hide');
$header.removeClass('waypoint-show');
}
if (direction === 'up') {
$header.addClass('waypoint-show');
$header.removeClass('waypoint-hide');
}
}, {
offset: '95%'
});
})(jQuery);
});
</script>
<?php
}
add_action('wp_footer', 'custom_waypoint_trigger_script');
Note in the script the “offset” is 95%, this will trigger when the element is just in view, you can adjust to suit, such as 50% for when the element is in the middle of the page.
Please give this a try, I linked to my example page below.
Best regards,
Mike
Hey woogie07,
The errors such as /public_html/wp-includes/l10n.php on line 1049 etc, are pointing to path declares in WordPress, I believe this is related to your console error: Uncaught ReferenceError: wp is not defined typically this is from the the “Load Javascript deferred” setting in WP Rocket, or the Async Javascript plugin, or autoptimize.
Please check if you have any plugins that are deferring javascript or if you are using the option Enfold Theme Options ▸ Performance ▸ Load jQuery in your footer with another plugin.
You also have another error Uncaught SyntaxError: Unexpected token ';' but I can’t see where it’s coming from because your javascript is merged with Enfold Theme Options ▸ Performance ▸ JS & CSS file merging and compression
If you can’t find what is deferring your javascript then include an admin login in the Private Content area so we can investigate.
Best regards,
Mike
Hi,
If the new code is supposed to be added to the header section of your site, then you can try to add it in the Analytics box as well. You could also add it using a function:
function woogie07_custom_header_code(){
?>
YOUR SCRIPT GOES HERE
<?php
}
add_action('wp_head', 'woogie07_custom_header_code');
Best regards,
Rikard
Hi,
I see that you are using a custom header.php in your child theme with this function to achieve to apply the preloader only on the homepage (page-id-47):
if(is_page(47)) $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
to add the translated homepage to this you would add the page ID (page-id-424) like this:
if(is_page(47) || is_page(424)) $preloader = avia_get_option('preloader') == "preloader" ? 'av-preloader-active av-preloader-enabled' : 'av-preloader-disabled';
I did this for you and it is working please check.
Best regards,
Mike
Hello,
I have a problem with the enfold 4.6.2 theme for the site https://matupeint.com/ which is in php 7.2
When I switch to php 7.4 or php 8.0 Layerslider shows me an error message.
What should I do ?
Thanks
Bonjour,
Je rencontre un problème avec le thème enfold 4.6.2 pour le site https://matupeint.com/ qui est en php 7.2
Lorsque je bascule en php 7.4 ou php 8.0 Layerslider m’affiche un message d’erreur.
Que dois-je faire ?
Merci
chrisGuest
Hello, i wrote a moment ago, i think i added wrong email, enfold theme 3.0.4 is now making the wp site http://www.glassprimer.com not work because i updated server to php top 7.4 and wp to 6.0 the web developer made a child theme off of your theme, can i pay for a fixed theme ? i dont know much about this and need to resolve this asap. thank you for your kind support.
chris Guest
hello i updated my wp site to 6.0 and running 7.4 php now the site doesnt work, im toldthe theme is incompatable, can i purchase a fix for this ? an updated enfold theme? i really need help on this it just got messed up a few mins ago..
Hi woogie07,
You can add a script on the header.php directly however if you’re not using a child theme any changes you made in the enfold theme files will be lost during the update.
If you use a child theme then it’s great to override header.php with header.php of the child theme, but the best solution I think would be using the wp_head hook.
Best regards,
Nikko
Hi woogie07,
Please add this code in the functions.php file of your child theme:
add_shortcode( 'social_icons', 'custom_social_icons' );
function custom_social_icons() {
$args = array( 'outside'=>'ul', 'inside'=>'li', 'append' => '' );
$icons = new avia_social_media_icons( $args, false );
$html = $icons->html();
return $html;
}
If you don’t have a child theme yet, you can download and get further instructions on: https://kriesi.at/documentation/enfold/child-theme/
Next go to Appearance > Widgets > Footer – Column 4, then add a Text widget and inside it add this:
[social_icons]
Then style the social icons, by going to Enfold > General Styling > Quick CSS and add this CSS code:
#top #footer .social_bookmarks li {
clear: none;
}
#top #footer .social_bookmarks li a {
color: #181f35;
}
#top #footer .social_bookmarks li a:hover {
color: white;
}
Hope it helps.
Best regards,
Nikko
Erwin HölzlerGuest
I have installed WordPress from IONOS ( 1& 1). Then I installed an old 4.2 Enfold Version and got the following Message when activating the theme:
Fatal error: Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /homepages/32/d915776467/htdocs/clickandbuilds/Abi1972amAEGMnchen/wp-content/themes/enfold/functions-enfold.php on line 313
Es gab einen kritischen Fehler auf deiner Website. Bitte überprüfe den Posteingang deiner Website-Administrator-E-Mail-Adresse für weitere Anweisungen.
Erfahre mehr über die Problembehandlung in WordPress.
The reason why I used the old .zip downloaded 2018-04-24 is that I want to re-use the theme which was in operation on a site which is no longer in action.
What should I do?