Forum Replies Created
-
AuthorPosts
-
Hi,
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ünterHi Tim,
Thanks.
Could reproduce it and added a fix in next release 7.0.
Best regards,
GünterHi Tim,
Sorry, but it still does not work. I tried both e-mail and supplied username.
Best regards,
Günter-
This reply was modified 7 months, 3 weeks ago by
Günter.
Hi,
Thank you for reporting this. It is bug and will be fixed in next release 7.0
Enjoy the theme and have a great day.
Best regards,
GünterHi tim,
Thank you for the login – but it does not work. See Private Content.
Best regards,
GünterFebruary 17, 2025 at 11:41 am in reply to: Compatibility Issues with Enfold Builder on PHP 8.2 and WordPress 6.7 #1477235Hi,
Hope you are also doing well.
Thank you for suggesting the fix – I added it to next release 7.0
Have a great day and enjoy the theme.
Best regards,
GünterHi Tim,
If the img tag disappears in database content (db field post_content and also in metadata ‘_aviaLayoutBuilderCleanData’) means that these fields are updated. I do not know a situation where Enfold itself updates this when a page is loaded in frontend. This happens when a post gets updated from backend.
object cache in my opinion could only be a problem when this happens on saving/updateing a page – but not when it is loaded in frontend. In this case the content is only read.
Is the page after the image disappeared an older version of the page before you added the image ? Then it could be that your hoster restored some older db entries from a backup ?
Best regards,
GünterHey Tim,
Sorry for the late reply.
I cannot reproduce this on a local install. Do you have a staging site where you can reproduce it and I can have access to check your settings for the element ?
Best regards,
GünterJanuary 9, 2025 at 4:16 pm in reply to: Out of Memory – Scalability issue with “Blog Posts” element and a render loop #1474884Hey Jan,
I did not test it – but I have the following idea:
In …\enfold\config-templatebuilder\avia-shortcodes\blog\blog.php around line 861 you find filter:
$query = apply_filters( 'avia_blog_post_query', $query, $params );
In global variable $avia_config[‘posts_on_current_page’] you have all ID’s of already queried posts.
$query[‘post__not_in’] can be used to skip already queried posts:
$query['post__not_in'] = isset( $query['post__not_in'] ) ? array_merge( $query['post__not_in'], $avia_config['posts_on_current_page'] ) : $avia_config['posts_on_current_page'];
Can you give this a try please?
Best regards,
GünterJanuary 8, 2025 at 5:15 pm in reply to: Bug – Abuse of /?avia_extended_shop_select= queries #1474836Hi @EZWebdesign,
Thank you! We’ll add it to the core in the upcoming version.
Merry XMas and a happy New Year !!
Best regards,
GünterHi @BigBatT,
Thank you! We’ll add the Italian language files to the core in the upcoming version as well.
Merry Christmas and a Happy New Year !!
Best regards,
GünterHi,
Final implementation:
function avia_add_metadata_to_body_class( array $body_classes ) { global $post; if( ! $post instanceof WP_Post ) { return $body_classes; } $classes = []; if( is_singular() ) { $classes[] = 'post-type-' . sanitize_html_class( $post->post_type ); $taxonomies = get_object_taxonomies( $post->post_type, 'objects' ); foreach( $taxonomies as $taxonomy ) { $terms = get_the_terms( $post->ID, $taxonomy->name ); if( ! is_wp_error( $terms ) && ! empty( $terms ) ) { foreach( $terms as $term ) { $classes[] = sanitize_html_class( $taxonomy->name ) . '-' . sanitize_html_class( $term->slug ); } } } } /** * @since 6.0.8 * @param array $classes * @return array */ $classes = apply_filters( 'avf_metadata_to_body_class', $classes ); return array_merge( $body_classes, $classes ); } add_filter( 'body_class', 'avia_add_metadata_to_body_class', 10, 1 );
Best regards,
GünterHey Guenter,
Yes – I forgot to remove the -dev.
It is the latest production version.
I apologize for this.Best regards,
GünterDecember 2, 2024 at 1:03 pm in reply to: Compatibility Issues with Enfold Builder on PHP 8.2 and WordPress 6.7 #1472705Hi,
Thank you for sharing this.
I added it to core for next release 6.0.8.
We highly appreciate your help.
Best regards,
GünterHi,
We tried, but could not update the js file to a later version – it had seemed to be buggy and using the methods to control the animation like play, pause, .. did not work as it should. So we left it unchanged.
Checking the player today (https://developers.lottiefiles.com/) the implementation has completly changed.
We will add it to our dev repo to consider updateing the element – but we have no ETA for it yet.
Best regards,
GünterHey Ulf,
Danke für diese Info.
Wir werden diesem Thema höchste Priorität geben.
Viel Freude mit Enfold und einen schönen Tag.
Liebe Grüsse aus Wien,
GünterHi @BigBatT,
Thanks for your contributions!
Added it to core. Have a great day.
Best regards,
Günter -
AuthorPosts