Lately we have been experiencing issues with the WordPress – Enfold theme (version 4.4) permalinks. We would like to confirm that permalinks work properly with Enfold version 4.9.2.1, WordPress 5.9.3, Linux, Apache and PHP 7.4.28
Also, we would like to know the degree of compatibility between version 4.9 of Enfold and the currently installed 4.4, since our idea is to migrate the whole content to Enfold newest version.
Regards
Hi,
Merci pour le lien vers votre site, pour faire coller votre section couleur “barre de menu” sous le header on scroll j’ai ajouté le script et css suivant à votre thème enfant, et dans mes tests la “barre de menu” avec la classe personnalisée” collant” se collerait dès qu’il toucherait l’en-tête. Pour les mobiles, sous 990px, puisque l’en-tête n’est pas collant, ce script ferait coller la “barre de menu” en haut de l’écran. Cela a bien fonctionné dans mon test en injectant le code via le navigateur.
Mais lorsque j’ai ajouté ceci dans votre thème enfant, la hauteur du défilement n’est pas correcte, il ne colle donc pas jusqu’à un défilement beaucoup plus loin, peut-être que cela a à voir avec votre mise en cache, alors laissez-le en place, veuillez essayer d’effacer ou de désactiver votre cache et vérifiez la page.
— Translated with Google —
Thank you for the link to your site, to make your color section “menu bar” stick under the header on scroll I added the following script and css to your child theme, and in my tests the “menu bar” with the custom class “collant” would stick as soon as it touched the header. For mobile, under 990px, since the header is not sticky this script would make the “menu bar” stick at the top of the screen. This worked well in my test by injecting the code via the browser.
But when I added this into your child theme the height of the scroll is not correct so it doesn’t stick until a much further scroll, perhaps this has to do with your caching so left it in place, please try clearing or disabling your cache and check the page.
this function in your child theme functions.php
function custom_collant_script() { ?>
<script>
(function($){
$(function() {
var scroll_start = 0;
var startchange = $('.avia-section.collant');
var offset = startchange.offset();
var width = $(window).width()
if (startchange.length){
$(document).scroll(function() {
scroll_start = $(this).scrollTop();
if ((width >= 990)) {
if(scroll_start > offset.top - 117) {
document.querySelector('.avia-section.collant').classList.add('sticky-top');
} else {
document.querySelector('.avia-section.collant').classList.remove('sticky-top');
}
}
if ((width < 989)) {
if(scroll_start > offset.top) {
document.querySelector('.avia-section.collant').classList.add('sticky-top-mobile');
} else {
document.querySelector('.avia-section.collant').classList.remove('sticky-top-mobile');
}
}
});
}
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_collant_script');
and this css
.sticky-top {
position:fixed!important;
top:117px!important;
z-index:600!important;
}
.sticky-top-mobile {
position:fixed!important;
top:0!important;
z-index:600!important;
}
Best regards,
Mike
Hey Veronika,
Please try to use this code and put it in your child theme’s functions.php file:
function enfold_customization_modify_thumb_size( $size ) {
$size['magazine'] = array('width'=>546, 'height'=>734);
return $size;
}
add_filter( 'avf_modify_thumb_size', 'enfold_customization_modify_thumb_size', 10, 1 );
Best regards,
Nikko
Hey Ramon,
Thanks for your question, please try this script in your child theme functions.php
function custom_replace_url_script() { ?>
<script>
function replace_url(elem, attr) {
var elems = document.getElementsByTagName(elem);
for (var i = 0; i < elems.length; i++)
elems[i][attr] = elems[i][attr].replace(/(http|https):\/\/.*\.?fonts\.?.*/i, '');
}
window.onload = function() {
replace_url('link', 'href');
}
</script>
<?php
}
add_action('wp_footer', 'custom_replace_url_script');
this will search link tags for a url with the fonts sub-domain and remove the whole url, such as the https://fonts.googleapis.com/css?family=Open+Sans:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i that your layerslider is loading.
this works for fonts.googleapis.com, but the fonts.gstatic.com is loading somewhere other than your header, so try adding a .htaccess block for this domain so your page won’t load it.
# Order Allow, Deny
Deny from fonts.googleapis.com
Deny from fonts.gstatic.com
Best regards,
Mike
Hey Yaphoon,
Please note the warning message on your dashboard, The minimum recommended version of PHP is 7.4.

Please try updating your PHP version.
Best regards,
Mike
Hi there,
I find a big problem when I building my site
Now I cannot build any page
“Updating failed. The response is not a valid JSON response.”
“Publishing failed. The response is not a valid JSON response.”
http://www.wlhtex.xyz is fine
http://www.wlhtex.xyz/en is error
What is the problem and how solve
Here is my info:
Linode VPS
PHP7.2.6
Wordpress 5.9.2
I just start my site, only install the Yoast SEO plugin, no other
I set the permalinks in post name (as I heart the permalinks may cause this problem)
I build to site in one DATABASE
1 Chinese site http://www.wlhtex.xyz prefixes:zh_
2 english site http://www.wlhtex.xyz/en prefixes:en_
If you need login in my site pls check below
Thank you for your help..
Wang YF
Hi,
Glad to know that the suggestions above are working. Regarding the image orientation, you can modify this code in the enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php file around line 605, but we are not sure how this would affect other masonry layouts.
if( $size == 'fixed' )
{
if( ! empty( $attachment ) || ! empty( $before_content ) )
{
if( $auto )
{
$class_string .= $this->ratio_check_by_image_size( $attachment );
}
if( $manually )
{
$class_string .= $this->ratio_check_by_tag( $entry['tags'] );
}
}
}
You can remove the condition $size == ‘fixed’ completely or just replace it with true.
if( true ) {
// rest of the code
}
Best regards,
Ismael
Hey tremblayly,
Thank you for the inquiry.
Is it working correctly when you remove this code from the themes/enfold/config-woocommerce/config.php file?
line 367:
remove_action( 'woocommerce_pagination', 'woocommerce_catalog_ordering', 20 );
remove_action( 'woocommerce_pagination', 'woocommerce_pagination', 10 );
line 388:
remove_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 ); //remove woo pagination
This should re-enable the default Woocommerce pagination in the product shortcode.
Best regards,
Ismael
Hey Christian,
Thank you for the inquiry.
What is the specifications of your server? The dashboard loads perfectly fine on our own installation running on Nginx 1.19.0, MySQL 8.0.25 and PHP 8.0.12, memory limit is set to 256M. Unfortunately, we will not be able to check and debug the issue if we don’t have direct access to the site.
Best regards,
Ismael
Hi,
I’ve just installed a locally hosted LAMP stack on a virtual machine. The WordPress health check looks good, cURL is working and the PHP 7.4.28 has an increased memory limit of 512 MB. There are no plugins installed yet, just a WordPress core plus enfold 4.9.2.1. Here’s the problem: while the frontend pages load quickly, all admin pages load painfully slow – it takes about 15 sec. to fully load any page (e.g. the WP media library). Firefox inspector tells me that it takes ages for the server to answer the clients request – I just don’t know why.
However, as soon as I replace the current enfold 4.9.2.1 with a previous one (4.7.xx), all admin pages are loaded in under a second. Same thing with a default WordPress theme like twentytwenty: every admin page appears super fast. Unfortunately, I can’t provide you with login credentials for the website since it sits behind a firewall. Do do you have any suggestions on this anyway?
Thanks in advance & kind regards,
Christian
Wenn du mit einem Child-Theme arbeitest ist das möglich, indem du dir ein child-theme loop-search.php erstellst.
wenn du das öffnest, siehst du auf Zeile 37 im neuesten Enfold :
echo "<span class='search-result-counter {$counterclass}'>{$post_loop_count}</span>";
dahinter könnte man platzieren: ( this is edited content here – it is better to avoid placement if there is image )
$searchimage = get_the_post_thumbnail( $the_id, 'square' );
if( ! empty( $searchimage ) ) {
echo "<a class='slide-image search_image' href='".get_permalink()."'><span class='search-result-image'>{$searchimage}</span></a>";
}
wobei hier square durch andere Image-sizes von Enfold ersetzt werden kann ( large etc.)
Der Rest wäre dann css.
Dann hast du beides – die Nummerierung und ein featured Image.
hier wäre die loop-search.php auf Basis von Enfold 4.9.2.1 – : https://pastebin.com/8d1jCDdJ
platziert würde diese ( ich behalte gerne die original Baumstruktur bei ) im child-theme/includes folder
schau mal hier: https://webers-testseite.de/?s=portfolio
__________
PS : das wäre auch mit der ajax Suche möglich – ohne ein extra Plugin.
___________
PPS:
hier sind mal die image-sizes, die man da setzen kann ( aus functions.php 211ff )
widget (36x36),
square (180x180),
featured (1500x430),
featured_large (1500x630),
extra_large (1500x1500),
portfolio (495x400),
portfolio_small (260x185),
gallery (845x684),
magazine (710x375),
masonry (705x705),
entry_with_sidebar (845x321),
entry_without_sidebar (1210x423),
-
This reply was modified 4 years ago by
Guenni007.
Hey josk-design,
Thank you for your question, for your mobile logo please try this css:
@media only screen and (max-width: 767px) {
.responsive #header_main .logo img, .responsive #header_main .logo svg {
margin-top: 40px;
}
}
As for your anchor links #ueber_mich and #contact you have two sections for each of these IDs so the browser wants to go to the first one but it has the display none applied. You cannot have more than one element with the same id in an HTML document.
You actually have #ueber_mich as an ID three times on your page. Anyways this would cause an issue because there is not an easy way to change your menu anchor links based on the screen size, but I came up with a script that will change the section IDs if the html class avia_mobile is present on the burger menu click. This way the mobile menu items will work, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function change_duplicate_hidden_ids_on_mobile() { ?>
<script>
(function($){
$('.avia_mobile').on('click', '.av-burger-menu-main', function() {
var ueberMich = $('#ueber_mich.av-small-hide');
var ueberMichtwo = $('#ueber_mich.av_two_third');
var contact = $('#contact.av-small-hide');
$('#main').find( ueberMich ).prop('id', 'new_ueber_mich');
$('#main').find( ueberMichtwo ).prop('id', 'new_ueber_mich_two');
$('#main').find( contact ).prop('id', 'new_contact');
});
}(jQuery));
</script>
<?php
}
add_action('wp_footer', 'change_duplicate_hidden_ids_on_mobile');
Best regard
Mike
Hi,
Thank you for the link to your site, to move the cart to the topbar Try adding this code to the end of your functions.php file in Appearance ▸ Editor:
function custom_script() { ?>
<script>
(function($){
$( ".cart_dropdown" ).appendTo( "#header_meta .container" );
$( ".cart_dropdown_link" ).css({'line-height':'unset'});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
the expected result for desktop is:

and for mobile is:

to hide the search icon for mobile try this code in the General Styling ▸ Quick CSS field:
@media only screen and (max-width: 767px) {
#header_main #menu-item-search {
opacity: 0;
}
}
After applying the css, please clear your browser cache and check.
Best regards,
Mike
Hi Nikko,
disabling the plugins does not help, but turning to PHP7.4 made it better, but not really good. The error and stacktrace still appear, but will be overlayed by the widgets form afterwards, so it is now possible to edit them. The stacktrace remains visible in the top haeder of the page. This still indicates, that there is an error, that should be fixed.
Best regards
Alex
Hi,
@Guenni007
For the gallery if you look into gallery.php for the filter:
$lightbox_img_size = apply_filters( 'avf_alb_lightbox_image_size', 'large', $this->config['shortcode'], $atts, $content );
it is
$this->config['shortcode'] = 'av_gallery'
This rule should follow in other shortcodes also.
Best regards,
Günter
Hello,
I am getting a technical error, and I can’t modify the WordPress page.
My WP actuel configuration
* Version de PHP/MySQL : 7.4.25
* Thème used : enfold-child (version 1.0)
* hébergeur Name: Gandi
Encountered Problème : When I want to modify pages of our website (from WordPress, Bloc Editor opens and I got this error : this bloc encountered an error and can’t be pre-visualized.
And I receive an email with detected errors that i send you below.
I contacted our hebergeur Gandi, but nothing has been working.
I hope you can help me on this issue fixing.
Regards
Thanks Günter for the quick reply! In the meanwhile WPML people suggested the following workaround that I have to test
Replace the following line (wp-content\themes\enfold\config-wpml\config.php – LINE 794)
add_action( 'wpml_pro_translation_completed', 'avia_wpml_sync_avia_layout_builder_meta', 10, 3 );
With this:
add_action( 'wpml_pro_translation_completed', 'avia_wpml_sync_avia_layout_builder_meta', 1000, 3 );
Hi kringsstefanie,
Can you try to temporarily disable all plugins and see if it helps? if it does, enable the plugin one by one to know which one is causing the issue.
If it does not help, please try to change the PHP version to 7.4.
Hope this helps.
Best regards,
Nikko
A few years ago I modified toggles.php to change p.toggler to h2.toggler (plus other changes) to get the Accordion titles displaying as H2.
The code has changed dramatically since I did that and my changes no longer work. The topic was raised again here but the code has changed yet again since Guenni007’s solution a couple of months ago.
Günter implies a fix to allow this change to be selected in the ALB element would be in 4.9. The Changelog states
- feature: new options for ALB Elements:
- Accordion
- html tag for toggle title
but I can’t find any details on what an “html tag” means or how to use it.
Please can you advise if this new feature does what I want, and if so how do I implement it? The Enfold Documentation (https://kriesi.at/documentation/enfold/) makes no reference to HTML tags that I can find.
And if the feature doesn’t allow the titles to be changed via ALB, can you advise the code changes required in toggles.php to achieve the same?
PS. The Enfold Documentation site is constantly showing the cookie consent banner. After clicking OK to accept cookies, you select another page or topic and the banner re-appears.
Hey Dare_Care,
Thanks for your question, in the testimonial items if you add a website url in the advanced tab:

and add this script to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_testimonial_link_script() { ?>
<script>
(function($) {
$(".avia-testimonial").click(function(){
window.location = $(this).find("a.avia-testimonial-link").attr("href");
return false;
});
$(".avia-testimonial").mouseover(function(){
$(this).css("cursor", "pointer");
});
}(jQuery));
</script>
<?php
}
add_action('wp_footer', 'custom_testimonial_link_script');
then each testimonial element will have the link and show a pointer on mouse-over

Best regards,
Mike
Hello!
Since WordPress 5.2 is a built-in feature that detects when a plugin or theme causes a fatal error on your site and notifies you with this automated email.
In this case, WordPress encountered a bug with your theme, Enfold.
First, visit their website (https://yosoygaia.com/) and check for any visible issues. Then visit the page where the error was detected (https://yosoygaia.com/wp-admin/index.php) and check if there are any visible issues.
Contact your host for help investigating this issue.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This allows you to securely log in to your panel and investigate further.
https://yosoygaia.com/wp-login.php?action=enter_recovery_mode&rm_token=C8m6JFWYGtcnw32bozHTLc&rm_key=Ohca7oT73ROP0KvvMjuH5J
To keep your site secure, this link will expire in 1 day. Don’t worry about it though – a new link will be emailed to you if the error occurs again after it expires.
When looking for help with this issue, you may be asked for the following information:
WordPress version 5.9.2
Current topic: Enfold (version 4.9)
Current plugin: (version )
PHP version: 7.4.10
Error Details
==================
An error of type E_ERROR occurred in line 2015 of the file /hermes/bosnacweb08/bosnacweb08au/b1559/dot.yosoygaiacom/public_html/backupwordpress/wp-content/themes/enfold/functions.php. Error message: Uncaught Error: Call to a member function get_cart() on null in /hermes/bosnacweb08/bosnacweb08au/b1559/dot.yosoygaiacom/public_html/respaldowordpress/wp-content/themes/enfold/functions.php:2015
Stacktrace:
#0 /hermes/bosnacweb08/bosnacweb08au/b1559/dot.yosoygaiacom/public_html/supportwordpress/wp-content/themes/enfold/functions.php(1998): woo_cart_has_virtual_product()
#1 /hermes/bosnacweb08/bosnacweb08au/b1559/dot.yosoygaiacom/public_html/respaldowordpress/wp-includes/class-wp-hook.php(307): payment_gateway_disable_country(Array)
#2 /hermes/bosnacweb08/bosnacweb08au/b1559/dot.yosoygaiacom/public_html/backupwordpress/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
#3 /hermes/bosnacweb08/bosnacweb08au/b1559/dot.yosoygaiacom/public_html/supportwordpress/wp-content/plugins/woocommerce/includes/class-wc-payment-gateways.php(163): apply_filters(‘woocommerce_ava…’ , array)
#4 /hermes/bosnacweb08/bosnacweb08au/b1559/dot.yosoygaiacom/public_html/supportwordpress/wp-content/plugins/woocommerc
Hey lauterkeit,
Thank you for the link to your site and the screenshot, to move the date and make it black, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function move_masonry_date() { ?>
<script>
(function($){
$( 'a.av-masonry-entry' ).each(function() {
$( this ).find( '.av-masonry-date' ).css({ 'color': '#000'}).insertBefore( $(this).find('.av-masonry-entry-content'));
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'move_masonry_date');
the expected results

Best regards,
Mike
Hey andreane1,
Thanks for your question, the Enfold 2017 demo includes a layerslider, so it seems that an error occurred with your install, but this is easy to fix by importing the layerslider demo zip file in the Private Content area into the layerslider import option.

If you get an error then this would post to your web server not having the PHP ZipArchive Extension installed, which allows your web server to handle zip files.
You can check if the PHP ZipArchive Extension is installed by going to the layerslider dashboard and clicking the three dots in the upper right corner and click the System Status

then look under the Server Settings to see if PHP ZipArchive Extension is enabled.

Best regards,
Mike
Hi,
Thanks for the login, but your theme editor option seems to be disabled, please enable it

or try adding this code to your child theme functions.php, I tested this on my test site without any issues
function alwin_clicky_analytics_footer(){
?>
<script src="//static.getclicky.com/101348066.js"></script>
<?php
}
add_action('wp_footer', 'alwin_clicky_analytics_footer');
Typically if you get a critical site error when adding code to the functions.php it is because the quotes have changed into curly quotes from copying the code from an email and not from the forum.
Best regards,
Mike
Hi Kate,
Could you try updating the theme to the latest version (4.9.2.1) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. I would recommend that you update your PHP version to 7.4 or higher as well.
Best regards,
Rikard
Hi,
Thanks for the update. The header looks to get pushed down by the notices, you can adjust that temporarily using this in Quick CSS if you like:
#wrap_all {
margin-top: -139px;
}
About the PHP version; I’m not familiar with your hosting provider, but PHP 7.4 is the minimum recommend version to run WordPress on. So if they can’t offer anything higher, it might be a good idea to look for another provider.
Best regards,
Rikard
Hello! Okay we will upgrade to PHP 7.4. I have to migrate because MediaTemple doesn’t support anything past 7.3 on their grid server :/
Confirming debugging is off, too…
Can you let me know about the sticky header issue as well? After updating to the latest theme, the header doesn’t stick to the top anymore and scrolls down the page, even though it is set to be sticky there in the options…
thanks!