-
AuthorSearch Results
-
March 27, 2025 at 10:30 pm #1480296
In reply to: Error within a theme helps with update?
Hey Ksenia,
Your Enfold version is very old: v3.3.2, we are now at v7.0.1
Your PHP version is 7.4.33, which is also outdated.
You should first update your theme with the following steps, and then update your PHP to v8+, if you don’t know how to do this please ask your webhost.
To update your version of Enfold you will need to download the latest installable WP 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.

Please note that we don’t expect any issues with these steps, but it is always a good idea to first create a full backup of your site (files + database) with your webhost backup tool, not a WP backup plugin. Since there are may different webhosts ask your webhost for help creating a full backup.Best regards,
MikeMarch 27, 2025 at 12:16 pm #1480267In reply to: magnific popup missing form
OK now my code block is just:
<div style=”text-align: left” class=”sender-form-field” data-sender-form-id=”m8a4fv8kegj7l6vonkw”></div>
and I added the sender code to my functions.php but the form is still not there.March 27, 2025 at 12:11 pm #1480266In reply to: Enfold 7.0
Hi,
Thank you for using Enfold.
The main changes in 7.0 was adding svg icons.
And changes to ..\config-templatebuilder\avia-template-builder\php\class-font-manager.php – deprecating functions like av_icon(), ….And: splitted functions.php and functions-enfold.php in seperate files and restructured files in /includes folder
Maybe this causes problems with your code.
You will need to check WP error log for any messages – maybe that helps to find the problem.
Best regards,
GünterMarch 27, 2025 at 4:50 am #1480230In reply to: ava_cron_post_css_delete_files
Hi,
According to @Guenter, you can try this code in the functions.php file:
add_theme_support(‘avia_log_cron_job_messages’)Then, enable WP_DEBUG and the error logs to see if there’s any errors.
Best regards,
IsmaelMarch 27, 2025 at 4:46 am #1480228In reply to: magnific popup missing form
Hi,
Thank you for the update.
Try to remove the sender script from the color section or code block, leave the div container, then replace the inline_popup_enabler with this code.
function inline_popup_enabler(){ ?> <script> (function($){ $(window).on('load', function() { $('.inline_popup').magnificPopup({ type: 'inline', midClick: true, callbacks: { open: function() { (function (s, e, n, d, er) { s['Sender'] = er; s[er] = s[er] || function () { (s[er].q = s[er].q || []).push(arguments); }, s[er].l = 1 * new Date(); var a = e.createElement(n), m = e.getElementsByTagName(n)[0]; a.async = 1; a.src = d; m.parentNode.insertBefore(a, m); })(window, document, 'script', 'https://cdn.sender.net/accounts_resources/universal.js', 'sender'); sender('4f4c8522254761'); } } }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'inline_popup_enabler');Let us know the result.
— https://dimsemenov.com/plugins/magnific-popup/documentation.html#api
Best regards,
IsmaelMarch 24, 2025 at 9:13 am #1480034In reply to: Fullwidth submenu shortcode break layout
Sorry – that was my mistake. I wrote the wrong CSS when I was writing to you.
It doesn’t work with the correct CSS either. In the meantime, I found the right solution, which was this PHP:
php
Kopiér
Rediger
add_action(‘ava_after_main_container’, ‘custom_submenu’);
function custom_submenu() {
if (wp_is_mobile()) {
return; // Stop the function if it’s a mobile device
}
$classes = get_body_class();
if ((in_array(‘woocommerce-page’, $classes)) || (in_array(‘archive’, $classes))) {
echo do_shortcode(“[av_submenu which_menu='' menu='3251' position='center' sticky='aviaTBsticky' color='footer_color' mobile='disabled' mobile_switch='av-switch-768' alb_description='' id='' custom_class='' template_class='' av_uid='av-m8fv68yn' sc_version='1.0']
[av_submenu_item title='Menu Item 1' button_style='' link='' link_dynamic='' linktarget='' title_attr='' av_uid='av-d3kl3k2' sc_version='1.0']
[av_submenu_item title='Menu Item 2' button_style='' link='' link_dynamic='' linktarget='' title_attr='' av_uid='av-683en9e' sc_version='1.0']
[/av_submenu]“);
}
}March 21, 2025 at 9:07 pm #1479885Topic: Website not loading after Enfold Theme Update
in forum Enfolddmiklus
ParticipantHi,
I am encountering an issue after updating enfold to the latest version on the home page:
Fatal error: Uncaught Error: Class “DOMDocument” not found in /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/classes/class.ls.dom.php:19 Stack trace: #0 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/classes/class.ls.dom.php(48): LayerSlider\DOM->__construct() #1 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/includes/slider_markup_html.php(674): LayerSlider\DOM::newDocumentHTML() #2 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/wp/shortcodes.php(384): include(‘/home/beautyof/…’) #3 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/wp/shortcodes.php(279): LS_Shortcode::generateSliderMarkup() #4 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/wp/shortcodes.php(86): LS_Shortcode::processShortcode() #5 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php(193): LS_Shortcode::handleShortcode() #6 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1329): avia_sc_layerslider->shortcode_handler() #7 /home/beautyof/public_html/wp-includes/shortcodes.php(434): aviaShortcodeTemplate->shortcode_handler_prepare() #8 [internal function]: do_shortcode_tag() #9 /home/beautyof/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #10 /home/beautyof/public_html/wp-includes/class-wp-hook.php(324): do_shortcode() #11 /home/beautyof/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #12 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/template-builder.php(102): apply_filters() #13 /home/beautyof/public_html/wp-includes/template-loader.php(106): include(‘/home/beautyof/…’) #14 /home/beautyof/public_html/wp-blog-header.php(19): require_once(‘/home/beautyof/…’) #15 /home/beautyof/public_html/index.php(17): require(‘/home/beautyof/…’) #16 {main} thrown in /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/classes/class.ls.dom.php on line 19
Could you please advise how to solve the issue?
Regards
DavidMarch 21, 2025 at 9:19 am #1479849In reply to: Problem installing Google Font
Hi Ismael,
Log in below. I’ll raise a ticket with 123-reg re PHP Zip extension.
Fonts provided by Guenni007 are in the library.Many thanks
March 21, 2025 at 4:19 am #1479826In reply to: Blog post featured image size
Hey mosaic,
Thank you for the inquiry.
You can add this code in the functions.php file to adjust the default size of the featured image:
function avf_customization_modify_thumb_size( $size ) { $size['entry_without_sidebar'] = array( 'width' => 9999, 'height' => 9999 ); $size['entry_with_sidebar'] = array( 'width' => 9999, 'height' => 9999 ); return $size; } add_filter( 'avf_modify_thumb_size', 'avf_customization_modify_thumb_size', 10, 1 );After adding the filter or code, you’ll have to regenerate the thumbnails or upload the images again:
— https://wordpress.org/plugins/regenerate-thumbnails/
IMPORTANT: Please make sure to create a site backup or restore point before proceeding.
Related thread: https://kriesi.at/support/topic/full-image-on-single-post/#post-1471379
Best regards,
IsmaelMarch 20, 2025 at 1:18 pm #1479796In reply to: Enfold 7.0
Here’s a file to one of the elements /enfold/cards.php
https://pastebin.com/sAGgw77AThis is the mast functions.php
https://pastebin.com/sAGgw77AMarch 20, 2025 at 11:21 am #1479791Topic: Fullwidth submenu shortcode break layout
in forum Enfoldditteditte
ParticipantHi,
I want to add a second menu underneath the main menu. To do so, I added this piece of code to my functions.php file.
php
add_action(‘ava_after_main_container’, ‘custom_submenu’);
function custom_submenu() {
$classes = get_body_class();
if ((in_array(‘woocommerce-page’, $classes)) || (in_array(‘archive’, $classes))) {
echo do_shortcode(“[av_submenu which_menu='' menu='3251' position='right' sticky='aviaTBsticky' color='footer_color' mobile='disabled' mobile_switch='av-switch-768' alb_description='' id='' custom_class='only-desktop' template_class='' av_uid='av-m8fv68yn' sc_version='1.0']
[av_submenu_item title='Menu Item 1' button_style='' link='' link_dynamic='' linktarget='' title_attr='' av_uid='av-d3kl3k2' sc_version='1.0']
[av_submenu_item title='Menu Item 2' button_style='' link='' link_dynamic='' linktarget='' title_attr='' av_uid='av-683en9e' sc_version='1.0']
[/av_submenu]“);
}
}
This is working perfectly on desktops. However, on mobile devices, it breaks the layout on WooCommerce pages—my two columns of products are squeezed to one side, taking up only half of the screen while leaving the other half blank.Since I don’t want the menu to appear on mobile devices, I tried hiding it with this CSS:
css
@media only screen and (max-width: 768px) {
.desktop-only {
display: none !important;
}
}
But it doesn’t work. Can you help me figure out a way to hide the full-width submenu on mobile devices so it doesn’t break the layout?March 20, 2025 at 11:09 am #1479787Topic: Problem installing Google Font
in forum Enfoldfanlokbun
ParticipantWhen I try to install a Google Petrona font via Custom Type Fonts Manager in Theme options I get this error:
https://www.thegatheringbarn.co.uk/wp-content/uploads/2025/03/Screenshot-2025-03-18-111749.png
“Couldn’t add the font because the server didn’t respond. Please reload the page, then try again”
I used to do it via functions.php and CSS but I’ve forgoten how.
This is a reissue because last ticket was filled with info about variable fonts so looked like it was being dealt with. Please can this one just be about the problem at hand.
Many thanksMarch 20, 2025 at 10:02 am #1479784Thank you for your help.
Unfortunately, the problem also occurs for me from version 7.0 onwards, even without a child theme.
I have made a short video demonstrating the issue:
(see private content)Audio files can be selected and rearranged, but after adding them, the playlist remains empty in the settings window.
Best regards,
Mischa—
Enfold 7.1 (with and without Child-Theme)
WordPress 6.7.2
Web server Apache
PHP version 8.2.28
Browsers: Firefox 128.8.0esr, Chrome 134.0.6998.118, Safari 18.3Console-Error-Message:
avia-builder.js?ver=6.7.2-7.1 Uncaught TypeError: update_html.indexOf is not a function at HTMLDivElement.<anonymous> (avia-builder.js?ver=6.7.2-7.1:2324:27) at ce.each (jquery.min.js?ver=3.7.1:2:3129) at e.<computed>.each (jquery.min.js?ver=3.7.1:2:1594) at $.AviaBuilder.update_builder_html (avia-builder.js?ver=6.7.2-7.1:2251:23) at avia-media.js?ver=7.1:553:36 at m.I (underscore.min.js?ver=1.13.7:2:9610) at n.map (backbone.min.js?ver=1.6.0:2:1129) at h.Collection.<anonymous> (avia-media.js?ver=7.1:413:24) at p (backbone.min.js?ver=1.6.0:2:3700) at f (backbone.min.js?ver=1.6.0:2:3497)PS:
I have created a temporary fix for the avia-builder.js from line 2324.// Put this in avia-builder.js at line 2324: $(this).each(function() { // Check if update_html is a string or an array before using indexOf if (typeof update_html === 'string' || Array.isArray(update_html)) { if (update_html.indexOf('avia_builder_') !== -1) { // code to process the update ... if( update_html.indexOf( '###avia64###:' ) !== -1 ) { // encode base64 string update_html = update_html.replace( '###avia64###:', '' ); update_html = atob( update_html ); } } } else { // Handle the case where update_html is not a string or array console.error('update_html is not a string or array:', update_html); } });-
This reply was modified 1 year ago by
Mischa.
March 19, 2025 at 5:44 pm #1479732Hey meganp46,
Thanks for reporting this and sorry for the problems.
Please replace
..\enfold\config-events-calendar\config.php
with
Do not forget to make a copy of the original file for a fallback and clear server and browser cache.
If you need help with this let us know.
Fix will be added to next release 7.1.1.
Best regards,
GünterMarch 19, 2025 at 11:12 am #1479716meganp46
ParticipantHi
The following error message appears on a customer website::
Warning: Undefined property: stdClass::$ID in /home/httpd/vhosts/sbv-asgm.ch/4000arbeitssicherheit.ch/wp-content/themes/enfold/includes/config-enfold/functions-enfold.php on line 860
The same warning also appears for line 862I have already deactivated all plugins, then reactivated them one by one. The problem seems to be due to a conflict between Enfold and the plugin “The Events Calendar”. Despite the error message, everything seems to be working. But this error message gives me no peace…
Everything is up to date:
WordPress 6.7.2
PHP 8.1.3
Enfold 7.1
The Events Calendar 6.10.2I would be very happy and very grateful if you could help me to solve the problem.
Best regards
MeganMarch 18, 2025 at 9:17 pm #1479658In reply to: Setting up two new social profiles under Enfold 7.1
Hi,
I tested your fontello-d73127ed.zip and added this php code to my functions.phpfunction avia_add_custom_icon($icons) { $icons['mastodon'] = array( 'font' =>'mastodon-bluesky', 'icon' => 'ue800'); $icons['bluesky'] = array( 'font' =>'mastodon-bluesky', 'icon' => 'ue801'); return $icons; } add_filter('avf_default_icons','avia_add_custom_icon', 10, 1); function avia_add_custom_social_icon($icons) { $icons['mastodon'] = 'mastodon'; $icons['bluesky'] = 'bluesky'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1); add_filter('avia_social_share_link_arguments', 'avia_add_social_share_link_arguments', 10, 1); function avia_add_social_share_link_arguments($args){ $mastodon = array('mastodon' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://www.mastodon.com/", 'label' => __("Share on mastodon",'avia_framework'))); $bluesky = array('bluesky' => array("encode"=>true, "encode_urls"=>false, "pattern" => "https://www.bluesky.com/", 'label' => __("Share on bluesky",'avia_framework'))); $args = array_merge($mastodon,$bluesky, $args); return $args; }and this css to my quick css:
#top #wrap_all .av-social-link-mastodon:hover a{ color:#fff; background-color:blue; } #top #wrap_all .av-social-link-bluesky:hover a{ color:#fff; background-color:blue; }and they both show in my social profiles:

and in my “Profile Links At The Bottom Of Your Blog Post”

and in the header:

and in the “Share this entry” on blog posts:

please give this a try.Best regards,
MikeMarch 16, 2025 at 6:20 pm #1479484Topic: magnific popup missing form
in forum EnfoldMunford
Participanton the page below I have 2 links called TILMELD DIG VORES NYHEDSBREV.
The top one is in a popup made with the enfold magnific popup code:function inline_popup_enabler(){ ?> <script> (function($){ $(window).load(function() { $('.inline_popup').magnificPopup({ type:'inline', midClick: true }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'inline_popup_enabler');I am then using “mfg-hide” in a color section containing some text and a sender.net widget with a signup form. The popup works but the form is not showing up.
The one on the bottom (which is a footer page) is done using an iframe and you can see the form widget there. It’s the same widget I uses in the tops ection. I also tried adding a code block to that top color section with the javascript I got off the sender page for the form.
It’s this and they told me to put all the code together in a code block, but that doesn’t work either:<script> (function (s, e, n, d, er) { s['Sender'] = er; s[er] = s[er] || function () { (s[er].q = s[er].q || []).push(arguments) }, s[er].l = 1 * new Date(); var a = e.createElement(n), m = e.getElementsByTagName(n)[0]; a.async = 1; a.src = d; m.parentNode.insertBefore(a, m) })(window, document, 'script', 'https://cdn.sender.net/accounts_resources/universal.js', 'sender'); sender('4f4c8522254761') </script> <div style="text-align: left" class="sender-form-field" data-sender-form-id="m8a4fv8kegj7l6vonkw"></div>Can you take a look? I like the top popup better but need the form to show up.
Thanks
Nancy-
This topic was modified 1 year ago by
Munford.
March 16, 2025 at 12:59 pm #1479465In reply to: Theme is showing as “broken” in WordPress
Hi,
When I check your parent theme enfold looks correct:

and in the child theme the Template name looks correct:

but I have not seen this code in your child theme functions.php:

I tried commenting it out, but it didn’t help.
Currently you have the Twenty Twenty-Five active, I’m not sure what your critical error was, perhaps the best solution is to restore from a older backup.Best regards,
MikeMarch 16, 2025 at 12:00 pm #1479454Hi,
Try replacing the file at enfold/framework/php/class-responsive-images.php with the linked file.
Keep the old file as a fallback.Best regards,
MikeMarch 15, 2025 at 9:11 pm #1479438In reply to: Theme is showing as “broken” in WordPress
Here is the latest information sent to me by BlueHost support:
Hello Dana,
Glad to reconnect with you again, This is Akshatha and I understand how important it is to have your website functioning properly, and I sincerely apologize for any inconvenience caused regarding the restoration of the Enfold Child Theme.
Upon review, I can confirm that the website files and database tables have been restored from the requested date, and all the contents available in the backup have been successfully restored to the site. However, since you’ve noted that the restored contents do not seem to include the necessary data for the Enfold Child Theme, I have thoroughly checked the contents of the Enfold Child Theme in the file manager and attached the screenshot for your reference.
Currently, the domain points to the following directory: /home1/abafousu/public_html/abridgetoachievement
I checked the theme data inside the directory: /home1/abafousu/public_html/abridgetoachievement/wp-content/themes
Here are the details of the restored contents:
Plain Text
(Email address hidden if logged out) [~/public_html/abridgetoachievement/wp-content/themes]# du -sch *65M enfold84K enfold-child0 index.php8.6M twentytwentyfive3.5M twentytwentyfour2.6M twentytwentyone.1.3.zip2.8M twentytwentythree87M total
The “enfold-child” folder has a size of 84K, and this data matches what we restored from the backup. Additionally, I checked the size of the “enfold-child” folder in all available server backups,Backup dates: Daily Mar 12 21:54
Weekly Mar 6 20:51
Monthly Feb 13 20:58
and the details are as follows:
Daily Backup:
Plain Text
65M /home/box5791.bluehost.com/backup1/cpbackup/daily/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/enfold84K /home/box5791.bluehost.com/backup1/cpbackup/daily/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/enfold-child0 /home/box5791.bluehost.com/backup1/cpbackup/daily/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/index.php8.6M /home/box5791.bluehost.com/backup1/cpbackup/daily/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentyfive3.5M /home/box5791.bluehost.com/backup1/cpbackup/daily/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentyfour2.6M /home/box5791.bluehost.com/backup1/cpbackup/daily/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentyone.1.3.zip2.8M /home/box5791.bluehost.com/backup1/cpbackup/daily/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentythree82M total
Weekly Backup:Plain Text
65M /home/box5791.bluehost.com/backup1/cpbackup/weekly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/enfold84K /home/box5791.bluehost.com/backup1/cpbackup/weekly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/enfold-child0 /home/box5791.bluehost.com/backup1/cpbackup/weekly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/index.php8.6M /home/box5791.bluehost.com/backup1/cpbackup/weekly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentyfive3.5M /home/box5791.bluehost.com/backup1/cpbackup/weekly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentyfour2.6M /home/box5791.bluehost.com/backup1/cpbackup/weekly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentyone.1.3.zip2.8M /home/box5791.bluehost.com/backup1/cpbackup/weekly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentythree82M total
Monthly Backup:Plain Text
65M /home/box5791.bluehost.com/backup1/cpbackup/monthly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/enfold84K /home/box5791.bluehost.com/backup1/cpbackup/monthly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/enfold-child0 /home/box5791.bluehost.com/backup1/cpbackup/monthly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/index.php8.6M /home/box5791.bluehost.com/backup1/cpbackup/monthly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentyfive3.5M /home/box5791.bluehost.com/backup1/cpbackup/monthly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentyfour2.6M /home/box5791.bluehost.com/backup1/cpbackup/monthly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentyone.1.3.zip2.8M /home/box5791.bluehost.com/backup1/cpbackup/monthly/abafousu/homedir/public_html/abridgetoachievement/wp-content/themes/twentytwentythree82M total
As you can see, in all backups, the “enfold-child” folder consistently has a size of 84K. Therefore, the data that has been restored is identical to what exists in the backups.If you would like us to attempt another restoration from a different backup date, we can certainly proceed. Please let us know the desired backup date and whether you want the full website and database restored or just the Enfold Child Theme files.
For your convenience, you can use the following template to grant us permission: “I grant permission to restore [specify files or entire website] from the date [specify date].”
With your permission we’ll proceed further with the restoration.
We are here to assist and ensure your website is fully operational. Should you need any further investigation or clarification, please let us know.
Regards,
Akshatha N.
Escalated SupportMarch 14, 2025 at 7:48 pm #1479365In reply to: Erweiterter Layout Editor bringt leere Seite
Hi,
Yes, and I posted the content of the error log file here. There are no fatal error in there, so there are no clues for us to follow. You should try reaching out to your hosting provider and ask why the server is returning a 500 internal server error on the admin-ajax.php file as mentioned here.
Best regards,
RikardMarch 13, 2025 at 10:18 pm #1479281Hi,
The Dev Team writes that it sounds like server related issue and maybe caused by a plugin or more than several thousand posts/pages
Try to replace
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_7_0/framework/php/class-responsive-images.phpBest regards,
MikeMarch 12, 2025 at 9:18 am #1479143Hi,
Thanks for the update. Please try replacing enfold/framework/php/class-responsive-images.php with this file: https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_7_0/framework/php/class-responsive-images.php
Best regards,
RikardMarch 12, 2025 at 6:34 am #1479127In reply to: Help with some shop elements
Hi,
Try to add this code in the functions.php file to add a custom sales badge above the product image.
add_filter('woocommerce_sale_flash', 'avf_woocommerce_sale_badge', 10, 3); function avf_woocommerce_sale_badge($badge, $post, $product) { if ($product->is_on_sale()) { return '<span class="av-custom-sale-badge">Sale!</span>'; } return $badge; }Then apply this css code:
.av-custom-sale-badge { position: absolute; top: 10px; left: 10px; background: #7E9A47; color: white; padding: 5px 10px; font-size: 14px; font-weight: bold; border-radius: 5px; z-index: 10; }Best regards,
IsmaelMarch 11, 2025 at 12:49 pm #1479079Topic: Website Very Slow Editing Pages After Updating to Enfold 7.0
in forum EnfoldNicomIT
ParticipantI updated one of our client’s websites to Enfold 7.0 last week and have been experiencing very slow speeds when trying to edit pages.
We have have repaired and optimized the database tables and emptied the debug log file, which was quite large. We also updated PHP to the latest release and increased the PHP resources to improve the website’s performance. Unfortunately, none of those things have helped.
Any suggestions or assistance would be appreciated. Thanks.
March 9, 2025 at 5:05 pm #1478955March 7, 2025 at 10:35 am #1478841In reply to: Erweiterter Layout Editor bringt leere Seite
Hi,
Thanks for that, but there are not fatal errors in the error log:
[Fri Mar 07 03:35:41.531746 2025] [proxy_fcgi:error] [pid 1651650:tid 140412245128960] [client 45.67.216.103:44052] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 03:59:45.915313 2025] [proxy_fcgi:error] [pid 1720063:tid 140412438161152] [client 45.77.117.169:5738] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 04:25:05.275181 2025] [proxy_fcgi:error] [pid 1845014:tid 140412295485184] [client 185.126.20.94:42118] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 04:51:05.598448 2025] [proxy_fcgi:error] [pid 1845014:tid 140412068882176] [client 5.44.100.208:32600] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 05:12:42.011924 2025] [proxy_fcgi:error] [pid 1967461:tid 140412421375744] [client 66.249.79.4:21436] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 05:12:43.801954 2025] [proxy_fcgi:error] [pid 1967461:tid 140412387804928] [client 66.249.79.164:21464] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 05:18:35.936189 2025] [proxy_fcgi:error] [pid 1967461:tid 140412354234112] [client 172.203.190.141:20306] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 05:30:44.471063 2025] [proxy_fcgi:error] [pid 1967461:tid 140412018525952] [client 207.46.13.155:63108] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 05:32:22.643071 2025] [proxy_fcgi:error] [pid 1967461:tid 140412001740544] [client 46.163.73.86:30014] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 06:03:17.747884 2025] [proxy_fcgi:error] [pid 2122342:tid 140412463339264] [client 138.246.253.24:57296] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 06:03:55.134832 2025] [proxy_fcgi:error] [pid 2122342:tid 140412337448704] [client 50.116.23.132:18866] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 06:03:56.946258 2025] [proxy_fcgi:error] [pid 2122342:tid 140412396197632] [client 50.116.23.132:18892] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 06:04:02.524170 2025] [proxy_fcgi:error] [pid 2122342:tid 140412077274880] [client 50.116.23.132:5706] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/ [Fri Mar 07 06:12:42.896232 2025] [proxy_fcgi:error] [pid 2220531:tid 140412102452992] [client 93.81.236.143:14096] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 06:35:05.080907 2025] [proxy_fcgi:error] [pid 2220531:tid 140412052096768] [client 51.8.102.214:2706] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 06:37:28.765862 2025] [proxy_fcgi:error] [pid 2220531:tid 140412203165440] [client 178.128.250.184:56240] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 07:21:20.155068 2025] [proxy_fcgi:error] [pid 2507718:tid 140412371019520] [client 17.241.227.168:18808] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 07:21:21.628467 2025] [proxy_fcgi:error] [pid 2507718:tid 140412354234112] [client 17.241.227.168:46572] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 07:27:43.870011 2025] [proxy_fcgi:error] [pid 2507718:tid 140412463339264] [client 159.223.80.78:50140] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 07:42:47.377991 2025] [proxy_fcgi:error] [pid 2507718:tid 140412362626816] [client 66.249.79.33:25560] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 07:42:50.381020 2025] [proxy_fcgi:error] [pid 2507718:tid 140412312270592] [client 66.249.68.34:20704] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 08:14:46.483296 2025] [proxy_fcgi:error] [pid 2662858:tid 140412454946560] [client 188.143.244.135:37680] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: http://fdb.ch [Fri Mar 07 08:14:47.768082 2025] [proxy_fcgi:error] [pid 2662858:tid 140412421375744] [client 188.143.244.135:37696] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://fdb.ch/ [Fri Mar 07 08:20:53.172325 2025] [proxy_fcgi:error] [pid 2728714:tid 140412421375744] [client 77.68.75.38:63922] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 08:39:01.753308 2025] [proxy_fcgi:error] [pid 2802003:tid 140412261914368] [client 188.34.157.146:22840] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 08:41:48.001995 2025] [proxy_fcgi:error] [pid 2813154:tid 140412320663296] [client 27.147.200.202:21024] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 08:44:18.658998 2025] [proxy_fcgi:error] [pid 2813154:tid 140412077274880] [client 27.147.200.202:49922] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 08:44:21.822090 2025] [proxy_fcgi:error] [pid 2813154:tid 140412471731968] [client 27.147.200.202:44234] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 08:47:36.035358 2025] [proxy_fcgi:error] [pid 2825545:tid 140412463339264] [client 77.75.77.62:57686] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 08:47:36.099740 2025] [proxy_fcgi:error] [pid 2825545:tid 140412438161152] [client 77.75.77.62:57700] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 08:47:39.531697 2025] [proxy_fcgi:error] [pid 2825545:tid 140412387804928] [client 195.15.221.126:57820] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 08:52:35.564898 2025] [proxy_fcgi:error] [pid 2835387:tid 140412136023808] [client 138.246.253.24:42890] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:09:15.286924 2025] [proxy_fcgi:error] [pid 2905234:tid 140412018525952] [client 198.240.105.111:19414] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:09:16.895409 2025] [proxy_fcgi:error] [pid 2905234:tid 140412001740544] [client 198.240.105.111:19432] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:09:18.952864 2025] [proxy_fcgi:error] [pid 2905234:tid 140411984955136] [client 198.240.105.111:19434] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:09:20.624977 2025] [proxy_fcgi:error] [pid 2905234:tid 140411976562432] [client 198.240.105.111:55540] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:09:26.110223 2025] [proxy_fcgi:error] [pid 2905234:tid 140412421375744] [client 64.140.131.24:55626] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:09:26.385115 2025] [proxy_fcgi:error] [pid 2905234:tid 140412404590336] [client 209.99.148.220:55648] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:09:27.539747 2025] [proxy_fcgi:error] [pid 2905234:tid 140412379412224] [client 85.254.42.223:55684] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:09:27.677525 2025] [proxy_fcgi:error] [pid 2905234:tid 140412387804928] [client 168.151.93.166:55672] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:39:05.683007 2025] [proxy_fcgi:error] [pid 3012809:tid 140412026918656] [client 17.241.227.57:30692] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 09:41:14.154876 2025] [proxy_fcgi:error] [pid 3012809:tid 140412136023808] [client 13.215.214.254:49994] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 10:09:06.984824 2025] [proxy_fcgi:error] [pid 3063962:tid 140412253521664] [client 80.241.213.234:22226] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 10:17:20.905325 2025] [proxy_fcgi:error] [pid 3158172:tid 140411993347840] [client 66.249.79.98:43042] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 10:17:48.702091 2025] [proxy_fcgi:error] [pid 3158172:tid 140412303877888] [client 66.249.68.32:44714] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/ [Fri Mar 07 10:31:02.179594 2025] [proxy_fcgi:error] [pid 3231960:tid 140412412983040] [client 88.129.111.122:49486] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://kriesi.at/ [Fri Mar 07 10:31:03.744624 2025] [proxy_fcgi:error] [pid 3231960:tid 140412421375744] [client 88.129.111.122:49488] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://kriesi.at/ [Fri Mar 07 10:31:14.710614 2025] [proxy_fcgi:error] [pid 3231960:tid 140412245128960] [client 88.129.111.122:54714] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://kriesi.at/ [Fri Mar 07 10:31:16.101932 2025] [proxy_fcgi:error] [pid 3231960:tid 140412068882176] [client 88.129.111.122:54896] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/rmfpai/ [Fri Mar 07 10:31:29.422494 2025] [proxy_fcgi:error] [pid 3231960:tid 140412035311360] [client 88.129.111.122:44958] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/rmfpai/ [Fri Mar 07 10:31:32.951181 2025] [proxy_fcgi:error] [pid 3231960:tid 140412026918656] [client 88.129.111.122:25964] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/rmfpai/ [Fri Mar 07 10:31:35.372081 2025] [proxy_fcgi:error] [pid 3231960:tid 140412278699776] [client 88.129.111.122:26918] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/ [Fri Mar 07 10:31:36.375336 2025] [proxy_fcgi:error] [pid 3231960:tid 140412270307072] [client 88.129.111.122:26960] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/ [Fri Mar 07 10:31:36.875556 2025] [proxy_fcgi:error] [pid 3231960:tid 140412228343552] [client 88.129.111.122:26974] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/ [Fri Mar 07 10:31:46.535714 2025] [proxy_fcgi:error] [pid 3231960:tid 140412211558144] [client 88.129.111.122:47450] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 10:31:50.114874 2025] [proxy_fcgi:error] [pid 3231960:tid 140411984955136] [client 88.129.111.122:49500] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php'); PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT id,title FROM iarmfp18__xyz_ihs_short_code WHERE status=1 and insertionMethod=2 ORDER BY id DESC made by require('wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'), WP_Hook->do_action, WP_Hook->apply_filters, xyz_ihs_plugin_parse_request, require('/plugins/insert-html-snippet/editor_plugin.js.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:31:50.841805 2025] [proxy_fcgi:error] [pid 3231960:tid 140412194772736] [client 88.129.111.122:11084] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:31:51.018535 2025] [proxy_fcgi:error] [pid 3231960:tid 140412186380032] [client 88.129.111.122:11106] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:31:51.214011 2025] [proxy_fcgi:error] [pid 3231960:tid 140412144416512] [client 88.129.111.122:11142] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:31:51.224190 2025] [proxy_fcgi:error] [pid 3231960:tid 140412152809216] [client 88.129.111.122:11132] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:31:51.320161 2025] [proxy_fcgi:error] [pid 3231960:tid 140412337448704] [client 88.129.111.122:10954] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:31:51.566691 2025] [proxy_fcgi:error] [pid 3231960:tid 140412169594624] [client 88.129.111.122:11156] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:31:51.972370 2025] [proxy_fcgi:error] [pid 3231960:tid 140412127631104] [client 88.129.111.122:11158] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:31:52.117149 2025] [proxy_fcgi:error] [pid 3231960:tid 140412102452992] [client 88.129.111.122:11174] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:31:54.744876 2025] [proxy_fcgi:error] [pid 3231960:tid 140412303877888] [client 88.129.111.122:11566] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')', referer: https://www.fdb.ch/wp-admin/post.php?post=3410&action=edit [Fri Mar 07 10:32:00.087490 2025] [proxy_fcgi:error] [pid 3231960:tid 140412471731968] [client 88.129.111.122:27452] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require_once('wp-admin/admin.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')' [Fri Mar 07 10:32:01.173818 2025] [proxy_fcgi:error] [pid 3231960:tid 140412404590336] [client 88.129.111.122:27492] AH01071: Got error 'PHP message: WordPress database error Unknown column 'insertionMethod' in 'where clause' for query SELECT * FROM iarmfp18__xyz_ihs_short_code WHERE insertionMethod = 1 AND status = 1 made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/insert-html-snippet/insert-html-snippet.php'), require('/plugins/insert-html-snippet/shortcode-handler.php')'Since we don’t know how to locate the error logs on your FTP account, then you will need clarification from your hosting provider. Please reach out to them and ask where to find them, or why the server is responding with a 500 internal server error while editing the portfolio post that I linked to earlier.
Best regards,
RikardMarch 5, 2025 at 10:10 pm #1478700In reply to: Since update 7.0 SVG icons problem
Hey Olivier SIA09,
We would need a admin login to examine, but I believe that if you examine this new filter for v7.0 and adjust it should work
This filter changes the search icon:add_filter('avf_default_icons','avia_replace_standard_icon', 10, 1); function avia_replace_standard_icon($icons) { $icons['svg__search'] = array( 'font' =>'svg_entypo-fontello', 'icon' => 'leaf'); return $icons; }also note that the new built-in, svg icons are using “words” instead of the charter codes, if you hover over the icons in the icons element the title will show you the “words” if you have uploaded your own fontello icons use your charter codes
You can see the list here: /enfold/includes/config-enfold/init-base-data.php

these are the social icons:

Best regards,
MikeMarch 5, 2025 at 6:04 pm #1478690Hi,
When creating a product with the ALB and you want to show the thumbnails under the main image you will first need to ensure that you have Enfold Theme Options ▸ Shop Options ▸ Product gallery ▸ WooCommerce 3.0 product gallery enabled.

Then add this css to your child theme stylesheet or the theme option Quick CSS.single-product .flex-control-thumbs li { display: flex !important; float: left; }then add this code to the end of your child theme functions.php file in Appearance ▸ Editor:
add_shortcode( 'avs_product_gallery_hook', 'avs_product_gallery_hook_callback' ); function avs_product_gallery_hook_callback( $atts ) { ob_start(); woocommerce_show_product_images(); $content = ob_get_clean(); return $content; }Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
and add this shortcode to your page where you want the image to show in a code block:
[avs_product_gallery_hook]


the switch occurs on click and not hover, as per woocommerce.
This will only work on product pages and not shop or archive pages, perhaps there is a plugin that will do that but you will prob need to also use the default editor instead of the ALB.Best regards,
MikeMarch 5, 2025 at 5:48 pm #1478689In reply to: Enfold 7.0
<?php /*.. Plugin Name: Abstrakt Enfold Extensions Plugin URI: https://abstraktmg.com Description: Plugin for Abstrakt Marketing Group Designers Only Author: Nathaniel Riggins Author URI: https://abstraktmg.com Version: 2.0.5 License: Private */ if ( !defined('ABSPATH') ) { die('-1'); } if (!class_exists('AbstraktEnfoldExtensions')) { class AbstraktEnfoldExtensions { public string $plugin; private array $elements = array( 'accordion', 'aces', 'badges', 'billboard', 'bulletin', 'button', 'cards', 'carousel', 'crawl', 'cube', 'deck', 'fashion', 'glow', 'hero', 'marquee', 'material', 'panorama', 'paper', 'pricing', 'rotators', 'tabs', 'testimonials', 'triple', 'versa', 'wall', 'waves', ); private array $deletes = array( 'animate', 'blocks', 'intros', 'navi', 'neon', 'podcasts', 'posters', 'sticky', 'text', 'traveler', ); // Class construct function __construct() { $this->plugin = plugin_basename(__FILE__); add_action('wp_enqueue_scripts', array($this, 'load_scripts')); add_action('admin_enqueue_scripts', array($this, 'load_admin_scripts')); add_action('init', array($this, 'includeClasses')); add_action('avia_builder_mode', array($this, 'builder_set_debug')); add_action('admin_menu', array($this, 'amg_enfold_admin_menu')); add_action('admin_init', array($this, 'amg_enfold_admin_settings_init')); add_action('wp_footer', array($this, 'amg_enfold_popup')); add_action( 'init', array($this, 'add_all_image_sizes')); } function add_all_image_sizes() :void { ///// AUTO SIZES /// add_image_size( 'amg-auto-300', 300); add_image_size( 'amg-auto-500', 500); add_image_size( 'amg-auto-750', 750); add_image_size( 'amg-auto-1000', 1000); add_image_size( 'amg-auto-1250', 1250); add_image_size( 'amg-auto-1500', 1500); add_image_size( 'amg-auto-2000', 2000); add_image_size( 'amg-portrait-300', 300, 400, true ); add_image_size( 'amg-portrait-450', 450, 600, true ); add_image_size( 'amg-portrait-600', 600, 800, true ); add_image_size( 'amg-portrait-750', 750, 1000, true ); add_image_size( 'amg-landscape-320', 320, 180, true ); add_image_size( 'amg-landscape-480', 480, 270, true ); add_image_size( 'amg-landscape-720', 720, 405, true ); add_image_size( 'amg-landscape-960', 960, 540, true ); add_image_size( 'amg-landscape-1440', 1440, 810, true ); add_image_size( 'amg-landscape-1920', 1920, 1080, true ); } function builder_set_debug() { return "debug"; } public static function get_image_sizes() : array { return array( __( 'None', 'avia_framework' ) => '', __( 'Auto 300w', 'avia_framework' ) => 'amg-auto-300', __( 'Auto 500w', 'avia_framework' ) => 'amg-auto-500', __( 'Auto 750w', 'avia_framework' ) => 'amg-auto-750', __( 'Auto 1000w', 'avia_framework' ) => 'amg-auto-1000', __( 'Auto 1250w', 'avia_framework' ) => 'amg-auto-1250', __( 'Auto 1500w', 'avia_framework' ) => 'amg-auto-1500', __( 'Auto 2000w', 'avia_framework' ) => 'amg-auto-2000', __( 'Portrait 300w', 'avia_framework' ) => 'amg-portrait-300', __( 'Portrait 450w', 'avia_framework' ) => 'amg-portrait-450', __( 'Portrait 600w', 'avia_framework' ) => 'amg-portrait-600', __( 'Portrait 750w', 'avia_framework' ) => 'amg-portrait-750', __( 'Landscape 320w', 'avia_framework' ) => 'amg-landscape-320', __( 'Landscape 480w', 'avia_framework' ) => 'amg-landscape-480', __( 'Landscape 720w', 'avia_framework' ) => 'amg-landscape-720', __( 'Landscape 960w', 'avia_framework' ) => 'amg-landscape-960', __( 'Landscape 1440w', 'avia_framework' ) => 'amg-landscape-1440', __( 'Landscape 1920w', 'avia_framework' ) => 'amg-landscape-1920', ); } public static function get_plugin_version():string { $data = get_plugin_data(__FILE__); return $data['Version']; } public static function developMode():bool { return get_option('amg_enfold_developer_mode') == 'yes'; } public function includeClasses():void { $count = count($this->elements); for ($i = 0; $i < $count; $i++) { if (get_option("amg_enfold_extensions_{$this->elements[$i]}_active") == 'yes') { include plugin_dir_path( __FILE__ ) . "/enfold/{$this->elements[$i]}/{$this->elements[$i]}.php"; } } } public function load_admin_scripts():void { $ver = AbstraktEnfoldExtensions::get_plugin_version(); $developMode = AbstraktEnfoldExtensions::developMode(); $lastmodtime = $developMode ? rand(1, 999999999) : $ver; wp_enqueue_style('amg-admin-enfold', plugin_dir_url(__FILE__) . 'css/style.min.css', false, $lastmodtime); wp_enqueue_script('amg-admin-enfold-fontawesome', 'https://kit.fontawesome.com/ececabbde4.js', false, $lastmodtime); } public function load_scripts():void { $ver = AbstraktEnfoldExtensions::get_plugin_version(); $developMode = AbstraktEnfoldExtensions::developMode(); $lastmodtime = $developMode ? rand(1, 999999999) : $ver; wp_enqueue_style('amg-enfold-icons', plugin_dir_url(__FILE__) . 'css/uicons.min.css', array('avia-layout'), $lastmodtime); wp_enqueue_style( 'amg-css-animate', plugin_dir_url(__FILE__) . "css/animateCSS.min.css", array( 'avia-layout' ) ); wp_enqueue_style('amg-enfold', plugin_dir_url(__FILE__) . 'css/style.min.css', array('avia-layout'), $lastmodtime); wp_enqueue_style('amg-swiper', plugin_dir_url(__FILE__) . 'css/swiper.css', array('avia-layout'), $lastmodtime); wp_enqueue_script( 'amg-gsap', plugin_dir_url(__FILE__) . "js/gsap.min.js", array( 'amg-swiper' ), $lastmodtime, true ); wp_enqueue_script( 'amg-enfold', plugin_dir_url(__FILE__) . "js/script.min.js", array(), $lastmodtime ); wp_enqueue_script( 'amg-swiper', plugin_dir_url(__FILE__) . "js/swiper.js", array(), $lastmodtime ); } public static function get_duration_times():array { return array( __( 'None', 'avia_framework' ) => '', __( '0.1s', 'avia_framework' ) => 's100', __( '0.2s', 'avia_framework' ) => 's200', __( '0.3s', 'avia_framework' ) => 's300', __( '0.4s', 'avia_framework' ) => 's400', __( '0.5s', 'avia_framework' ) => 's500', __( '0.6s', 'avia_framework' ) => 's600', __( '0.7s', 'avia_framework' ) => 's700', __( '0.8s', 'avia_framework' ) => 's800', __( '0.9s', 'avia_framework' ) => 's900', __( '1s', 'avia_framework' ) => 's1000', __( '1.1s', 'avia_framework' ) => 's1100', __( '1.2s', 'avia_framework' ) => 's1200', __( '1.3s', 'avia_framework' ) => 's1300', __( '1.4s', 'avia_framework' ) => 's1400', __( '1.5s', 'avia_framework' ) => 's1500', __( '1.6s', 'avia_framework' ) => 's1600', __( '1.7s', 'avia_framework' ) => 's1700', __( '1.8s', 'avia_framework' ) => 's1800', __( '1.9s', 'avia_framework' ) => 's1900', __( '2s', 'avia_framework' ) => 's2000', __( '2.1s', 'avia_framework' ) => 's2100', __( '2.2s', 'avia_framework' ) => 's2200', __( '2.3s', 'avia_framework' ) => 's2300', __( '2.4s', 'avia_framework' ) => 's2400', __( '2.5s', 'avia_framework' ) => 's2500', __( '2.6s', 'avia_framework' ) => 's2600', __( '2.7s', 'avia_framework' ) => 's2700', __( '2.8s', 'avia_framework' ) => 's2800', __( '2.9s', 'avia_framework' ) => 's2900', __( '3s', 'avia_framework' ) => 's3000', ); } public static function get_delay_times():array { return array( __( 'None', 'avia_framework' ) => '', __( '0.1s', 'avia_framework' ) => 'd100', __( '0.2s', 'avia_framework' ) => 'd200', __( '0.3s', 'avia_framework' ) => 'd300', __( '0.4s', 'avia_framework' ) => 'd400', __( '0.5s', 'avia_framework' ) => 'd500', __( '0.6s', 'avia_framework' ) => 'd600', __( '0.7s', 'avia_framework' ) => 'd700', __( '0.8s', 'avia_framework' ) => 'd800', __( '0.9s', 'avia_framework' ) => 'd900', __( '1s', 'avia_framework' ) => 'd1000', __( '1.1s', 'avia_framework' ) => 'd1100', __( '1.2s', 'avia_framework' ) => 'd1200', __( '1.3s', 'avia_framework' ) => 'd1300', __( '1.4s', 'avia_framework' ) => 'd1400', __( '1.5s', 'avia_framework' ) => 'd1500', __( '1.6s', 'avia_framework' ) => 'd1600', __( '1.7s', 'avia_framework' ) => 'd1700', __( '1.8s', 'avia_framework' ) => 'd1800', __( '1.9s', 'avia_framework' ) => 'd1900', __( '2s', 'avia_framework' ) => 'd2000', __( '2.1s', 'avia_framework' ) => 'd2100', __( '2.2s', 'avia_framework' ) => 'd2200', __( '2.3s', 'avia_framework' ) => 'd2300', __( '2.4s', 'avia_framework' ) => 'd2400', __( '2.5s', 'avia_framework' ) => 'd2500', __( '2.6s', 'avia_framework' ) => 'd2600', __( '2.7s', 'avia_framework' ) => 'd2700', __( '2.8s', 'avia_framework' ) => 'd2800', __( '2.9s', 'avia_framework' ) => 'd2900', __( '3s', 'avia_framework' ) => 'd3000', ); } public static function get_slider_speeds():array { return array( __( '3s', 'avia_framework' ) => '3000', __( '4s', 'avia_framework' ) => '4000', __( '5s', 'avia_framework' ) => '5000', __( '6s', 'avia_framework' ) => '6000', __( '7s', 'avia_framework' ) => '7000', __( '8s', 'avia_framework' ) => '8000', __( '9s', 'avia_framework' ) => '9000', __( '10s', 'avia_framework' ) => '10000', __( '11s', 'avia_framework' ) => '11000', __( '12s', 'avia_framework' ) => '12000', __( '13s', 'avia_framework' ) => '13000', __( '14s', 'avia_framework' ) => '14000', __( '15s', 'avia_framework' ) => '15000', ); } public static function get_intro_animations():array { return array( array( __( 'None', 'avia_framework' ) => '', __( 'animate__bounce', 'avia_framework' ) => 'animate__animated animate__bounce', __( 'animate__flash', 'avia_framework' ) => 'animate__animated animate__flash', __( 'Back in down', 'avia_framework' ) => 'animate__animated animate__backInDown', __( 'Back in left', 'avia_framework' ) => 'animate__animated animate__backInLeft', __( 'Back in right', 'avia_framework' ) => 'animate__animated animate__backInRight', __( 'Back in up', 'avia_framework' ) => 'animate__animated animate__backInUp', __( 'Bounce in', 'avia_framework' ) => 'animate__animated animate__bounceIn', __( 'Bounce in down', 'avia_framework' ) => 'animate__animated animate__bounceInDown', __( 'Bounce in left', 'avia_framework' ) => 'animate__animated animate__bounceInLeft', __( 'Bounce in right', 'avia_framework' ) => 'animate__animated animate__bounceInRight', __( 'Bounce in up', 'avia_framework' ) => 'animate__animated animate__bounceInUp', __( 'Fade in', 'avia_framework' ) => 'animate__animated animate__fadeIn', __( 'Fade in bottom left', 'avia_framework' ) => 'animate__animated animate__fadeInBottomLeft', __( 'Fade in bottom right', 'avia_framework' ) => 'animate__animated animate__fadeInBottomRight', __( 'Fade in down', 'avia_framework' ) => 'animate__animated animate__fadeInDown', __( 'Fade down big', 'avia_framework' ) => 'animate__animated animate__fadeInDownBig', __( 'Fade in left', 'avia_framework' ) => 'animate__animated animate__fadeInLeft', __( 'Fade in left big', 'avia_framework' ) => 'animate__animated animate__fadeInLeftBig', __( 'Fade in right', 'avia_framework' ) => 'animate__animated animate__fadeInRight', __( 'Fade in right big', 'avia_framework' ) => 'animate__animated animate__fadeInRightBig', __( 'Fade in up', 'avia_framework' ) => 'animate__animated animate__fadeInUp', __( 'Fade in up big', 'avia_framework' ) => 'animate__animated animate__fadeInUpBig', __( 'Fade in top left', 'avia_framework' ) => 'animate__animated animate__fadeInTopLeft', __( 'Fade in top right', 'avia_framework' ) => 'animate__animated animate__fadeInTopRight', __( 'Flip', 'avia_framework' ) => 'animate__animated animate__flip', __( 'Flip X', 'avia_framework' ) => 'animate__animated animate__flipInX', __( 'Flip Y', 'avia_framework' ) => 'animate__animated animate__flipInY', __( 'Head Shake', 'avia_framework' ) => 'animate__animated animate__headShake', __( 'Heartbeat', 'avia_framework' ) => 'animate__animated animate__heartBeat', __( 'Hinge', 'avia_framework' ) => 'animate__animated animate__hinge', __( 'Jack In The Box', 'avia_framework' ) => 'animate__animated animate__jackInTheBox', __( 'Jello', 'avia_framework' ) => 'animate__animated animate__jello', __( 'Lightspeed in left', 'avia_framework' ) => 'animate__animated animate__lightSpeedInLeft', __( 'Lightspeed in right', 'avia_framework' ) => 'animate__animated animate__lightSpeedInRight', __( 'Mask', 'avia_framework' ) => 'animate__animated animate__pulse', __( 'Roll in', 'avia_framework' ) => 'animate__animated animate__rollIn', __( 'Rotate in', 'avia_framework' ) => 'animate__animated animate__rotateIn', __( 'Rotate down left', 'avia_framework' ) => 'animate__animated animate__rotateInDownLeft', __( 'Rotate in down right', 'avia_framework' ) => 'animate__animated animate__rotateInDownRight', __( 'Rotate in up left', 'avia_framework' ) => 'animate__animated animate__rotateInUpLeft', __( 'Rotate in up right', 'avia_framework' ) => 'animate__animated animate__rotateInUpRight', __( 'Rubber Band', 'avia_framework' ) => 'animate__animated animate__rubberBand', __( 'Shake X', 'avia_framework' ) => 'animate__animated animate__shakeX', __( 'Shake Y', 'avia_framework' ) => 'animate__animated animate__shakeY', __( 'Slide in', 'avia_framework' ) => 'animate__animated animate__slideInDown', __( 'Slide in left', 'avia_framework' ) => 'animate__animated animate__slideInLeft', __( 'Slide in right', 'avia_framework' ) => 'animate__animated animate__slideInRight', __( 'Slide in up', 'avia_framework' ) => 'animate__animated animate__slideInUp', __( 'Swing', 'avia_framework' ) => 'animate__animated animate__swing', __( 'Tada', 'avia_framework' ) => 'animate__animated animate__tada', __( 'Wobble', 'avia_framework' ) => 'animate__animated animate__wobble', __( 'Zoom in', 'avia_framework' ) => 'animate__animated animate__zoomIn', __( 'Zoom in down', 'avia_framework' ) => 'animate__animated animate__zoomInDown', __( 'Zoom in left', 'avia_framework' ) => 'animate__animated animate__zoomInLeft', __( 'Zoom in right', 'avia_framework' ) => 'animate__animated animate__zoomInRight', __( 'Zoom in up', 'avia_framework' ) => 'animate__animated animate__zoomInUp', ) ); } public static function get_button_links($type):array { $data = match ($type) { 'page' => get_pages(), default => get_posts(), }; $links = array(); foreach ($data as $link) { $links[__( $link->post_title, 'avia_framework' )] = $link->post_name; } return $links; } public static function get_full_percentage():array { $i = 1; $nums = array(); while ($i < 101) { $k = $i . '%'; $nums[$k] = $i . '%'; $i++; } return $nums; } public static function get_full_360():array { $i = 1; $nums = array(); while ($i < 361) { $k = $i; $nums[$k] = $i; $i++; } return $nums; } public static function create_button_link($atts, $b = 'button'):string { $link = ''; if (isset($atts[$b]) && $atts[$b] == 'yes') { switch ($atts[$b . '_link_type']) { case 'page': $link = home_url() . '/' . $atts[$b . '_page_link']; break; case 'post': $link .= home_url() . '/' . $atts[$b . '_post_link']; break; case 'custom': $link .= $atts[$b . '_custom_link']; break; default: } } return $link; } public static function get_seconds():array { return array( '1s' => '1s', '2s' => '2s', '3s' => '3s', '4s' => '4s', '5s' => '5s', '6s' => '6s', '7s' => '7s', '8s' => '8s', '9s' => '9s', '10s' => '10s', '11s' => '11s', '12s' => '12s', '13s' => '13s', '14s' => '14s', '15s' => '15s', '16s' => '16s', '17s' => '17s', '18s' => '18s', '19s' => '19s', '20s' => '20s', ); } public static function select_button_style():array { $arr = array ( __( 'Animated Gradient', 'avia_framework' ) => 'amg_1', __( 'Candied Colored 1', 'avia_framework' ) => 'amg_2', __( 'Candied Colored 2', 'avia_framework' ) => 'amg_3', __( 'Candied Colored 3', 'avia_framework' ) => 'amg_4', __( 'Candied Colored 4', 'avia_framework' ) => 'amg_5', __( 'Candied Colored 5', 'avia_framework' ) => 'amg_6', __( 'Candied Colored 6', 'avia_framework' ) => 'amg_7', __( 'Candied Colored 7', 'avia_framework' ) => 'amg_8', __( 'Candied Colored 8', 'avia_framework' ) => 'amg_9', __( 'Candied Colored 9', 'avia_framework' ) => 'amg_10', __( 'Candied Colored 10', 'avia_framework' ) => 'amg_11', __( 'Candied Colored 11', 'avia_framework' ) => 'amg_12', __( 'Candied Colored 12', 'avia_framework' ) => 'amg_13', __( 'Candied Colored 13', 'avia_framework' ) => 'amg_14', __( 'Candied Colored 14', 'avia_framework' ) => 'amg_15', __( 'Candied Colored 15', 'avia_framework' ) => 'amg_16', __( 'Candied Colored 16', 'avia_framework' ) => 'amg_17', __( 'Coin', 'avia_framework' ) => 'amg_18', __( 'Cold Light', 'avia_framework' ) => 'amg_19', __( 'Flip Box', 'avia_framework' ) => 'amg_20', __( 'Gradient', 'avia_framework' ) => 'amg_21', __( 'Gradient Glow', 'avia_framework' ) => 'amg_22', __( 'Gradient Hole', 'avia_framework' ) => 'amg_61', __( 'Hover 1', 'avia_framework' ) => 'amg_23', __( 'Hover 2', 'avia_framework' ) => 'amg_24', __( 'Hover 3', 'avia_framework' ) => 'amg_25', __( 'Hover 4', 'avia_framework' ) => 'amg_26', __( 'Label Slice', 'avia_framework' ) => 'amg_27', __( 'Liquid', 'avia_framework' ) => 'amg_28', __( 'Menu', 'avia_framework' ) => 'amg_29', __( 'Modern 1', 'avia_framework' ) => 'amg_30', __( 'Modern 2', 'avia_framework' ) => 'amg_31', __( 'Modern 3', 'avia_framework' ) => 'amg_32', __( 'Modern 4', 'avia_framework' ) => 'amg_33', __( 'Modern 5', 'avia_framework' ) => 'amg_34', __( 'Modern 6', 'avia_framework' ) => 'amg_35', __( 'Modern 7', 'avia_framework' ) => 'amg_36', __( 'Modern 8', 'avia_framework' ) => 'amg_37', __( 'Modern 9', 'avia_framework' ) => 'amg_38', __( 'Modern 10', 'avia_framework' ) => 'amg_39', __( 'Modern 11', 'avia_framework' ) => 'amg_40', __( 'Modern 12', 'avia_framework' ) => 'amg_41', __( 'Modern 13', 'avia_framework' ) => 'amg_42', __( 'Modern 14', 'avia_framework' ) => 'amg_43', __( 'Modern 15', 'avia_framework' ) => 'amg_44', __( 'Modern 16', 'avia_framework' ) => 'amg_45', __( 'Modern 17', 'avia_framework' ) => 'amg_46', __( 'Modern 18', 'avia_framework' ) => 'amg_47', __( 'Modern 19', 'avia_framework' ) => 'amg_48', __( 'Modern 20', 'avia_framework' ) => 'amg_49', __( 'Modern 21', 'avia_framework' ) => 'amg_50', __( 'Modern 22', 'avia_framework' ) => 'amg_51', __( 'Modern 23', 'avia_framework' ) => 'amg_52', __( 'Modern 24', 'avia_framework' ) => 'amg_53', __( 'Modern 25', 'avia_framework' ) => 'amg_54', __( 'Modern 26', 'avia_framework' ) => 'amg_55', __( 'Modern 27', 'avia_framework' ) => 'amg_56', __( 'Modern 28', 'avia_framework' ) => 'amg_57', __( 'Plastic', 'avia_framework' ) => 'amg_58', __( 'Neon Lines', 'avia_framework' ) => 'amg_59', __( 'Pulsating', 'avia_framework' ) => 'amg_60', __( 'Hover 4', 'avia_framework' ) => 'amg_62', __( 'Snake Border 2', 'avia_framework' ) => 'amg_63', __( 'Hover 5', 'avia_framework' ) => 'amg_64', __( 'Hover 6', 'avia_framework' ) => 'amg_65', __( 'Ripple', 'avia_framework' ) => 'amg_66', __( 'Snake Border 1', 'avia_framework' ) => 'amg_67', __( 'Gradient Hover Border', 'avia_framework' ) => 'amg_68', __( 'Pulsar', 'avia_framework' ) => 'amg_69', __( 'Neon Lights', 'avia_framework' ) => 'amg_70', __( 'Blend Mode', 'avia_framework' ) => 'amg_71', __( 'Bubble Bursts', 'avia_framework' ) => 'amg_72', ); ksort($arr, SORT_NATURAL); return $arr; } function amg_enfold_admin_menu() : void { add_options_page( 'AMG Enfold Extensions', 'AMG Enfold', 'manage_options', 'amg-enfold-options', array( $this, 'amg_enfold_admin_settings' ), '1' ); } function amg_enfold_admin_settings_init() : void { /// sticky banner text add_settings_section ( 'enfold_extensions_developer_section' , 'Developer' , '', 'amg-enfold-options' ); add_settings_section ( 'enfold_extensions_elements_section' , 'Active Elements' , '', 'amg-enfold-options' ); register_setting( 'amg-enfold-options', 'amg_enfold_developer_mode', array( 'type' => 'string', 'sanitize_callback' => 'sanitize_text_field', 'default' => 'no' ) ); add_settings_field( 'amg_enfold_developer_mode', 'Developer Mode On', array($this, 'amg_enfold_developer_mode_callback'), 'amg-enfold-options', 'enfold_extensions_developer_section' ); $count = count($this->elements); for ($i = 0; $i < $count; $i++) { register_setting( 'amg-enfold-options', "amg_enfold_extensions_{$this->elements[$i]}_active", array( 'type' => 'string', 'default' => '' ) ); add_settings_field( "amg_enfold_extensions_{$this->elements[$i]}_active", ucfirst($this->elements[$i]), array($this, 'amg_enfold_modules_callback'), 'amg-enfold-options', 'enfold_extensions_elements_section', $this->elements[$i] ); } $count = count($this->deletes); for ($k = 0; $i < $count; $k++) { $option = get_option("amg_enfold_extensions_{$this->deletes[$k]}_active"); if (!empty($option)) { delete_option("amg_enfold_extensions_{$this->deletes[$k]}_active"); } } } function amg_enfold_admin_settings(): void { require_once plugin_dir_path(__FILE__) . 'templates/admin_settings.php'; } public function amg_enfold_developer_mode_callback(): void { $checked = checked( 'yes', get_option( 'amg_enfold_developer_mode' ), false ); ?> <input type="checkbox" name="amg_enfold_developer_mode" value="yes" <?php echo $checked ?>/> <?php } public function amg_enfold_modules_callback($name): void { $field = "amg_enfold_extensions_{$name}_active"; $checked = checked( 'yes', get_option( $field ), false ); ?> <input type="checkbox" name="<?php echo $field ?>" value="yes" <?php echo $checked ?>/> <a title="view demo" href="<?php echo 'https://natesstg.wpenginepowered.com/' . $name . '/' ?>" target="_blank"><i class="fa-solid fa-arrow-up-right-from-square"></i></a> <?php } public static function amg_enfold_popup() : void { $html = "<div id='amg-enfold-popup' class=''>"; $html .= "<div id='amg-enfold-popup-bg'></div>"; $html .= "<div id='amg-enfold-popup-box'>"; $html .= "<div id='amg-enfold-popup-close'><i class='fi fi-br-circle-xmark'></i></div>"; $html .= "<div id='content'></div>"; $html .= "</div></div>"; echo $html; } public static function prepare_navigation(array $atts): array { $prev_button = ''; $next_button = ''; if (isset($atts['navigation']) && $atts['navigation'] == 'yes') { $prev_button = "<div class='swiper-button-prev'></div>"; $next_button = '<div class="swiper-button-next"></div>'; } if (isset($atts['pagination']) && $atts['pagination'] == 'yes') { $pagination = "<div class='swiper-pagination'></div>"; } $above = ''; $below = ''; $side = ''; if (isset($atts['navigation_position']) && $atts['navigation_position'] == 'above' && $atts['nav_layout'] == 'custom') { $above = "<div class='swiper-nav-wrapper above'>"; $above .= $prev_button; $above .= $pagination; $above .= $next_button; $above .= '</div>'; } else if (isset($atts['navigation_position']) && $atts['navigation_position'] == 'below' && $atts['nav_layout'] == 'custom') { $below = "<div class='swiper-nav-wrapper below'>"; $below .= $prev_button; $below .= $pagination; $below .= $next_button; $below .= '</div>'; } else { $below = $pagination; $side = $prev_button; $side .= $next_button; } return array($atts, $above, $below, $side); } public static function amg_enfold_section($title) : array { $c = null; $template = null; switch ($title) { case 'Button': $c = array( array( 'name' => __( 'Enable?', 'avia_framework' ), 'desc' => __( 'Choosing yes enables the button for this single element.', 'avia_framework' ), 'id' => 'button', 'type' => 'select', 'std' => 'no', 'lockable' => true, 'subtype' => array( __( 'No', 'avia_framework' ) => 'no', __( 'Yes', 'avia_framework' ) => 'yes' , ) ), array( 'name' => __( 'Button Label', 'avia_framework' ), 'desc' => __( 'This is the text that appears on your button.', 'avia_framework' ), 'id' => 'label', 'type' => 'input', 'std' => __( 'Contact Us', 'avia_framework' ), 'required' => array( 'button', 'equals', 'yes' ), 'lockable' => true ), /* array( 'name' => __( 'Show Button Icon', 'avia_framework' ), 'desc' => __( 'Should an icon be displayed at the left or right side of the button', 'avia_framework' ), 'id' => 'button_icon_select', 'type' => 'select', 'std' => 'yes', 'lockable' => true, 'required' => array( 'button', 'equals', 'yes' ), 'subtype' => array( __( 'No Icon', 'avia_framework' ) => 'no', __( 'Display icon to the left', 'avia_framework' ) => 'yes' , __( 'Display icon to the right', 'avia_framework' ) => 'yes-right-icon', ) ), array( 'name' => __( 'Button Icon', 'avia_framework' ), 'desc' => __( 'Select an icon for your Button below', 'avia_framework' ), 'id' => 'button_icon', 'type' => 'iconfont', 'std' => '', 'lockable' => true, 'locked' => array( 'button_icon', 'font' ), 'required' => array( 'button_icon_select', 'not_empty_and', 'no' ) ), array( 'name' => __( 'Icon Visibility', 'avia_framework' ), 'desc' => __( 'Check to only display icon on hover', 'avia_framework' ), 'id' => 'button_icon_hover', 'type' => 'checkbox', 'std' => '', 'lockable' => true, 'required' => array( 'button_icon_select', 'not_empty_and', 'no' ) )*/ ); break; case 'Link Settings': $template = array( array( 'type' => 'template', 'template_id' => 'linkpicker_toggle', 'name' => __( 'Button Link', 'avia_framework' ), 'desc' => __( 'Where should your button link to?', 'avia_framework' ), 'subtypes' => array( 'manually', 'single', 'taxonomy' ), 'target_id' => 'link_target', 'lockable' => true ), ); break; case 'Appearance': $c = array( array( 'name' => __( 'Button Size', 'avia_framework' ), 'desc' => __( 'Choose the size of your button here.', 'avia_framework' ), 'id' => 'size', 'type' => 'select', 'std' => 'small', 'lockable' => true, 'subtype' => array( __( 'Small', 'avia_framework' ) => 'small', __( 'Medium', 'avia_framework' ) => 'medium', __( 'Large', 'avia_framework' ) => 'large', __( 'X Large', 'avia_framework' ) => 'x-large' ) ), array( 'name' => __( 'Button Position', 'avia_framework' ), 'desc' => __( 'Choose the alignment of your button here', 'avia_framework' ), 'id' => 'position', 'type' => 'select', 'std' => 'center', 'lockable' => true, 'subtype' => array( __( 'Align Left', 'avia_framework' ) => 'left', __( 'Align Center', 'avia_framework' ) => 'center', __( 'Align Right', 'avia_framework' ) => 'right', ), 'required' => array( 'size', 'not', 'fullwidth' ) ), array( 'name' => __( 'Button Label Display', 'avia_framework' ), 'desc' => __( 'Select how to display the label', 'avia_framework' ), 'id' => 'label_display', 'type' => 'select', 'std' => '', 'lockable' => true, 'subtype' => array( __( 'Always display', 'avia_framework' ) => '', __( 'Display on hover', 'avia_framework' ) => 'av-button-label-on-hover', ) ), array( 'name' => __( 'Button Title Attribute', 'avia_framework' ), 'desc' => __( 'Add a title attribute for this button.', 'avia_framework' ), 'id' => 'title_attr', 'type' => 'input', 'std' => '', 'required' => array( 'label_display', 'equals', '' ) ), ); break; case 'Font Sizes': $c = array( array( 'name' => __( 'Button Text Font Sizes', 'avia_framework' ), 'desc' => __( 'Select a custom font size for the button text.', 'avia_framework' ), 'type' => 'template', 'template_id' => 'font_sizes_icon_switcher', 'textfield' => true, 'lockable' => true, 'subtype' => array( 'default' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '' ), 'px' ), 'desktop' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '' ), 'px' ), 'medium' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '', __( 'Hidden', 'avia_framework' ) => 'hidden' ), 'px' ), 'small' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '', __( 'Hidden', 'avia_framework' ) => 'hidden' ), 'px' ), 'mini' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '', __( 'Hidden', 'avia_framework' ) => 'hidden' ), 'px' ) ), 'id_sizes' => array( 'default' => 'size-text', 'desktop' => 'av-desktop-font-size-text', 'medium' => 'av-medium-font-size-text', 'small' => 'av-small-font-size-text', 'mini' => 'av-mini-font-size-text' ) ), array( 'name' => __( 'Button Icon Font Sizes', 'avia_framework' ), 'desc' => __( 'Select a custom font size for the button text.', 'avia_framework' ), 'type' => 'template', 'template_id' => 'font_sizes_icon_switcher', 'textfield' => true, 'lockable' => true, 'subtype' => array( 'default' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '' ), 'px' ), 'desktop' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '' ), 'px' ), 'medium' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '', __( 'Hidden', 'avia_framework' ) => 'hidden' ), 'px' ), 'small' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '', __( 'Hidden', 'avia_framework' ) => 'hidden' ), 'px' ), 'mini' => AviaHtmlHelper::number_array( 10, 90, 1, array( __( 'Use Default', 'avia_framework' ) => '', __( 'Hidden', 'avia_framework' ) => 'hidden' ), 'px' ) ), 'id_sizes' => array( 'default' => 'size-button-icon', 'desktop' => 'av-desktop-font-size-button-icon', 'medium' => 'av-medium-font-size-button-icon', 'small' => 'av-small-font-size-button-icon', 'mini' => 'av-mini-font-size-button-icon' ) ) ); break; case 'Button Margin And Padding': $template = array( array( 'type' => 'template', 'template_id' => 'margin_padding', 'toggle' => true, 'name' => __( 'Margin And Padding', 'avia_framework' ), 'desc' => __( 'Set a responsive margin and a padding to text for the button.', 'avia_framework' ), 'lockable' => true, ) ); break; case 'Colors': $c = array( array( 'name' => __( 'Button Colors Selection', 'avia_framework' ), 'desc' => __( "Choose the available options for button colors. Switching to advanced options for already existing buttons you need to set all options (color settings from basic options are ignored)", 'avia_framework' ), 'id' => 'color_options', 'type' => 'select', 'std' => '', 'lockable' => true, 'subtype' => array( __( 'Basic options only', 'avia_framework' ) => '', __( 'Advanced options', 'avia_framework' ) => 'color_options_advanced', ) ), array( 'type' => 'template', 'template_id' => 'named_colors', 'custom' => true, 'lockable' => true, 'required' => array( 'color_options', 'equals', '' ) ), array( 'name' => __( 'Custom Background Color', 'avia_framework' ), 'desc' => __( 'Select a custom background color for your button here', 'avia_framework' ), 'id' => 'custom_bg', 'type' => 'colorpicker', 'std' => '#444444', 'lockable' => true, 'required' => array( 'color', 'equals', 'custom' ) ), array( 'name' => __( 'Custom Font Color', 'avia_framework' ), 'desc' => __( 'Select a custom font color for your button here', 'avia_framework' ), 'id' => 'custom_font', 'type' => 'colorpicker', 'std' => '#ffffff', 'lockable' => true, 'required' => array( 'color', 'equals', 'custom') ), array( 'type' => 'template', 'template_id' => 'button_colors', 'color_id' => 'btn_color', 'custom_id' => 'btn_custom', 'lockable' => true, 'required' => array( 'color_options', 'not', '' ) ) ); break; case 'Animation': $c = array( array( 'type' => 'template', 'template_id' => 'animation', 'lockable' => true, 'std_none' => '', 'name' => __( 'Button Animation', 'avia_framework' ), 'desc' => __( 'Add a small animation to the button when the user first scrolls to the button position. This is only to add some "spice" to the site and only works in modern browsers and only on desktop computers to keep page rendering as fast as possible.', 'avia_framework' ), 'groups' => array( 'fade', 'slide', 'rotate', 'fade-adv', 'special' ) ) ); break; case 'Content': $c = array( array( 'name' => __( 'Content Display', 'avia_framework' ), 'desc' => __( 'Choose to display the content in a popup or below the slides.', 'avia_framework' ), 'id' => 'content_layout', 'type' => 'select', 'std' => '', 'lockable' => true, 'subtype' => array( __( 'No Display', 'avia_framework' ) => '', __( 'Display content in popup', 'avia_framework' ) => 'popup', __( 'Display content below slides', 'avia_framework' ) => 'inline' ), ), array( 'name' => __( 'Max Width', 'avia_framework' ), 'desc' => __( 'This is the width of your content box.', 'avia_framework' ), 'id' => 'popup_max_width', 'type' => 'input', 'std' => '750px', 'lockable' => true, 'required' => array( 'content_layout', 'not', '' ), 'container_class' => 'av_third av_third_first' ), array( 'name' => __( 'Min Height', 'avia_framework' ), 'desc' => __( 'This is the min-height of your content box.', 'avia_framework' ), 'id' => 'popup_min_height', 'type' => 'input', 'std' => '320px', 'lockable' => true, 'required' => array( 'content_layout', 'not', '' ), 'container_class' => 'av_third' ), array( 'name' => __( 'Text Align', 'avia_framework' ), 'desc' => __( 'Figure it out.', 'avia_framework' ), 'id' => 'popup_text_align', 'type' => 'select', 'std' => 'center', 'lockable' => true, 'required' => array( 'content_layout', 'not', '' ), 'container_class' => 'av_third', 'subtype' => array( __( 'Left', 'avia_framework' ) => 'left', __( 'Center', 'avia_framework' ) => 'center', __( 'Right', 'avia_framework' ) => 'right' ), ), array( 'name' => __( 'Container BG Color', 'avia_framework' ), 'desc' => __( 'This is the background of the content box', 'avia_framework' ), 'id' => 'popup_background_color', 'type' => 'colorpicker', 'std' => '', 'rgba' => true, 'lockable' => true, 'required' => array( 'content_layout', 'equals', 'popup' ), 'container_class' => 'av_half av_half_first' ), array( 'name' => __( 'Background BG Color', 'avia_framework' ), 'desc' => __( 'This is the full page background when the popup is visible.', 'avia_framework' ), 'id' => 'popup_bg_color', 'type' => 'colorpicker', 'std' => '', 'rgba' => true, 'lockable' => true, 'required' => array( 'content_layout', 'equals', 'popup' ), 'container_class' => 'av_half' ), array( 'name' => __( 'Border Radius', 'avia_framework' ), 'desc' => __( 'Set the border radius of the content box.', 'avia_framework' ), 'id' => 'popup_border_radius', 'type' => 'multi_input', 'sync' => true, 'std' => '24px', 'lockable' => true, 'required' => array( 'content_layout', 'not', '' ), 'multi' => array( 'top' => __( 'Top-Left-Radius', 'avia_framework' ), 'right' => __( 'Top-Right-Radius', 'avia_framework' ), 'bottom' => __( 'Bottom-Right-Radius', 'avia_framework' ), 'left' => __( 'Bottom-Left-Radius', 'avia_framework' ) ), ), array( 'type' => 'template', 'template_id' => 'box_shadow', 'id' => 'popup_box_shadow', 'names' => array( __( 'Box Shadow', 'avia_framework' ), __( 'Box Shadow Styling ', 'avia_framework' ), __( 'Box Shadow Color', 'avia_framework' ) ), 'default_check' => true, 'lockable' => true, 'required' => array( 'content_layout', 'not', '' ) ) ); break; case 'Navigation': $c = array( array( 'name' => __( 'Navigation Layout', 'avia_framework' ), 'desc' => __( 'Either use the widget default colors or apply some custom ones', 'avia_framework' ), 'id' => 'nav_layout', 'type' => 'select', 'std' => '', 'lockable' => true, 'subtype' => array( __( 'Default', 'avia_framework' ) => '', __( 'Define Custom layout', 'avia_framework' ) => 'custom' ), ), array( 'name' => __( 'Vertical Position', 'avia_framework' ), 'desc' => __( 'Define the vertical position of the navigation controls', 'avia_framework' ), 'id' => 'navigation_position', 'type' => 'select', 'std' => '', 'lockable' => true, 'required' => array( 'nav_layout', 'equals', 'custom' ), 'subtype' => array( __( 'Default', 'avia_framework' ) => '', __( 'Above', 'avia_framework' ) => 'above', __( 'Below', 'avia_framework' ) => 'below', ) ), array( 'name' => __( 'Controls Max Width', 'avia_framework' ), 'desc' => __( 'Enter the max width of the navigation controls', 'avia_framework' ), 'id' => 'nav_max_width', 'type' => 'input', 'std' => '100%', 'lockable' => true, 'required' => array( 'navigation_position', 'not', ''), ), array( 'name' => __( 'Horizontal Alignment', 'avia_framework' ), 'desc' => __( 'This only works if navigation controls are not 100% max width', 'avia_framework' ), 'id' => 'navigation_alignment', 'type' => 'select', 'std' => 'center', 'lockable' => true, 'required' => array( 'navigation_position', 'not', ''), 'subtype' => array( __( 'Left', 'avia_framework' ) => 'left', __( 'Center', 'avia_framework' ) => 'center', __( 'Right', 'avia_framework' ) => 'right', ) ), array( 'name' => __( 'Horizontal Offset', 'avia_framework' ), 'desc' => __( 'Enter a CSS value (50px) to push the controls towards center', 'avia_framework' ), 'id' => 'nav_offset', 'type' => 'input', 'std' => '0', 'lockable' => true, 'required' => array( 'navigation_alignment', 'not', 'center'), ), array( 'name' => __( 'Button Width', 'avia_framework' ), 'desc' => __( 'Button width in a CSS value', 'avia_framework' ), 'id' => 'nav_width', 'type' => 'input', 'std' => '50px', 'lockable' => true, 'required' => array( 'nav_layout', 'equals', 'custom' ), 'container_class' => 'av_half av_half_first' ), array( 'name' => __( 'Button Height', 'avia_framework' ), 'desc' => __( 'Button height in a CSS value', 'avia_framework' ), 'id' => 'nav_height', 'type' => 'input', 'std' => '50px', 'lockable' => true, 'required' => array( 'nav_layout', 'equals', 'custom' ), 'container_class' => 'av_half' ), array( 'name' => __( 'Button Border Radius', 'avia_framework' ), 'desc' => __( 'Set the border radius of the button', 'avia_framework' ), 'id' => 'nav_radius', 'type' => 'multi_input', 'sync' => true, 'std' => '50%', 'lockable' => true, 'required' => array( 'nav_layout', 'equals', 'custom' ), 'multi' => array( 'top' => __( 'Top-Left-Radius', 'avia_framework' ), 'right' => __( 'Top-Right-Radius', 'avia_framework' ), 'bottom' => __( 'Bottom-Right-Radius', 'avia_framework' ), 'left' => __( 'Bottom-Left-Radius', 'avia_framework' ) ), ), ); break; case 'Image': $c = array( array( 'name' => __( 'Image Size and Orientation', 'avia_framework' ), 'desc' => __( 'Either use the widget default colors or apply some custom ones', 'avia_framework' ), 'id' => 'orientation_and_size', 'type' => 'select', 'std' => '', 'lockable' => true, 'subtype' => AbstraktEnfoldExtensions::get_image_sizes(), ), array( 'name' => __( 'Image Aspect Ratio', 'avia_framework' ), 'desc' => __( 'Enter the CSS value as a fraction, ie 16/9', 'avia_framework' ), 'id' => 'aspect_ratio', 'type' => 'input', 'std' => '', 'lockable' => true, 'required' => array( 'orientation_and_size', 'not', '' ), 'container_class' => 'av_third av_third_first' ), array( 'name' => __( 'Image Object Fit', 'avia_framework' ), 'desc' => __( 'Select one of the CSS values or choose none.', 'avia_framework' ), 'id' => 'object_fit', 'type' => 'select', 'std' => 'cover', 'lockable' => true, 'required' => array( 'orientation_and_size', 'not', '' ), 'container_class' => 'av_third', 'subtype' => array( __( 'None', 'avia_framework' ) => 'none', __( 'Fill', 'avia_framework' ) => 'fill', __( 'Contain', 'avia_framework' ) => 'contain', __( 'Cover', 'avia_framework' ) => 'cover', __( 'Scale Down', 'avia_framework' ) => 'scale-down' ), ), array( 'name' => __( 'Image Object Position', 'avia_framework' ), 'desc' => __( 'Enter a css value ie 50% 50% or left top', 'avia_framework' ), 'id' => 'object_position', 'type' => 'input', 'std' => 'center center', 'lockable' => true, 'required' => array( 'orientation_and_size', 'not', '' ), 'container_class' => 'av_third', ), ); break; case 'Container': $c = array( array( 'name' => __( 'Slides Layout', 'avia_framework' ), 'desc' => __( 'Either use the widget default colors or apply some custom ones', 'avia_framework' ), 'id' => 'slides_layout', 'type' => 'select', 'std' => '', 'lockable' => true, 'subtype' => array( __( 'Default', 'avia_framework' ) => '', __( 'Define Custom layout', 'avia_framework' ) => 'custom' ), ), array( 'name' => __( 'Badge Max Width', 'avia_framework' ), 'desc' => __( 'Enter the badges title here (Better keep it short)', 'avia_framework' ), 'id' => 'max_width', 'type' => 'input', 'std' => '250px', 'lockable' => true, 'required' => array( 'slides_layout', 'equals', 'custom' ), 'container_class' => 'av_half av_half_first' ), array( 'name' => __( 'Badge Min Height', 'avia_framework' ), 'desc' => __( 'Enter the badges title here (Better keep it short)', 'avia_framework' ), 'id' => 'min_height', 'type' => 'input', 'std' => '400px', 'lockable' => true, 'required' => array( 'slides_layout', 'equals', 'custom' ), 'container_class' => 'av_half' ), array( 'name' => __( 'Badge Border Radius', 'avia_framework' ), 'desc' => __( 'Set the border radius of the column', 'avia_framework' ), 'id' => 'border_radius', 'type' => 'multi_input', 'sync' => true, 'std' => '', 'lockable' => true, 'required' => array( 'slides_layout', 'equals', 'custom' ), 'multi' => array( 'top' => __( 'Top-Left-Radius', 'avia_framework' ), 'right' => __( 'Top-Right-Radius', 'avia_framework' ), 'bottom' => __( 'Bottom-Right-Radius', 'avia_framework' ), 'left' => __( 'Bottom-Left-Radius', 'avia_framework' ) ), ), ); break; } if (!is_array($template)) { $template = array( array( 'type' => 'template', 'template_id' => 'toggle', 'title' => __( $title, 'avia_framework' ), 'content' => $c ), ); } return $template; } public static function amg_enfold_inline($atts) : string { $output = ''; if ($atts['content_layout'] == 'inline') { $output .= "<div id='amg-enfold-inline'>"; $output .= "<div id='amg-enfold-inline-box'>"; $output .= "<div id='content'></div>"; $output .= "</div>"; $output .= "</div>"; } return $output; } public static function amg_button_append_selectors($selectors, $element_id) : array { $selectors['wrap'] = "#top #wrap_all .accordionContainer.{$element_id} .c-accordion .c-accordion__item .avia-button-wrap.button-wrap"; $selectors['wrap-animation'] = "#top #wrap_all .accordionContainer.{$element_id} .c-accordion .c-accordion__item .avia_transform .avia-button-wrap.button-wrap"; $selectors['button_container'] = "#top #wrap_all .accordionContainer.{$element_id} .c-accordion .c-accordion__item .avia-button"; $selectors['container-hover'] = "#top #wrap_all .accordionContainer.{$element_id} .c-accordion .c-accordion__item .avia-button:hover"; $selectors['container-hover-overlay'] = "#top #wrap_all .accordionContainer.{$element_id} .c-accordion .c-accordion__item .avia-button:hover .avia_button_background"; $selectors['container-after'] = "#top #wrap_all .accordionContainer.{$element_id} .c-accordion .c-accordion__item .avia-button.avia-sonar-shadow:after"; $selectors['container-after-hover'] = "#top #wrap_all .accordionContainer.{$element_id} .c-accordion .c-accordion__item .avia-button.avia-sonar-shadow:hover:after"; $selectors['curtain'] = "#top #wrap_all .accordionContainer.{$element_id} .c-accordion .c-accordion__item .avia-button-wrap.button-wrap .avia-curtain-reveal-overlay"; $selectors['button_icon'] = "#top #wrap_all .accordionContainer.{$element_id} .c-accordion .c-accordion__item .amg-button-wrap .amg-tab-icon"; return $selectors; } public static function amg_create_button(array $atts, array $meta, $container_class, $style_tag, $wrap_class, $background_hover ):string { $data = ''; /* if( $atts['button_icon_select'] == 'yes' ) { $atts['button_icon_select'] = 'yes-left-icon'; } $fonts = explode(',', $atts['font']); $font = $fonts[1] ?? $fonts[0]; $display_char = av_icon( $atts['button_icon'], $font );*/ if( ! empty( $atts['label_display'] ) && $atts['label_display'] == 'av-button-label-on-hover' ) { $data .= 'data-avia-tooltip="' . htmlspecialchars( $atts['label'] ) . '"'; $atts['label'] = ''; } $blank = AviaHelper::get_link_target( $atts['link_target'] ); $link = AviaHelper::get_url( $atts['link'] ); $link = ( ( $link == 'http://' ) || ( $link == 'manually' ) ) ? '' : $link; $title_attr = ! empty( $atts['title_attr'] ) && empty( $atts['label_display'] ) ? 'title="' . esc_attr( $atts['title_attr'] ) . '"' : ''; $content_html = ''; /*if( 'yes-left-icon' == $atts['button_icon_select'] ) { $content_html .= "<span class='avia_button_icon avia_button_icon_left'></span>"; }*/ $content_html .= "<span class='avia_iconbox_title' >{$atts['label']}</span>"; /*if( 'yes-right-icon' == $atts['button_icon_select'] ) { $content_html .= "<span class='avia_button_icon avia_button_icon_right' {$display_char}></span>"; }*/ $curtain_reveal_overlay = ''; $html = ''; $html .= $style_tag; $html .= "<a href='{$link}' {$data} class='{$container_class}' {$blank} {$title_attr}>"; $html .= $curtain_reveal_overlay; $html .= $content_html; $html .= $background_hover; $html .= '</a>'; $output = "<div {$meta['custom_el_id']} class='avia-button-wrap {$wrap_class} avia-button-{$atts['position']} {$meta['el_class']}'>"; //$output .= $curtain_reveal_overlay; $output .= $html; $output .= '</div>'; return $output; } } } new AbstraktEnfoldExtensions(); require 'plugin-update-checker-master/plugin-update-checker.php'; use YahnisElsts\PluginUpdateChecker\v5\PucFactory; $myUpdateChecker = PucFactory::buildUpdateChecker( 'https://nates1dev.wpengine.com/wp-content/uploads/enfold-extensions/info.json', __FILE__, //Full path to the main plugin file or functions.php. 'abstrakt-enfold-extensions' ); -
This reply was modified 1 year ago by
-
AuthorSearch Results
-
Search Results
-
Hi,
I am encountering an issue after updating enfold to the latest version on the home page:
Fatal error: Uncaught Error: Class “DOMDocument” not found in /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/classes/class.ls.dom.php:19 Stack trace: #0 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/classes/class.ls.dom.php(48): LayerSlider\DOM->__construct() #1 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/includes/slider_markup_html.php(674): LayerSlider\DOM::newDocumentHTML() #2 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/wp/shortcodes.php(384): include(‘/home/beautyof/…’) #3 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/wp/shortcodes.php(279): LS_Shortcode::generateSliderMarkup() #4 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/wp/shortcodes.php(86): LS_Shortcode::processShortcode() #5 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php(193): LS_Shortcode::handleShortcode() #6 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1329): avia_sc_layerslider->shortcode_handler() #7 /home/beautyof/public_html/wp-includes/shortcodes.php(434): aviaShortcodeTemplate->shortcode_handler_prepare() #8 [internal function]: do_shortcode_tag() #9 /home/beautyof/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #10 /home/beautyof/public_html/wp-includes/class-wp-hook.php(324): do_shortcode() #11 /home/beautyof/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #12 /home/beautyof/public_html/wp-content/themes/beautyofaction-4/template-builder.php(102): apply_filters() #13 /home/beautyof/public_html/wp-includes/template-loader.php(106): include(‘/home/beautyof/…’) #14 /home/beautyof/public_html/wp-blog-header.php(19): require_once(‘/home/beautyof/…’) #15 /home/beautyof/public_html/index.php(17): require(‘/home/beautyof/…’) #16 {main} thrown in /home/beautyof/public_html/wp-content/themes/beautyofaction-4/config-layerslider/LayerSlider/assets/classes/class.ls.dom.php on line 19
Could you please advise how to solve the issue?
Regards
DavidHi,
I want to add a second menu underneath the main menu. To do so, I added this piece of code to my functions.php file.
php
add_action(‘ava_after_main_container’, ‘custom_submenu’);
function custom_submenu() {
$classes = get_body_class();
if ((in_array(‘woocommerce-page’, $classes)) || (in_array(‘archive’, $classes))) {
echo do_shortcode(“[av_submenu which_menu='' menu='3251' position='right' sticky='aviaTBsticky' color='footer_color' mobile='disabled' mobile_switch='av-switch-768' alb_description='' id='' custom_class='only-desktop' template_class='' av_uid='av-m8fv68yn' sc_version='1.0']
[av_submenu_item title='Menu Item 1' button_style='' link='' link_dynamic='' linktarget='' title_attr='' av_uid='av-d3kl3k2' sc_version='1.0']
[av_submenu_item title='Menu Item 2' button_style='' link='' link_dynamic='' linktarget='' title_attr='' av_uid='av-683en9e' sc_version='1.0']
[/av_submenu]“);
}
}
This is working perfectly on desktops. However, on mobile devices, it breaks the layout on WooCommerce pages—my two columns of products are squeezed to one side, taking up only half of the screen while leaving the other half blank.Since I don’t want the menu to appear on mobile devices, I tried hiding it with this CSS:
css
@media only screen and (max-width: 768px) {
.desktop-only {
display: none !important;
}
}
But it doesn’t work. Can you help me figure out a way to hide the full-width submenu on mobile devices so it doesn’t break the layout?When I try to install a Google Petrona font via Custom Type Fonts Manager in Theme options I get this error:
https://www.thegatheringbarn.co.uk/wp-content/uploads/2025/03/Screenshot-2025-03-18-111749.png
“Couldn’t add the font because the server didn’t respond. Please reload the page, then try again”
I used to do it via functions.php and CSS but I’ve forgoten how.
This is a reissue because last ticket was filled with info about variable fonts so looked like it was being dealt with. Please can this one just be about the problem at hand.
Many thanksTopic: magnific popup missing form
on the page below I have 2 links called TILMELD DIG VORES NYHEDSBREV.
The top one is in a popup made with the enfold magnific popup code:function inline_popup_enabler(){ ?> <script> (function($){ $(window).load(function() { $('.inline_popup').magnificPopup({ type:'inline', midClick: true }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'inline_popup_enabler');I am then using “mfg-hide” in a color section containing some text and a sender.net widget with a signup form. The popup works but the form is not showing up.
The one on the bottom (which is a footer page) is done using an iframe and you can see the form widget there. It’s the same widget I uses in the tops ection. I also tried adding a code block to that top color section with the javascript I got off the sender page for the form.
It’s this and they told me to put all the code together in a code block, but that doesn’t work either:<script> (function (s, e, n, d, er) { s['Sender'] = er; s[er] = s[er] || function () { (s[er].q = s[er].q || []).push(arguments) }, s[er].l = 1 * new Date(); var a = e.createElement(n), m = e.getElementsByTagName(n)[0]; a.async = 1; a.src = d; m.parentNode.insertBefore(a, m) })(window, document, 'script', 'https://cdn.sender.net/accounts_resources/universal.js', 'sender'); sender('4f4c8522254761') </script> <div style="text-align: left" class="sender-form-field" data-sender-form-id="m8a4fv8kegj7l6vonkw"></div>Can you take a look? I like the top popup better but need the form to show up.
Thanks
NancyI updated one of our client’s websites to Enfold 7.0 last week and have been experiencing very slow speeds when trying to edit pages.
We have have repaired and optimized the database tables and emptied the debug log file, which was quite large. We also updated PHP to the latest release and increased the PHP resources to improve the website’s performance. Unfortunately, none of those things have helped.
Any suggestions or assistance would be appreciated. Thanks.



