I used to be able to have different phone numbers on different pges by using the following code:
function add_custom_script(){
?>
<script type=”text/javascript”>
(function($){
function change_topinfo() {
$(“.page-id-12131 .phone-info span”).text(‘CALL NOW: 01604 946 543’);
$(“.page-id-28924 .phone-info span”).text(‘CALL NOW: 01604 267 522’);
}
change_topinfo();
})(jQuery);
</script>
<?php
}
add_action(‘wp_footer’, ‘add_custom_script’);
This has stopped working and i would like to be able to continue using this feature…. Help!
Hi,
Thank you for the update.
After adding the filter, you should find the font at the very bottom of the dropdown. Did you check it there?
UPDATE: We moved the filter around line 57 of the functions.php file. You can find the new font as the very last option, after Yellowtail. You may need to install and activate a child theme in order to preserve this modification.
// https://kriesi.at/documentation/enfold/child-theme/
Best regards,
Ismael
Hi Rikard,
Sadly downgrading PHP didn’t help.
I’ve tried both version 8.0 and 7.4.
It also seems like we can’t access the server logs.
I’ve put the login credentials in the private content field
Best regards,
Gerry
Hello,
I have a problem with the Enfold update to 4.9.2.3
Customer bought Enfold himself in February 2022 as a guest without an account on Themeforrest
I then created a token with my access data in my account – https://build.envato.com/create-token/
Question 1:
So is it generally feasible?
Question 2:
The message came that automatic update was not possible
Manual update doesn’t work either, why?
A notice:
I deactivated the “All In One WP Security” plugin, which occasionally causes problems with updates.
WordPress and all plugins up to date
PHP version 8.0.18
Error checking 2022/05/11 10:27:
Download Package URL: Received Error Code 403 from Envato: Forbidden:
– response_code: 403
– reason: scope-missing
Download Bundle URL: There was a problem accessing your download link. The update cannot be performed.
The Envato package errors encountered are:
Enfold – Download URL request failed.
Hi Gerry,
Could you try downgrading the PHP version to see if that changes anything? Something between your current version, and 7.4 for example. If you get the same error after that, then please post admin WordPress login details in private. If you have server error logs, then please share them with us as well.
Best regards,
Rikard
Hi Rikard,
We do see that both the template + PHP versions need to be updated.
However, when accessing enfold-child > Theme Update > there is this message: No Updates available. You are running the latest version! (4.7.4). It is clear that the child theme is not updating as expected to the 4.9.2.3. We had re-purchased the template as the previous developer did not insert the valid Envato private token.
Would you be able to advise why the child theme is not updating as expected?
In the meantime, I will have the hosting company update the PHP version to 7.4.
Best,
Tamara
Hi Tamara,
Thanks for the login details. First off, could you try updating the theme to the latest version (4.9.2.3) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. If not, then please try upgrading your PHP version to 7.4 or higher.
Best regards,
Rikard
Ferdinand MayrhoferGuest
Hello,
We bought your Enfold-Theme on 15 Oct 2015 and would like to update it; however, the purchase it not visible on our Themeforest/envato-market account. We are currently running on Enfold 3.5.4, and Enfold will break if we go beyond PHP 7.0.
What can we do?
Very strange, I’ve turned of all plugins and custom code, same result. (WP, WC, etc. on latest version, PHP8)
BUT: as I tested the code via functions.php on ALL pages, I’ve found out that it’s NOT working correctly ONLY on WC product pages (single),
any other page type works fine, even blog post, which is also single.
Please test the code also on your installation on all post types.
Hey Scanmark,
Thank you for the inquiry.
The theme only supports the default variation or weight of the Monserrat font but it can be adjusted with a filter. To include the other font weights, try to use this code in the functions.php file.
add_filter( 'avf_google_heading_font', 'avia_add_custom_heading_font');
add_filter( 'avf_google_content_font', 'avia_add_custom_body_font');
function avia_add_custom_heading_font($fonts)
{
$fonts['Montserrat New'] = 'Montserrat:300,600,800,900';
return $fonts;
}
function avia_add_custom_body_font($fonts)
{
$fonts['Google fonts']['Montserrat New'] = 'Montserrat:300,600,800,900';
return $fonts;
}
Make sure to select Montserrat New in the fonts settings.
Related thread: https://kriesi.at/support/topic/google-fonts-11/#post-1025744
Best regards,
Ismael
Hello,
We inherited a website with an Enfold-child theme.
We can easily change all the configurations in the Child theme (colors, fonts etc). We designed a new home page. When we tried to apply the new page as the homepage in the Frontpage Settings, nothing happens. In the Pages, the old page is still marked as “Front Page”. It’s frustrating because we can’t made any progress on the site without the new home page.
While exploring we also noticed that when we would access Appearance > Customize we would get a critical error: There has been a critical error on this website. Please check your site admin email inbox for instructions.
We re-purchased the theme in hopes that it will update properly and fix the issue – but no luck.
Enfold version: 4.7.4
PHP version: 7.3.33
Thanks in advance,
Tamara
Hey C,
Thank you for the inquiry.
Where can we see the issue? Please post the site URL in the private field so that we can check the breadcrumbs. You might be able to limit the post title by using this filter in the functions.php file.
function avf_max_title_length( $title ) {
$max = 70;
if( strlen( $title ) > $max ) {
return substr( $title, 0, $max ) . "…";
} else {
return $title;
}
}
add_filter( 'the_title', 'avf_max_title_length');
Related thread: https://kriesi.at/support/topic/breadcrumb-length/#post-1222529
Best regards,
Ismael
Hi,
Thank you for your patience.
On Firefox, the scroll position is correct on initial load and when you do a hard refresh, which means that the script only fires correctly when you actually refresh the page. Firefox doesn’t seem to automatically refresh the page when you try to access it again by pressing the ENTER or RETURN key in the URL field. You have to do a hard refresh manually. On Chrome, this always works because the browser always refreshes the page automatically when you try to access the page again using the browser URL field. Scrolling also works correctly when you try to access the section using the anchor links at the very bottom of the page.
We modified the filter in the functions.php file a bit to adjust the offset on firefox browser but again this will only work on Firefox if the page is actually refreshed.
function avf_header_setting_filter_mod($header) {
$offset = strpos($_SERVER['HTTP_USER_AGENT'], "Firefox") === false ? 50 : 75;
if( ! wp_is_mobile() ) {
$header['header_scroll_offset'] = $header['header_scroll_offset'] + $offset;
}
return $header;
}
add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1);
Best regards,
Ismael
Hi,
If you have the theme option Product gallery set to WooCommerce 3.0 product gallery right now then your plugin Motif Product Image Zoom has replaced the Product gallery because the source code doesn’t match the our theme.
You can try disabling the lightbox for the theme at Enfold Theme Options ▸ Lightbox Modal Window
or try adding this code to the end of your functions.php file in Appearance ▸ Editor:
function custom_noLightbox_script() { ?>
<script>
(function($){
$("#thumbnail-slider a.thumb").addClass("noLightbox").removeClass("lightbox-added");
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_noLightbox_script');
Best regards,
Mike
Hi,
Thank you for your patience and for the link to your site,
I removed your Sprache: and Language: mobile menu placeholder items, and enabled Enfold Theme Options ▸ Main Menu ▸ Burger/Mobile Menu ▸ Clone title menu items to submenu and Enfold Theme Options ▸ Main Menu ▸ Burger/Mobile Menu ▸ Display submenu items on click
Then I added this function to your functions.php
function custom_mobile_wpml_dropdown() { ?>
<script>
(function($) {
$('span.av-hamburger').on('click', function() {
setTimeout(function() {
$('#av-burger-menu-ul>.wpml-ls-menu-item>a').attr('href', '#');
$('html[lang="en-US"] #av-burger-menu-ul>.wpml-ls-menu-item.av-width-submenu.av-active-burger-items>a>.avia-menu-text>span').text('Language:').css({'margin-left':'0'});
$('html[lang="de-DE-formal"] #av-burger-menu-ul>.wpml-ls-menu-item>a>.avia-menu-text>span').text('Sprache:').css({'margin-left':'0'});
$('#av-burger-menu-ul>.wpml-ls-menu-item>a>.avia-menu-text>.wpml-ls-flag').css({'display':'none'});
}, 700);
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_mobile_wpml_dropdown');
Now in both languages you have a drop-down menu with the language switchers for mobile.
Please check.
Best regards,
Mike
I am getting the following critical errors when using plugin participants database email expansion – is this a theme problem or a plugin problem?
Fatal error: Uncaught TypeError: Argument 2 passed to aviaPostCssManagement::handler_wp_save_post() must be an instance of WP_Post, null given, called in wp-includes/class-wp-hook.php on line 307 and defined in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php:385 Stack trace: #0 /wp-includes/class-wp-hook.php(307): aviaPostCssManagement->handler_wp_save_post() #1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #2 /wp-includes/plugin.php(474): WP_Hook->do_action() #3 /wp-includes/post.php(4687): do_action() #4 /wp-admin/includes/post.php(700): wp_insert_post() #5 /wp-admin/post-new.php(66): get_default_post_to_edit() #6 {main} thrown in /wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php on line 385
Hi all,
Is
themes\enfold\config-templatebuilder\avia-shortcodes\product_list.php (as of: https://kriesi.at/support/topic/product-catalogue-template/#post-1350662 )
also the document I need to modify if I want the Product List element to have a button with the text ‘View training’ instead of the price?
Or is there perhaps a snippet I can use?
This is what I would like to achieve:
https://ifra.nl/wp-content/uploads/2022/05/Schermafbeelding-2022-05-05-om-17.24.41.png
Hi all,
Is
themes\enfold\config-templatebuilder\avia-shortcodes\product_list.php
also the document I need to modify if I want the Product List element to have a button with the text ‘View training’ instead of the price?
Or is there perhaps a snippet I can use?
This is what I would like to achieve:
https://ifra.nl/wp-content/uploads/2022/05/Schermafbeelding-2022-05-05-om-17.24.41.png
Update:
Maybe I should have opened a new topic instead of replying to this old one? Just did: https://kriesi.at/support/topic/button-instead-of-price-at-product-list-element/
-
This reply was modified 3 years, 11 months ago by
ifranl.
Hi,
To change the mobile search icon size try this css:
@media only screen and (max-width: 767px) {
.responsive #top #wrap_all .menu-item-search-dropdown > a {
font-size: 12px !important;
}
}
and adjust to suit.
To stop the search form from submitting with the enter key, try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_script() { ?>
<script>
(function($) {
$('#menu-item-search').click(function(){
setTimeout(function(){
$("form").attr('onSubmit', 'return false');
},500);
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
As for the search field on the iPhone view zooms in, this is the iPhone itself and we can not change.
Best regards,
Mike
Uou!
That worked just fine!
Applied Guenni’s 2nd option directly on the child’s functions.php and the 2 unwanted fields are gone.
:-D
Thanks a lot @guenni007 !!!
Hello again,
Thanks for that. I will just replace the ad as there is no option for that.
I also have an issue with Google Adsense where I turned on Auto Ads and placed a banner size I am not satisfied with.
I tried switching off auto ads but the ad remains there. I want an ad placed there but an ad 728×90 with the right padding-top, bottom, and centered.
How can I find this code to edit it? Where do I go in the theme editor? I tried finding it in header.php but no luck. I have pasted a link in private.
Kind Regards
Mike
Hi,
Thanks for sharing Guenni007, Vera, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
Best regards,
Mike
** Update **
If you find that the lightbox does not start with the first image of the gallery order you can try this script instead:
function text_link_to_gallery_lightbox() {
?>
<script type="text/javascript">
(function($) {
$(document).on('click', '.text_to_lightbox a', function(event) {
event.preventDefault();
var linkTarget = $(this).attr('href');
$(linkTarget).find("a.first_thumb:first").click();
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'text_link_to_gallery_lightbox');
This is the reasoning behind the change.
-
This reply was modified 3 years, 10 months ago by
Mike. Reason: behavior reported in another thread
Hello,
eveery view weeks I get this massage that someting is wrong on my website. Unfortunally I don’t understand what is the fault,just that it is something inside of enfold theme. I copy you the massage here and would be happy you can help.
Thank you
Claudia
WordPress-Version 5.9.3
Aktives Theme: VDCO (Version )
Aktuelles Plugin: (Version )
PHP-Version 7.4.28
Fehler-Details
==============
Ein Fehler vom Typ E_ERROR wurde in der Zeile 3766 der Datei /mnt/web323/a1/64/53424064/htdocs/htdocs/test/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php verursacht. Fehlermeldung: Uncaught TypeError: Argument 1 passed to aviaElementTemplates::set_locked_attributes() must be of the type array, string given, called in /mnt/web323/a1/64/53424064/htdocs/htdocs/test/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php on line 813 and defined in /mnt/web323/a1/64/53424064/htdocs/htdocs/test/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-element-templates.php:3766
Stack trace:
#0 /mnt/web323/a1/64/53424064/htdocs/htdocs/test/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php(813): aviaElementTemplates->set_locked_attributes()
#1 /mnt/web323/a1/64/53424064/htdocs/htdocs/test/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php(858): avia_sc_partner_logo->get_element_styles()
#2 /mnt/web323/a1/64/53424064/htdocs/htdocs/test/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-template.php(1142): avia_sc_partner_log
now – this is my testsetting for you:

1) The textblock with the links to the galleries got a custom-class: text_to_lightbox
2) The links of these texts refer to the ID of the correlating gallery. ( in my case it is gallery1 and gallery2)
3) if you like to hide those galleries – set a custom class to each of them: mfp-hide ( this is a predefined class on enfold to hide those containers )
4) give a custom ID to the gallery – ( gallery1, gallery2 etc – what you like – only it has to correlate with the links of the texts)
5) put this to your child-theme functions.php:
function text_link_to_gallery_lightbox() {
?>
<script type="text/javascript">
(function($) {
$(document).on('click', '.text_to_lightbox a', function(event) {
event.preventDefault();
var linkTarget = $(this).attr('href');
$(linkTarget).find("a.first_thumb").click();
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'text_link_to_gallery_lightbox');
see result here: https://webers-testseite.de/hidden-gallery/#gallery2
The advantage is that you can style your galleries as enfold alb element – do not forget to set the lightbox link active.
Hi,
We have found another solution in a different thread which might help. Please remove the previous filter from the functions.php file and replace it with this one.
/**
* Customize Adjacent Post Link Order
*/
function wpse73190_gist_adjacent_post_where($sql) {
if ( !is_main_query() || !is_singular() )
return $sql;
$the_post = get_post( get_the_ID() );
$patterns = array();
$patterns[] = '/post_date/';
$patterns[] = '/\'[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\'/';
$replacements = array();
$replacements[] = 'menu_order';
$replacements[] = $the_post->menu_order;
return preg_replace( $patterns, $replacements, $sql );
}
add_filter( 'get_next_post_where', 'wpse73190_gist_adjacent_post_where' );
add_filter( 'get_previous_post_where', 'wpse73190_gist_adjacent_post_where' );
function wpse73190_gist_adjacent_post_sort($sql) {
if ( !is_main_query() || !is_singular() )
return $sql;
$pattern = '/post_date/';
$replacement = 'menu_order';
return preg_replace( $pattern, $replacement, $sql );
}
add_filter( 'get_next_post_sort', 'wpse73190_gist_adjacent_post_sort' );
add_filter( 'get_previous_post_sort', 'wpse73190_gist_adjacent_post_sort' );
This is based on: https://wordpress.stackexchange.com/questions/73190/can-the-next-prev-post-links-be-ordered-by-menu-order-or-by-a-meta-key
Best regards,
Ismael
Here is a new site we developed for UK Cyber Security Ltd
Cyber Essentials and IASME Governance Provider East Midlands
UK Cyber Security Ltd is a Cyber Security and IT Management company based in Swadlincote, Derbyshire, UK. They are a Cyber Essentials and IASME Governance Certification Body, offering a range of IT security services including penetration testing and network scanning.
The company had lost the original copy of their logo so we recovered their logo and fonts ready for use on their new website.
Built on an optimised version of Enfold with WooCommerce and TakePayments integration. The site includes a bespoke quote generator built using Cost Calculator WordPress purchased from Theme Forest / Code Canyon.
The site includes modifications to WooCommerce:
-Add widget to main menu area so search bar is available on desktops
-Add a widget to the top of the product page so search can be added to mobile pages
-Modified search so it only searches products and includes SKUs
-Changed the breakpoint so the sidebar disappears on tablets
-Seperate the categories from the main shop loop for better navigation
Pagespeed and Web Vitals
The home page under testing scores up to 93/100 in Google Web Vitals mobile device testing and 100/100 on desktops.
This is because the quote generator loads some files on every page a small tradeoff for extra functionality.
The Think Jarvis optimised web framework includes some extra optimisation:
– VPS hosting with maximum resource allocation from IONOS
– Unique modifications to .htaccess and functions.php
– Caching plugin
– Additional image thumbnail generation
– WebP image generation and compression
– Login screen moved and password protected to prevent brute force attacks
– Jetpack Brute Force Protection
– Advanced contact form spam protection without using Google Recaptcha
Thank you Nikko. I host with Godaddy an noticed a couple of other posts on 04/28/22 that sounded like the same issue. I took the above steps to increase WP mem and PHP mem during the issue that had no immediate effect. As of today 04/29 I can update the pages I was having issues with. Possible Goddady DB server issues I can only assume. I experienced this issue over a 24hr period very randomly. When a page would lock on update the whole domain and sub domains would go offline of a brief period of time. All seems working ATM. The page I was dealing with was very simple standard html content with the Enfold wrap.
Bobtown Brewery
220 W Main St. Roberts WI. 54023
Tel: (715) 338-1046
Web: bobtownbrewhouse.menufy.com
Availability: Dine In
<hr />
Yoerg Brewing
378 Maria Ave St Paul MN. 55106
Tel: (651) 330-2076
Web: http://www.yoergbeer.com
Availability: Dine In
<hr />
Roma Restaurant – Brewery – Market
310 Stillwater Rd Willernie MN. 55090
Tel: (651) 653-4733
Web: http://www.romarestaurantbrewery.com
Availability: Take-n-Bake
<hr />
American Legion Post 98
328 Broadway Ave, St Paul Park, MN 55071
Tel: (651) 459-8016
Web: richarddinglepost98.com
Availability: Dine In
<hr />
VFW Post 806 Club Princeton MN
133 Rum River Dr. North Princeton MN. 55371
Tel: (763) 389-9959
Web: vfw-post-806-princeton-minnesota.business.site
Availability: Dine In
<hr />
Octopus College Hill
2205 College Street Cedar Falls, IA 50613
Tel: (319) 242-7789
Web: http://www.octopuscollegehill.com
Availability: Dine In
<hr />
Brothers Market Denver
1022 Skylar St, Denver, IA 50622
Tel: (319) 406-0004
Web: shopbrothersmarket.com
Availability: Take-n-Bake
<hr />
QC Pizza Mahtomedi
3150 Century Ave N Mahtomedi MN. 55115
Tel: (651)777-1200
Web: http://www.qc.pizza
Availability: Take-n-Bake
<hr />
QC Pizza South Minneapolis
5501 34th Avenue S Minneapolis MN. 55417
Tel: (612)259-7132
Web: http://www.qc.pizza
Availability: Take-n-Bake
<hr />
GoldBelly Nationwide Shipping
Shipping: UPS Next Day Air Shipping
Availability: 48 contiguous states
Web: https://www.goldbelly.com/qc-pizza
<hr />
Alejandro RoblesGuest
Hi,
I’m using this contact form because tried the support forum but seems it’s closed for Replete theme.
I have a website using Replete theme but since couple of weeks ago started to have an error when loading. It also shows an error when accessing the product admin inside wp admin panel.
The site is: https://fhjuga.com
Using WP in ‘recovery mode’ it says that the theme is missing some files, I tried to access my Envanto account but there’s no file to download anymore My purchase info is:
Item Purchase Code:
d609aace-8c79-497f-9c18-3858b97cd3c8
Purchase Date:
2015-08-27 18:20:58 UTC
Can you please send me a copy of the last installation file to reinstall the theme please?
Thanks,
Alejandro Robles
PS
I’m also receiving an email error message from WP with the following:
Detalles del error
==================
Se ha producido un error del tipo E_ERROR en la línea 48 del archivo /home/tmysa/public_html/wp-content/themes/replete/includes/admin/compat.php. Mensaje de error: Uncaught Error: Cannot use string offset as an array in /home/tmysa/public_html/wp-content/themes/replete/includes/admin/compat.php:48
Stack trace:
#0 /home/tmysa/public_html/wp-includes/class-wp-hook.php(307): avia_backend_compatibility_custom_field_filter(”, 774)
#1 /home/tmysa/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(”, Array)
#2 /home/tmysa/public_html/wp-content/themes/replete/framework/php/function-set-avia-frontend.php(262): apply_filters(‘avia_post_meta_…’, ”, 774)
#3 /home/tmysa/public_html/wp-includes/class-wp-hook.php(309): avia_post_meta(Object(WP_Post))
#4 /home/tmysa/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#5 /home/tmysa/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#6 /home/tmysa/public_html/wp-includes/class-wp-query.php(4399): do_action_ref_array(‘the_post’, Array)
#7 /home/tmysa/public_html/wp-includes/query.php(1179): WP_Query->setup_postdata(Object(WP_Post))
#8 /home/tmysa/public_html/wp-admin/includ
Hi,
Thanks for the update. I’m seeing this on your site now:
Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 20480 bytes) in /var/www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/grid_row/cell.php on line 969
Please try to increase the memory allocated to PHP on your installation: https://wordpress.org/support/article/editing-wp-config-php/. If you need help with that, then please try reaching out to your hosting provider.
Best regards,
Rikard