Alejandro RoblesGuest
Hi,
I’m using this contact form because tried the support forum but seems it’s closed for Replete theme.
I have a website using Replete theme but since couple of weeks ago started to have an error when loading. It also shows an error when accessing the product admin inside wp admin panel.
The site is: https://fhjuga.com
Using WP in ‘recovery mode’ it says that the theme is missing some files, I tried to access my Envanto account but there’s no file to download anymore My purchase info is:
Item Purchase Code:
d609aace-8c79-497f-9c18-3858b97cd3c8
Purchase Date:
2015-08-27 18:20:58 UTC
Can you please send me a copy of the last installation file to reinstall the theme please?
Thanks,
Alejandro Robles
PS
I’m also receiving an email error message from WP with the following:
Detalles del error
==================
Se ha producido un error del tipo E_ERROR en la línea 48 del archivo /home/tmysa/public_html/wp-content/themes/replete/includes/admin/compat.php. Mensaje de error: Uncaught Error: Cannot use string offset as an array in /home/tmysa/public_html/wp-content/themes/replete/includes/admin/compat.php:48
Stack trace:
#0 /home/tmysa/public_html/wp-includes/class-wp-hook.php(307): avia_backend_compatibility_custom_field_filter(”, 774)
#1 /home/tmysa/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(”, Array)
#2 /home/tmysa/public_html/wp-content/themes/replete/framework/php/function-set-avia-frontend.php(262): apply_filters(‘avia_post_meta_…’, ”, 774)
#3 /home/tmysa/public_html/wp-includes/class-wp-hook.php(309): avia_post_meta(Object(WP_Post))
#4 /home/tmysa/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#5 /home/tmysa/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#6 /home/tmysa/public_html/wp-includes/class-wp-query.php(4399): do_action_ref_array(‘the_post’, Array)
#7 /home/tmysa/public_html/wp-includes/query.php(1179): WP_Query->setup_postdata(Object(WP_Post))
#8 /home/tmysa/public_html/wp-admin/includ
Hi,
Thanks for the update. I’m seeing this on your site now:
Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 20480 bytes) in /var/www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/grid_row/cell.php on line 969
Please try to increase the memory allocated to PHP on your installation: https://wordpress.org/support/article/editing-wp-config-php/. If you need help with that, then please try reaching out to your hosting provider.
Best regards,
Rikard
Hi,
We reverted the config.php file to its default state and adjusted the code in the functions.php file. The pagination is now displaying correctly in the custom pages and it is no longer duplicated in the category pages but the pagination only works when we removed the prdctfltr parameter from the products shortcode.
This is the updated code in the functions.php file.
add_action( 'wp', function() {
if( ! is_product_category() ) {
//add woo pagination back on custom pages
if( is_page( array(18795, 18804, 18807, 18801, 18798, 18791, 18793, 18788, 21824) ) ) {
add_action( 'woocommerce_after_shop_loop', 'woocommerce_pagination', 10 );
}
}
}, 999);
We created a test page without the prdctfltr parameter and as you will see, the pagination is working correctly when the parameter is removed. (see private field)
Best regards,
Ismael
Hi,
The video loads fine when we deactivate all plugins, except for the ones you mentioned above, and when we disabled the usercentrics script in the functions.php file. We kept the plugins and scripts temporarily disabled so that you can see the result. Please make sure to purge the cache and remove the browser history.
This is a screenshot of the page containing the video: https://1drv.ms/u/s!AjjTfXSRbKTvwGJ3atJFYLh7bIuR?e=JC2qTO
Thank you for your patience.
Best regards,
Ismael
Hi,
Thank you for the update.
It seems to work better if we use a separate JSON-LD markup for the video element. In the video.php file, look for this block of code around line 704..
$output = '';
$output .= $style_tag;
$output .= "
<div {$meta['custom_el_id']} class='{$container_class}' {$markup_video} data-original_url='{$src}'>";
$output .= $output_html;
$output .= '</div>';
.., then replace it with this one.
$json = ' <script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "Another video object.",
"thumbnailUrl": [
"https://example.com/photos/1x1/photo.jpg",
"https://example.com/photos/4x3/photo.jpg",
"https://example.com/photos/16x9/photo.jpg"
],
"uploadDate": "2016-03-31T08:00:00+08:00",
"duration": "PT1M54S",
"contentUrl": "https://www.example.com/video/123/file.mp4",
"embedUrl": "https://www.example.com/embed/123",
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": { "@type": "WatchAction" },
"userInteractionCount": 5647018
},
"regionsAllowed": "US,NL"
}
</script>';
$output = '';
$output .= $style_tag;
$output .= "
<div {$meta['custom_el_id']} class='{$container_class}' {$markup_video} data-original_url='{$src}'>";
$output .= $json;
$output .= $output_html;
$output .= '</div>';
The validator should be able to recognize the video element as a separate object as shown in the screenshot below.
// https://1drv.ms/u/s!AjjTfXSRbKTvwGG1fhkWkkzFci3X?e=x3G9bb
This is based on the following documentation.
// https://developers.google.com/search/docs/advanced/structured-data/video
Best regards,
Ismael
Hi,
The site seems to be working again today!
The critical error has gone, I can access both pages now.
I did remove Layerslider plugin and WPshapere admin theme plugin (both not in use)
The memory limit is 512mb I believe.
The options shown below relate to your server setup. If changes are required, you may need your web host’s assistance.
Server architecture Linux 2.6.32-754.35.8.el6.x86_64 x86_64
Web server Apache/2.4.52 (Unix)
PHP version 7.3.31 (Supports 64bit values)
PHP SAPI cgi-fcgi
PHP max input variables 5000
PHP time limit 120
PHP memory limit 512M
Max input time 60
Upload max filesize 512M
PHP post max size 520M
cURL version 7.19.7 NSS/3.44
Is SUHOSIN installed? No
Is the Imagick library available? No
Are pretty permalinks supported? Yes
.htaccess rules Custom rules have been added to your .htaccess file.
I think we’re ok now!
Hi Rikard,
We had a reply from the hosts:
I am sorry to hear that you are facing these issues. You can view the error logs as shown here:
https://www.123-reg.co.uk/support/hosting/how-can-i-view-and-download-my-log-files/
I have checked the error logs and noticed that your website requires more than the available resources.
I have now made some adjustments from my end, however, I would strongly advise completely removing any unneeded plugins/themes/ if you still have issues.
So I have only the last 100 lines of server error:
dreamtexltd.com [Mon Apr 25 10:52:00 2022] [error] [client 88.83.119.183:0] mmap() failed: [12] Cannot allocate memory
dreamtexltd.com [Mon Apr 25 10:52:27 2022] [error] [client 88.83.119.183:0] #1 /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1106): avia_sc_slider_full->get_element_styles(Array)
dreamtexltd.com [Mon Apr 25 10:52:27 2022] [error] [client 88.83.119.183:0] Stack trace:
dreamtexltd.com [Mon Apr 25 10:52:27 2022] [error] [client 88.83.119.183:0] PHP Fatal error: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php on line 1062 and defined in /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:3766
dreamtexltd.com [Mon Apr 25 10:52:27 2022] [error] [client 88.83.119.183:0] #2 /home/cluster-sites/2/d/dreamt in /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php on line 3766
dreamtexltd.com [Mon Apr 25 10:52:27 2022] [error] [client 88.83.119.183:0] #0 /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1062): aviaElementTemplates->set_locked_attributes(”, Object(avia_sc_slider_full), ‘av_slide_full’, Array, Array, ”)
dreamtexltd.com [Mon Apr 25 11:42:56 2022] [error] [client 194.87.218.22:0] AH01630: client denied by server configuration: /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/export.php
dreamtexltd.com [Mon Apr 25 11:43:21 2022] [error] [client 194.87.218.22:0] AH01630: client denied by server configuration: /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/plugins/backup_index.php
dreamtexltd.com [Mon Apr 25 11:43:42 2022] [error] [client 194.87.218.22:0] AH01630: client denied by server configuration: /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/config.bak.php
dreamtexltd.com [Mon Apr 25 11:43:45 2022] [error] [client 194.87.218.22:0] AH01630: client denied by server configuration: /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/plugins/wpconfig.bak.php
dreamtexltd.com [Mon Apr 25 11:43:55 2022] [error] [client 194.87.218.22:0] AH01630: client denied by server configuration: /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/db-cache.php
dreamtexltd.com [Mon Apr 25 11:44:05 2022] [error] [client 194.87.218.22:0] AH01630: client denied by server configuration: /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/outcms.php
dreamtexltd.com [Mon Apr 25 12:09:01 2022] [error] [client 10.16.12.5:0] End of script output before headers: wp-cron.php
dreamtexltd.com [Mon Apr 25 12:19:01 2022] [error] [client 10.16.12.5:0] End of script output before headers: wp-cron.php
dreamtexltd.com [Mon Apr 25 12:31:44 2022] [error] [client 81.102.37.178:0]
dreamtexltd.com [Mon Apr 25 12:31:44 2022] [error] [client 81.102.37.178:0] mmap() failed: [12] Cannot allocate memory
dreamtexltd.com [Mon Apr 25 12:31:44 2022] [error] [client 81.102.37.178:0]
dreamtexltd.com [Mon Apr 25 12:31:44 2022] [error] [client 81.102.37.178:0] mmap() failed: [12] Cannot allocate memory
dreamtexltd.com [Mon Apr 25 12:31:44 2022] [error] [client 81.102.37.178:0] mmap() failed: [12] Cannot allocate memory
dreamtexltd.com [Mon Apr 25 12:31:44 2022] [error] [client 81.102.37.178:0]
dreamtexltd.com [Mon Apr 25 12:32:02 2022] [error] [client 10.16.12.5:0] End of script output before headers: wp-cron.php
dreamtexltd.com [Mon Apr 25 12:35:18 2022] [error] [client 10.16.12.5:0]
dreamtexltd.com [Mon Apr 25 12:35:18 2022] [error] [client 10.16.12.5:0] mmap() failed: [12] Cannot allocate memory
dreamtexltd.com [Mon Apr 25 12:35:18 2022] [error] [client 10.16.12.5:0] PHP Fatal error: Out of memory (allocated 139132928) (tried to allocate 2101248 bytes) in /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-includes/functions.php on line 617
dreamtexltd.com [Mon Apr 25 12:35:18 2022] [error] [client 10.16.12.5:0] mmap() failed: [12] Cannot allocate memory
dreamtexltd.com [Mon Apr 25 12:35:18 2022] [error] [client 10.16.12.5:0]
dreamtexltd.com [Mon Apr 25 12:47:01 2022] [error] [client 10.16.12.5:0] End of script output before headers: wp-cron.php
dreamtexltd.com [Mon Apr 25 12:54:01 2022] [error] [client 10.16.12.5:0] End of script output before headers: wp-cron.php
dreamtexltd.com [Mon Apr 25 13:01:01 2022] [error] [client 10.16.12.5:0] End of script output before headers: wp-cron.php
dreamtexltd.com [Mon Apr 25 13:01:33 2022] [error] [client 81.102.37.178:0] mmap() failed: [12] Cannot allocate memory
dreamtexltd.com [Mon Apr 25 13:01:33 2022] [error] [client 81.102.37.178:0]
dreamtexltd.com [Mon Apr 25 13:01:33 2022] [error] [client 81.102.37.178:0]
dreamtexltd.com [Mon Apr 25 13:01:33 2022] [error] [client 81.102.37.178:0] mmap() failed: [12] Cannot allocate memory
dreamtexltd.com [Mon Apr 25 13:08:01 2022] [error] [client 10.16.12.5:0] End of script output before headers: wp-cron.php
dreamtexltd.com [Mon Apr 25 13:15:01 2022] [error] [client 10.16.12.5:0] End of script output before headers: wp-cron.php
dreamtexltd.com [Mon Apr 25 13:23:01 2022] [error] [client 10.16.12.5:0] End of script output before headers: wp-cron.php
dreamtexltd.com [Mon Apr 25 14:15:17 2022] [error] [client 90.208.20.76:0] AH01630: client denied by server configuration: /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/uploads/2021/04/index.php
dreamtexltd.com [Mon Apr 25 14:15:17 2022] [error] [client 90.208.20.76:0] AH01630: client denied by server configuration: /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/uploads/2021/04/index.php
dreamtexltd.com [Mon Apr 25 18:32:29 2022] [error] [client 81.102.37.178:0] PHP Fatal error: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php on line 1062 and defined in /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:3766
dreamtexltd.com [Mon Apr 25 18:32:29 2022] [error] [client 81.102.37.178:0] Stack trace:
dreamtexltd.com [Mon Apr 25 18:32:29 2022] [error] [client 81.102.37.178:0] #0 /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1062): aviaElementTemplates->set_locked_attributes(”, Object(avia_sc_slider_full), ‘av_slide_full’, Array, Array, ”)
dreamtexltd.com [Mon Apr 25 18:32:29 2022] [error] [client 81.102.37.178:0] #1 /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1106): avia_sc_slider_full->get_element_styles(Array)
dreamtexltd.com [Mon Apr 25 18:32:29 2022] [error] [client 81.102.37.178:0] #2 /home/cluster-sites/2/d/dreamt in /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php on line 3766
dreamtexltd.com [Mon Apr 25 18:32:49 2022] [error] [client 5.161.100.123:0] AH01276: Cannot serve directory /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-admin/css/: No matching DirectoryIndex (index.cgi,index.php) found, and server-generated directory index forbidden by Options directive
I have been back on the website, there is no longer a 500 internal server error on the home page, however Im still getting the critical error on the initial page in question, I have deactivated all plug-ins and still get the critical error.
I can however edit the page if i use the 2022 WP theme. I have removed WP 2021 theme.
As far as I can remember, I do not think there is any custom code on that page.
Hope this gives some insight.
Thanks
Ric
Hi Ismael,
I removed the commented lines (367-369) in the WC config.php file. I’ve cleared all caches at the server level as well as cache pages (WP Rocket) and I still see the wrong pagination. Here’s what’s the config.php:
//remove woo defaults
remove_action( ‘woocommerce_sidebar’, ‘woocommerce_get_sidebar’, 10);
remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_output_content_wrapper’, 10);
remove_action( ‘woocommerce_after_main_content’, ‘woocommerce_output_content_wrapper_end’, 10);
remove_action( ‘woocommerce_after_shop_loop_item’, ‘woocommerce_template_loop_add_to_cart’, 10);
remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_breadcrumb’, 20, 0);
remove_action( ‘woocommerce_pagination’, ‘woocommerce_pagination’, 10 );
remove_action( ‘woocommerce_before_single_product’, array($woocommerce, ‘show_messages’), 10);
Here’s what I have added to the Code Snippets plugin that includes all IDs of of the custom pages and it does not work:
add_action( ‘after_setup_theme’, function() {
if( ! is_product_category() && is_page( array(18795, 18804, 18807, 18801, 18798, 18791, 18793, 18788) ) ) {
//add woo pagination back on custom pages
add_action( ‘woocommerce_after_shop_loop’, ‘woocommerce_pagination’, 10 );
}
}, 10);
Thanks
Lyse
Hi navindesigns!
Thank you for the inquiry.
Is this a duplicate of this thread?
// https://kriesi.at/support/topic/move-gallery-caption-below-thumbnails/#post-1348740
For the horizontal gallery, you have to edit the config-templatebuilder/avia-shortcodes/gallery_horizontal/gallery_horizontal.php and place this code after line 615.
$output .= "<span class='avia-gallery-caption'>{$caption}</span>";
After this code.
{
$lightbox_attr = Av_Responsive_Images()->html_attr_image_src( $lightbox_img_src, false );
$output .= "<a {$lightbox_attr} class='av-horizontal-gallery-link' {$display_char} title='{$lightbox_title}' alt='{$alt}'>";
$output .= '</a>';
}
Regards,
Ismael
Hi,
Thank you for your patience, I removed the above function and added this script to move the search above the blog content on mobile:
function custom_move_search_script() { ?>
<script>
(function($) {
var width = $(window).width();
if ( width <= 767) {
$('#top.blog #search-3').css({ 'padding-bottom': '0'}).detach().insertBefore('.template-blog>main.content');
} else {}
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_move_search_script');
Please clear your browser cache and check.
Best regards,
Mike
Hi Tobi,
They are already set to none in the code Ismael shared here – https://kriesi.at/support/topic/html-code-in-contact-form/#post-1341747.
You can simply copy & paste the code into functions.php file of your child theme in Appearance > Editor
Best regards,
Yigit
Hi Rikard,
I hadnt noticed that before but its only the Home page that is throwing up the 500 internal server error for me. I can edit all the other pages, apart from the page ‘Dreamtex Earth’
Unfortunately I do not have access to gain server error info at the moment…I’ll need to ask the client to contact their host
I have re-installed the theme, also deactivated all plug-ins and tried to edit the page mentioned above and I get this:

I now have a different error from WordPress:
In this case, WordPress caught an error with your theme, Enfold.
First, visit your website (https://dreamtexltd.com/) and check for any visible issues. Next, visit the page where the error was caught (https://dreamtexltd.com/wp-admin/admin-ajax.php) and check for any visible issues.
Error Details
=============
An error of type E_COMPILE_ERROR was caused in line 224 of the file /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/framework/php/inc-autoconfig.php. Error message: require(): Failed opening required ‘/home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/framework/php/widgets/class-widget-loader.php’ (include_path=’.:/usr/share/pear73:/usr/share/php’)
Hi,
I just discovered that Masonry Gallery “Display Load More Button” is no longer working. I am not sure when it disappeared, but
I recently updated my Enfold theme to 4.9.2.1 on a child theme and the WP to 5.9.3.
Is anyone else seeing this problem?
One more question, is this button effectively a ‘lazy load’ option? If not, the option to load ‘all’ is a workaround for me. Currently, I have more than 24 photos, but 24 was my load limit.
Ref: PHP 7.4 & My SQL 5 if that is of any relevance.
Thanks in advance, E
Hi,
Thank you for your patience, I tested the GiveWP + Events Calendar + WooCommerce pluins on my test server with the same Enfold and WordPress versions as your site (the latest),

but the post slider and magazine elements showed correctly, so I thought that perhaps I had a different settings than you in one or all of the plugins so I exported your staging site settings (WordPress XML file) to my test server, linked below, and now it is a mirror of your staging sitewith very similar server settings,

but the post slider and magazine elements are showing correctly.
I tested your site with the child theme disabled, which didn’t help, I also tested your site with your child theme functions.php disabled:
/* Disable JetPack Just in Time Messages */
add_filter( 'jetpack_just_in_time_msgs', '__return_false', 99 );
// Fix events calendar dropdown and just shows the old download links.
add_filter( 'tec_views_v2_use_subscribe_links', '__return_false' );
which didn’t help, I checked your child theme header.php, but it is up-to-date with only a Google Analytics modification, which I tested without, with no success.
The only difference I can find is that you are using WPEngine caching and the Site Health says Custom rules have been added to your .htaccess file, see the screenshot above.
So I’m not sure what the issue could be, but I will forward this to the Dev Team for their review.
Best regards,
Mike
Hi guys, just working on this page https://dreamtexltd.com/dreamtexearth/ saved the page and got a critical error.
I can view the page however I cant now edit.
Theme Version 4.9.2.1
Login details below.
Error Details
=============
An error of type E_ERROR was caused in line 3766 of the file /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php. Error message: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php on line 1062 and defined in /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:3766
Stack trace:
#0 /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1062): aviaElementTemplates->set_locked_attributes(”, Object(avia_sc_slider_full), ‘av_slide_full’, Array, Array, ”)
#1 /home/cluster-sites/2/d/dreamtexltd.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1106): avia_sc_slider_full->get_element_styles(Array)
#2 /home/cluster-sites/2/d/dreamt
Thanks
Ric
transfering your codepen link to enfold buttons:
1) give a custom-class to your button: flip-button
2) this to the Label Input Field: <span class="back">Click!</span><span class="front">Read More</span>
( you can change the content to what you like to have as label for the button )
3) this to child-theme functions.php:
function set_data_attribute_for_flip_buttons(){
?>
<script type="text/javascript">
(function($) {
$(document).ready(function(){
$('.avia-button-wrap.flip-button').each( function() {
$(this).find('.avia-button').addClass('btn-flip');
var frontLabel = $(this).find('.front').html();
var backLabel = $(this).find('.back').html();
$(this).find('.avia-button').attr('data-front', frontLabel).attr('data-back', backLabel);
$(this).find('.label').css('display', 'none');
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'set_data_attribute_for_flip_buttons');
4) this to quick css:
body div .avia-button.btn-flip {
padding: 0px;
margin: 0px;
opacity: 1;
outline: 0;
color: #fff;
line-height: 40px !important;
position: relative;
text-align: center;
letter-spacing: 1px;
display: inline-block;
text-decoration: none;
font-family: "Open Sans";
text-transform: uppercase;
}
body div .avia-button.btn-flip:hover:after {
opacity: 1;
transform: translateY(0) rotateX(0);
}
body div .avia-button.btn-flip:hover:before {
opacity: 0;
transform: translateY(50%) rotateX(90deg);
}
body div .avia-button.btn-flip:after {
top: 0;
left: 0;
opacity: 0;
width: 100%;
color: #323237;
display: block;
transition: 0.5s;
position: absolute;
background: #adadaf;
content: attr(data-back);
transform: translateY(-50%) rotateX(90deg);
}
body div .avia-button.btn-flip:before {
top: 0;
left: 0;
opacity: 1;
color: #adadaf;
display: block;
padding: 0 ;
line-height: 40px;
transition: 0.5s;
position: relative;
background: #323237;
content: attr(data-front);
transform: translateY(0) rotateX(0);
}
Hey mikestoltz,
Thank you for using Enfold.
Yes, it is part of Enfold and can be found in enfold\framework\php\class-style-generator.php function link_google_font() around line 763ff.
Script is used to load google fonts (with a prior GDPR check).
If you do not use Google fonts you can remove the script with filter ‘avf_output_google_webfonts_script’. Return false (or anything but not true).
If you need help with the filter let us know.
Best regards,
Günter
Hallo Guenni007,
ja, es ist tatsächlich alles identisch. Ich habe noch mal alles geprüft. Beide Codes sind identisch und wurden an derselben Stelle der jeweiligen Website eingefügt. Die Plugins, die PHP Version sowie der Hoster sind ebenfalls gleich.
Enfold forgets link URLs – if I insert a manual link URL into e.g. Promo Box, the box with the URL won´t show up on opening the modal window again (see screenshot). Furthermore, a console error shows up on opening the modal window “Uncaught TypeError: scope.find(…).avia_wpColorPicker is not a function” – please help.

System Info: WordPress 5.9.3, Enfold 4.9.2.1, php 7.4.28
Hi,
We deactivated the WP Super Cache and Autoptimize plugin and disabled this code in the functions.php file temporarily. The consent modal box is no longer displaying and the video is now working as expected.
function noellmn_add_erecht24_code() {
?>
<script type="application/javascript" src="https://app.usercentrics.eu/latest/main.js" id="7bx8tGQDy"></script>
<script type="application/javascript" src="https://privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js"></script>
<link rel="preconnect" href="//privacy-proxy.usercentrics.eu">
<link rel="preload" href="//privacy-proxy.usercentrics.eu/latest/uc-block.bundle.js" as="script">
<?php
}
// add_action('wp_head', 'noellmn_add_erecht24_code');
You may need to contact the usercentrics team for additional info about the script.
Best regards,
Ismael
This reply has been marked as private.
Hey beyondscarface,
If you are using version 3.6.1 then you will need to manually update because the license API in that version is no longer supported by Theme Forest.
Version 3.6.1 is very old and we are now at V4.9.2.1, so before updating please ensure that you make a full backup using your web hosting backup option, if you need help please ask your web host as each host has different options and they will know their options best.
Then ensure you are using the latest version of WordPress and your server PHP is at least v7.4.
Then to update your version of Enfold you will need to download the latest version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New

after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue

then you will see the Theme updated successfully message.
Best regards,
Mike
Hello Ismael,
Thank you for your answer.
The plugin is Woocommerce Sticky Add To Cart Bar (by addonsplus).
The element, for example, is the image size (of the product I want to sell). For this, I used the following CSS snippet:
.wsc-left-section-img > img {
height: 50px !important;
max-height: 50px !important;
max-width: 75px !important;
}
The link to my actual page (currently for testing purposes):
https://euc.klokain.org/produkt/map-flyer/
I want to use the template on this page as a starting place for my later products.
As an amateur, I’m not into PHP that much and do not fully understand how this wp_enqueue_style function could work. So I admit that I have little idea.
I appreciate your patience.
Lutz
Hi,
Having a look in your backend:
PHP is very outdated with 5.6.40. You should upgrade to minimum 7.4.xx (or 8.0.xxx) – also for security reasons.
Enfold is also not up to date – we have 4.9.2.1 out since a few weeks.
Also depending on your hoster it could be, that he is doing some caching. You should check this and if yes, maybe he can provide you a staging server without this caching for testing.
WPML has integrated the translation management in core lately (it was a seperate plugin before) – therefore they encourage to use “Translate” and not “Duplicate”.
This also works very well with our Advanced Layout Builder.
We have fixed 2 minor WPML bugs in next Enfold 4.9.2.2 – so if update to 4.9.2.1 does not help we can give you a pre release of 4.9.2.2 to test.
Best regards,
Günter
Hi,
Thank you for the update.
The error occurs because you haven’t created a new shortcode path in the child theme directory. To do that, we added this code in the functions.php file.
add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.'/shortcodes/');
return $paths;
}
We also added this css code in the style.css file to adjust the position of the dots a bit.
.avia-slideshow-dots a {
display: inline-block;
}
.avia-slideshow-dots {
bottom: -30px;
}
Best regards,
Ismael
Hi,
I followed the post you suggested: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
I created the file in the ” testimonials.php” folder of the child theme.
I inserted the function in the function.php file, but I get the error you see in the image: https://monosnap.com/file/xLnW2GXhcSZxglvooVFUjGSBns5Iy8
WordPress sent me an email with the details of the error:
Error Details
=============
An error of type E_ERROR was caused in line 731 of the file /home/customer/www/leagrowingpeople.com/public_html/wp-content/themes/enfold-child/shortcodes/testimonials.php. Error message: Uncaught Error: Call to undefined method aviaElementStyling::add_responsive_classes() in /home/customer/www/leagrowingpeople.com/public_html/wp-content/themes/enfold-child/shortcodes/testimonials.php:731
Stack trace:
#0 /home/customer/www/leagrowingpeople.com/public_html/wp-content/themes/enfold-child/shortcodes/testimonials.php(931): avia_sc_testimonial->get_element_styles(Array)
#1 /home/customer/www/leagrowingpeople.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1123): avia_sc_testimonial->shortcode_handler(Array, ‘\n[av_test…’, ‘av_testimonials’, Array)
#2 /home/customer/www/leagrowingpeople.com/public_html/wp-includes/shortcodes.php(356): aviaShortcodeTemplate->shortcode_handler_prepare(Array, ‘\n[av_test…’, ‘av_testimonials’)
#3 [internal function]: do_shortcode_tag(Array)
#4 /home/customer/www/leagrowingpeople.com/public_html/wp-includes/shortcodes.php(228): preg_replace_callback(‘/\\[(\\[?)(av_tes…’, ‘do_shortcod
If I remove the function I don’t see any changes in the testimonial.
How can I fix it?
Thank you for your support,
Manuela
Hi,
Glad @Guenni007 was to able help. To move the author below the post title, try to add this filter in the functions.php file.
add_filter('avf_magazine_header_content', function($header_content, $entry) {
$author = $header_content['author'];
unset($header_content['author']);
$header_content['author'] = $author;
return $header_content;
}, 10, 2);
Best regards,
Ismael
Hello again, I added the line, but no results yet.
below are lines 37 – 43 of my loop-author.php:
`$size = strpos($blog_style, ‘big’) ? (strpos($current_post[‘post_layout’], ‘sidebar’) !== false) ? ‘entry_with_sidebar’ : ‘entry_without_sidebar’ : ‘square’;
$current_post[‘slider’] = get_the_post_thumbnail($current_post[‘the_id’], “entry_with_sidebar”);
$current_post[‘title’] = get_the_title();
$current_post[‘content’] = apply_filters(‘avf_loop_author_content’, get_the_excerpt());
$with_slider = empty($current_post[‘slider’]) ? ” : ‘with-slider’;`
I have a similar problem with my category pages: the thumbnails just arent getting rendered at all.
I get this element: <header class="entry-content-header">
but not: <div class='page-thumb'>
which makes me suspicious that the call on line 23 in loop-page.php (below) isn’t returning a value for these posts.
$thumb = get_the_post_thumbnail( get_the_ID(), $avia_config['size'] );
Additional info:
– my primary page for my articles (the one that looks right) is set as the “blog page” in the ACOM theme options, and these other pages are not. Is there some kind of styling or templating that happens for the formatting of the primary page that I can copy over to my /category/{category} and author pages?
Hi,
Thanks for the feedback, for this to only work on desktop I adjusted the script in your child theme functions.php to:
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) && (scroll_start > offset.top - 117)) {
document.querySelector('.avia-section.collant').classList.add('sticky-top');
} else {
document.querySelector('.avia-section.collant').classList.remove('sticky-top');
}
});
}
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_collant_script');
and the child theme css to:
.sticky-top {
position:fixed!important;
top:117px!important;
z-index:600!important;
}
Please try disabling your Cloudflare & LiteSpeed Cache and leave it disabled as it may take a few hours for the cache to clear.
I would like to check again later the cache disabled.
Best regards,
Mike
Hi I need to change the word Da in Di here (I’ve used Magazine a block).

I’ve tried Loco traslate with no success.
Do I need a custom php function ?
I also need this meta data to appear after per post title. Can You help me?
I need this way:

-
This topic was modified 4 years ago by
niguli.