Forum Replies Created
-
AuthorPosts
-
Hi,
Hm, strange. I also tested on a live site on an All-Inkl server. See private content.
It is also not in HTML source.Best regards,
GünterHi,
I do not see an easy way.
loop-search.php uses the default WP loop in a while statement.
Would mean you have to resort the search results query first before starting the while loop and then add the “group” changes in the loop.
You also have to consider pagination (which does not exist in ajax search).
Best regards,
GünterHey Tom,
Sorry for this.
Please update to 5.6.1 released this morning. This should fix the problem.
Best regards,
GünterHey Guenter,
How can I reproduce this? I tried it on a local install with ALB Textblock switching from visiual to text.
Best regards,
GünterHi,
You can also follow the upcoming fixes / changes here:
Best regards,
GünterHi,
In 5.6.1 the second solution is implemented:
$posttype = get_post_type( $the_id ); $post_class .= 'posttype-' . $posttype . ' ';
Best regards,
GünterHi,
In next version 5.6.1 there is an updated filter with more parameters:
Best regards,
GünterHey Guenter,
Yes. Very simple test implementation only:
function custom_avf_combo_box_image_size( $size, $args ) { return 'full'; } add_filter( 'avf_combo_box_image_size', 'custom_avf_combo_box_image_size', 10, 2 );
If not, please provide a link to the site so we can see setup in backend.
Best regards,
GünterMay 3, 2023 at 5:18 pm in reply to: 5.6 vs 5.5 upgrade breaks site – functions.php avia_lang_setup(); #1406363Hi,
Fix above is not working properly.
Meanwhile please stick to the fix from @stop0bit.Next release will contain a better solution.
Best regards,
GünterMay 3, 2023 at 11:56 am in reply to: 5.6 vs 5.5 upgrade breaks site – functions.php avia_lang_setup(); #1406327Hi,
Sorry for the problem and for reporting this.
The final fix will be:
if( function_exists( 'did_filter' ) && did_filter( 'after_setup_theme' ) ) { avia_lang_setup(); }
We had to add this check with 5.6 to avoid double calling of avia_lang_setup which results in a large hit in WP object cache since WP 6.1 (due to new added class WP_Textdomain_Registry).
Best regards,
GünterHey Guenter,
Can you try to add to body tag class avia-mobile-no-animations:
let body = document.getElementsByTagName('body'); body[0].classList.add('avia-mobile-no-animations');
Best regards,
GünterHi,
Definition of is_tax():
I would say yes, this should be the way (but I did not test it).
Best regards,
GünterHi,
Sorry for the late reply.
To modify the main query for archive you can use the pre_get_posts filter. An example how we use it to modify the search query is here:
For the ALB blog element we have the filter avia_blog_post_query.
Hope this helps you.
Best regards,
GünterHi,
Have a look in our theme options page -> Performance -> Responsive Images (check it) -> Image Thumbnails Info
There you have an overview of the registered image sizes and if they are registered by Enfold.
You can also have a look in enfold/functions.php around line 264ff and filter ‘avf_modify_thumb_size’ to deregister file sizes not needed.
Hope this helps you.
Best regards,
GünterHi,
It will be in 5.6, which should be released in the next days.
If you need it before you find the latest translation files here: https://github.com/KriesiMedia/enfold-language-files
But keep a copy of the old files for a fallback.
Best regards,
GünterHi,
Solution will be in 5.6.
Use filter ‘avf_search_result_layout’ and return ‘grid’.
Above changes to custom.css are no longer necessary.
Best regards,
GünterHi,
I made the following modifications to your core theme files:
search.php (line 55):
global $wp_query; $atts = array( 'type' => 'grid', // 'post_type' => [ 'attachment' ], 'items' => get_option('posts_per_page'), 'columns' => 3, 'class' => 'avia-builder-el-no-sibling', 'paginate' => 'yes', 'use_main_query_pagination' => 'yes', 'wp_query' => $wp_query ); /** * @since 4.5.5 * @return array */ $atts = apply_filters( 'avf_post_slider_args', $atts, 'search' ); $blog = new avia_post_slider( $atts ); // $blog->query_entries(); echo '<div class="entry-content-wrapper">' . $blog->html() . '</div>';
enfold\config-templatebuilder\avia-shortcodes\postslider\postslider.php (line 566):
$this->entries = isset( $atts['wp_query'] ) && $atts['wp_query'] instanceof WP_Query ? $atts['wp_query'] : array();
and to custom.css:
.template-search .post-entry{ clear: unset; }
Can you have a look at it please.
Best regards,
GünterHi Tim,
I’m afraid there is no easy way at the moment. The whole HTML for the gallery is managed by WC. If you activate a standard theme like twenty twenty three you also only get the maximum image.
But I will keep it in mind for future.
Best regards,
GünterHey Garrfild,
Translations are provided by users on contribution base (https://github.com/KriesiMedia/enfold-language-files).
Nevertheless I updated it to “Vorher” for the next release which is planned for next week.
If you need it before you can use a plugin like https://wordpress.org/plugins/loco-translate/ and search for your “Vorangegangen”
Best regards,
GünterHi Jason,
Thank you for coming back.
I agree that this is getting an important feature and I have put this on top of my to do list with a high priority. Though it has heavy impact on the existing code and it will take some time.
I will try to have a first implementation for 5.7 (starting with standard WP custom fields and then ACF elements step by step).
I hope this gives you a roadmap for near future and allows you to stay with Enfold.
Best regards,
GünterHey Tim,
Sorry for the late reply again.
This is caused by WC core limiting the sizes attribute to the image size you select.
In 5.6 I remove the sizes attribute when opening the lightbox – so the max image size is always used. This is actually a hack but I do not see another workaround.
I added filter ‘avf_wc_30_gallery_lightbox_use_max_image_size’ to remove this hack again.
Meanwhile what you can do:
In enfold\config-woocommerce\woocommerce-mod.js around line 27 you find:
img.trigger('click');
Replace this with:
let img_tag = img.find( 'img' ).eq(0); if( img_tag.length ) { img_tag.removeAttr( 'sizes' ); } img.trigger('click');
As also mentioned in previous post you need to minify this file when using minified or merged js (=> woocommerce-mod.min.js)
Best regards,
GünterHey Tim,
Sorry for the late reply.
The underlying js for the search icon behaviour can be found in enfold\js\avia.js line 69:
new $.AviaTooltip({ …..
and line 90:
new $.AviaAjaxSearch({scope:’#header, .avia_search_element’});
As far as I see there is no easy way to remove this without hacking core js. If you do this and use minify or merged files you need to minifiy this js file again (or make a copy of unminified and name it avia.min.js
You could try to rename the class avia-search-tooltip and remove data-avia-search-tooltip on pageload before avia.js is executed.
Or remove the HTML completly and insert your own icon HTML and bind this to your js (which seems to be the easiest and clean solution for me).Hope this helps you.
Best regards,
GünterHi,
I’ve been tagged on this topic recently. I’ve not been using ACF up to now but I installed the free plugin to get an idea what it does. And I also had a look how Elementor handles it (https://elementor.com/help/elementor-acf/).
The problem is not to display the custom fields (which is actually only post meta data to read) but the overall integration of custom post types, taxonomies and how to display it.
It is possible to use our Advanced Layout Builder for custom post type “posts” (as we do already for the portfolio) but this is only for one post and (currently) not reuseable.
What you are looking for is to design a template (with the ability to show custom meta data) which is reused for other posts. And this for single post and multiple posts (blog).
This at the moment is only possible by creating or editing the underlying php template files using the default WP routing.
I will add this as a feature request to our dev repo and will keep an eye on it.
Best regards,
Günter -
AuthorPosts