Forum Replies Created
-
AuthorPosts
-
Hey Guenter,
Check ..\enfold\includes\config-enfold\functions-enqueue.php line 242:
add_action( 'wp_enqueue_scripts', 'avia_register_frontend_scripts' );
If you use in your child theme
add_action( 'wp_enqueue_scripts', 'your_register_frontend_scripts', 11 );
you should be able to use in your function
wp_dequeue_script( 'avia-sticky-header' );
and the enqueue your custom script – see line 112ff for conditions
Or am I missing something ?
Best regards,
GünterMay 28, 2025 at 11:07 am in reply to: Problem to unlock “Lock advanced layout builder” for editor #1484774Hi,
Glad we could help you.
Enjoy the theme and have a great day.
Feel free to come back when you need further assistance.Best regards,
GünterHi @BigBatT,
Thanks for the files. They are already added to our main branch in our dev repo.
I also added them to the language repo.Have a great day.
Best regards,
GünterMay 23, 2025 at 10:07 am in reply to: Problem to unlock “Lock advanced layout builder” for editor #1484602Hi,
I think the code you need is:
add_filter('avf_allow_drag_drop', 'avia_disable_alb_drag_drop_mod', 40, 1); function avia_disable_alb_drag_drop_mod( $disable ) { $user = wp_get_current_user(); $allowed_roles = array('editor', 'administrator', 'author'); $check = array_intersect( $allowed_roles, $user->roles ); if( ! empty( $check ) ) { $disable = avia_get_option('lock_alb', 'disabled') != "lock_alb" ? true : false; } return $disable; }
Can you check this please.
Best regards,
GünterHi,
Kurze Info: Unter Enfold gibt es eine zweite Optionsseite: “Theme Extensions”. Dort befindet sich ein Tab “Accessibility”. Vielleicht hilft Euch dieses weiter.
Best regards,
GünterMay 14, 2025 at 3:00 pm in reply to: Significant Site Slowdown Caused by avia_deep_decode Function in Enfold Theme #1484235Hi,
Is it safe to disable theme functionality
This will certainly break the site – Enfold needs all files loaded.
If you are certain that no enfold function is needed on a page/post/.., you can skip loading enfold.
See theme functions.php line 38:
if( isset( $avia_config['use_child_theme_functions_only'] ) ) { return; }
You can conditionally set in your child theme functions.php:
$avia_config['use_child_theme_functions_only'] = true;
Best regards,
GünterHey Vada,
ALB is core part of Enfold and therefore is always loaded.
If you have good programming skills check ..\enfold\config-templatebuilder\avia-template-builder\php\class-template-builder.php around line 480.
But this is experimental only and not tested. But it could be a start for you not to load ALB in backend on certain pages.
Best regards,
GünterMay 7, 2025 at 3:49 pm in reply to: Significant Site Slowdown Caused by avia_deep_decode Function in Enfold Theme #1483776Hi,
Sorry for the late reply.
get_bloginfo (and wp_load_alloptions)
Both functions are core WP and already use WP cache. So it does not make sense to add another level.
Try to check your page layouts if you are using elements that make a callback to server to get content from database – this could be a reason why a cache plugin cannot speed up page load.
Best regards,
GünterApril 14, 2025 at 1:11 pm in reply to: Is it possible to activate ALB on Posts inserted via API per default? #1481304Hey Pflegehilfe24,
See your last post https://kriesi.at/support/topic/using-custom-loop-index-php-template-with-alb/
I think this should answer it. If not, let us know.
Best regards,
GünterHi,
Yes, there is a filter in ..config-templatebuilderavia-template-builderphpclass-template-builder.php:
$force_alb = apply_filters( 'avf_force_alb_usage', false, $post );
Return anything different from false (e.g. true). This adds class ‘avia-force-alb’ to body.
If you need help with the filter let us know.
Best regards,
GünterHi,
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 11:48 am in reply to: Significant Site Slowdown Caused by avia_deep_decode Function in Enfold Theme #1480265Hi,
Thank you for using Enfold.
avia_deep_decode
is a core function needed to properly convert HTML characters in ALB elements. And it is not recommended to remove/change it.
As all builders also our ALB has some overhead that slow down backend pageload.
Consider to switch to a hoster that provides higher performance – and try to increase memory for php and WP.For frontend use caching plugins to speed up pageload – and check that your images are optimized and the dimension uploaded does not exceed the maximum size needed.
Hope this helps you.
Best regards,
GünterMarch 20, 2025 at 11:17 am in reply to: undefined property: stdClass::$ID in enfolds-function.php, lines 860, 860 #1479789Hi,
Thanks for your feedback and glad we could solve the problem.
Enjoy the theme and have a great day.Feel free to come back when you need further assistance – simply open a new topic.
Best regards,
GünterPS. If you can spare a few minutes please leave a positive review at our product page https://themeforest.net/item/enfold-responsive-multipurpose-theme/reviews/4519990
thanks in advance.
March 19, 2025 at 5:44 pm in reply to: undefined property: stdClass::$ID in enfolds-function.php, lines 860, 860 #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 8:58 am in reply to: Product Filters for WooCommerce – Uncaught TypeError #1479696Hi,
Thanks a lot for checking. The fix will be added to next release.
Enjoy the theme and have a great day.Best regards,
GünterMarch 18, 2025 at 4:29 pm in reply to: LayerSlider not Updated Since December 2nd 2024 – Enfold 6.0.7 #1479641Hey classywebsites,
Thank you for informing us. We will update it to latest version for next release.
Best regards,
GünterMarch 18, 2025 at 4:15 pm in reply to: Product Filters for WooCommerce – Uncaught TypeError #1479640Hi,
Thank you for your feedback.
I added a slightly modified fix for the next release 7.1.1.
As I do not have access to the plugin could you please check if it works:
Please replace enfold/js/avia-js.js with
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_7_1/js/avia-js.js
and if you are using minified files also
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_7_1/js/avia-js.min.js
Do not forget to clear server and browser cache.
Best regards,
GünterHey Tim,
Thanks for bringing this up. I added it to our dev repo to add it in one of the next releases.
Best regards,
GünterHi,
We are not intending to extend our implementation in near future.
You find the necessary js in ..\enfold\js\avia-snippet-cookieconsent.js and in ..\enfold\includes\helper-privacy.php
In case you need any trigger actions to manage your custom js or filters in php let us know and we can add it to core.Also check section “Additional Custom Cookies” at bottom of theme option tab and also
Maybe this helps you.
Best regards,
GünterHi,
Sorry for the late reply. But I had to recheck this with Kriesi.
A theme can only implement a basic support.
If you need a deeper integration you will need to use a plugin – I think borlab (https://de.borlabs.io/borlabs-cookie/) is a good choice – but you will need to test it.Best regards,
GünterHey Ali Trevino-Murphy,
Please update to latest version 7.0. These issues are fixed there.
Best regards,
GünterHi,
Ich habe den Code in Deine child functions.php unten eingefügt.
Ohne static erscheint bild im footer, mit nicht mehr.
Link siehe unten.Best regards,
GünterHi,
If I understand you correctly the featured image is displayed also in the footer and you do not want to have it there.
My snippet avoids to display it a second time.
Simply add it at the beginning of the function:function avf_template_builder_content_postimage_mod($content = ""){ static $exec = false; // initialise if( $exec ) // check if function was already executed once { return $content ; } $exec = true; // set flag as executed if( (is_singular('post') || is_singular('portfolio')) && ( '1' != get_post_meta( get_the_ID(), '_avia_hide_featured_image', true ) ) ) { ......
Best regards,
GünterHi,
These reports are fixed in latest version 7.0.
- WordFence vulnerablity fix: limit download of theme options to admin only (discovered by mikemyers)
- WordFence vulnerablity fix: removed not needed function avia_ajax_get_image_color() (discovered by mikemyers)
Please update to this version.
Best regards,
GünterHey Guenter,
What about using a static var in the handler at the beginning like:
static $exec = false; // initialise if( $exec ) { return $content ; } $exec = true; // set flag as executed .....
Best regards,
GünterHey Guenter,
wp-media-library svg are identified by attachment ID (which is unique) – title of svg which is used as name can be changed which would lead to loosing the icon. If you check the shortcode of e.g. ALB icon you will see that the ID is also used.
For other svg iconsets you must use the name – as it is the name of the svg file it will never change.
Best regards,
Günter -
AuthorPosts