-
Search Results
-
Hi,
After updating to enfold 4.9.2.3 (from 4.8.8.1), pages with video background on color section generate error :
E_ERROR on line 865 of /…/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-slideshow.php.
Uncaught Error: Call to a member function get_subitem_styling_info() on null in /…/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-slideshow.php:865
Stack trace:
#0 /…/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-slideshow.php(579): avia_slideshow->html_advanced_slide()
#1 /…/wp-content/themes/enfold-child/shortcodes/section.php(1392): avia_slideshow->html()
#2 /…/wp-content/themes/enfold-child/shortcodes/section.php(1120): avia_new_section()
#3 /…/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1142): avia_sc_section->shortcode_handler()
#4 /…/wp-includes/shortcodes.php(356): aviaShortcodeTemplate->shortcode_handler_prepare()
#5 [internal function]: do_shortcode_tag()
#6 /…/wp-includes/shortcodes.php(228): preg_replace_callback()
#7 /var/wwTopic: Alter Sub Categories Menu
Hello,
I was talking to you in another thread and raised this issue. You replied with a solution and said if I had any other questions to raise a new thread.
I want to alter the sub-menu with the categories below the slider in 3 ways:
1) Can you tell me how I can rename it from “Menu” in mobile mode to say “Categories”?
2) Also, I would like to left-align it when in mobile mode, but keep it centred in desktop mode?
3) Lastly, can I change it to switch to mobile mode at 885px rather than what it lets me set it to? (trying to maximise the proper menu until it starts wrapping to two lines at 885px wide).You replied asking me to add the following to the functions.php:
// additional custom scripts
function ava_custom_script_mod() {
?>
<script>
(function($)
{
// replace fullwidth sub menu placeholder text
$(".av-current-placeholder").text("Categories");
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script_mod');===================================================================
By functions.php I presume you mean: wp-content/themes/enfold/functions.php
So I added it directly at the bottom and went to clear the wp-rocket cache but cannot login to the admin area with this code added. I just get an error at the admin area saying:
There has been a critical error on this website. Please check your site admin email inbox for instructions.Learn more about troubleshooting WordPress.
Logs indicate:
[Wed Jun 01 13:52:09.363904 2022] [lsapi:error] [pid 1706026:tid 140660832917248] [client 81.xxx.xxx:0] [host http://www.mydomain.uk] Backend fatal error: PHP Parse error: syntax error, unexpected token “?” in /home/blah/domains/mydomain.uk/public_html/wp-content/themes/enfold/functions.php on line 851\n, referer: https://www.mydomain.uk/wp-admin/Thanks
Error Details
=============
An error of type E_ERROR was caused in line 3767 of the file %SRCDIR%/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php. Error message: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in %SRCDIR%/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php on line 1062 and defined in %SRCDIR%/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:3767
Stack trace:
#0 %SRCDIR%/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1062): aviaElementTemplates->set_locked_attributes()
#1 %SRCDIR%/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php(1106): avia_sc_slider_full->get_element_styles()
#2 %SRCDIR%/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1142): avia_sc_slider_full->shortcodTopic: Enfold obsolescence
Hello,
I cannot register on your support website as I cannot retrieve the purchase code.
On behalf of my client, I’d like to recover the license details (purchase code and email address) used by the original Themeforest user which doesn’t possibly exist anymore.
The website is running Enfold v4.4.1 on PHP v7.3. I am unable to update the theme from the WP console. The only way is to download the update from Themeforest.
Also, upgrading PHP to anything above v7.3 on the current Enfold v4.4.1 triggers errors on the frontend for visitors.
Thanks for your input.Hi,
I’ve just taken over maintenance of a website that has Enfold 4.7.4 installed and is in desperate need of updates. They have the following script in functions.php to remove the ecommerce sales badge, I presume. When I upgrade to 4.9.2.3 will this script need to be replaced? If so, what would it need to be? Thank you.// Removing sales badge
// custom script
add_action(‘wp_footer’, ‘ava_custom_script’);
function ava_custom_script(){
?>
<script>
(function($){
function h() {
$(‘#top .product’).each(function() {
var onsale = $(this).find(‘.onsale’),
thumb = $(this).find(‘.woocommerce-LoopProduct-link’);
onsale.appendTo(thumb);
});
}
h();
})(jQuery);
</script>
<?php
}Topic: PHP Fatal Error
I have PHP logging enabled to try to fix a problem but the following appeared in the log.
[22-May-2022 21:30:44 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/tabs/tabs.php on line 574 and defined in /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:3751 Stack trace: #0 /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/tabs/tabs.php(574): aviaElementTemplates->set_locked_attributes('', Object(avia_sc_tab), 'av_tab', Array, Array, '') #1 /var/www/web/wp-includes/shortcodes.php(356): avia_sc_tab->av_tab('', '', 'av_tab') #2 [internal function]: do_shortcode_tag(Array) #3 /var/www/web/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(av_tab...', 'do_shortcode_ta...', '<br />\n[av_tab ...') #4 /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-helper.php(506): do_shortcode('<br />\n[av_tab ...') #5 / in /var/www/web/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php on line 3751It’s not – that I know of – giving me any issues and it has not occurred since, but I thought you might like to investigate if this is an error or just a one-off fluke.
I want to register to support forum with purchase code (388cc671-86f3-42c3-abf0-25e6806e4686), but the email with password cannot arrived.
I would need Enfold 4.5.1 original functions.php because it was modified by the previous developer. I want to move the changes to another location that doesn’t affect the theme’s upgradability
Topic: PHP 7.4
Hi, I keep getting wordpress errors saying I need to upgrade to php 7.4 but when I do it breaks my site. I have spoken to my host and they say the theme is not compatible, do you have a solution to this?
I am building a new website with a lot of photos and to save storage space I want to reduce the number of photo sizes created by Enfold.
I don’t need these sizes:
– 36×36 widget and other square image sizes
– 260×185 portfolio small
– 845×684 gallery
– 710×375 nagazine
– 845×321 entry with sidebar
– 1210×423 entry without sidebar
– 1500×430 featured
– 1500×630 featured largeIf I understood correctly I should then add the following code to my functions.php file (in my Child theme):
function ava_image_sizes() { remove_image_size('magazine'); remove_image_size('widget'); remove_image_size('featured'); remove_image_size('featured_large'); remove_image_size('portfolio_small'); remove_image_size('gallery'); remove_image_size('entry_with_sidebar'); remove_image_size('entry_without_sidebar'); remove_image_size('square'); } add_action( 'after_setup_theme', 'ava_image_sizes', 11 );– Is that above code correct like this?
– After adding this code I have read the advice to use the Regenerate Thumbnails plugin, but this plugin is not updated for a year, so is it still recommended?Thanks for your help!










