Forum Replies Created
-
AuthorPosts
-
Hi,
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ünterHi Jason,
I found this post: https://wordpress.org/support/topic/website-slowdown-problem/
Enfold with the ALB shortcodes has some overhead to load in php, css and js. We added the .min files for css and js on user request as HTML 5 is optimized for that. You could try this instead of the merged files.
Maybe increase of memory might also help – and use of a cache plugin and responsive images (but this you probably know/use already).
Best regards,
GünterHi,
Thank you for breaking down the problem. WP introduced class WP_Textdomain_Registry with 6.1 and this class caused the problem.
If you need a hotfix please modify enfold/functions.php:
Around line 173 you find:
if( ! function_exists( 'avia_lang_setup' ) ) { add_action( 'after_setup_theme', 'avia_lang_setup' ); function avia_lang_setup() { $lang = apply_filters( 'ava_theme_textdomain_path', get_template_directory() . '/lang' ); load_theme_textdomain( 'avia_framework', $lang ); } avia_lang_setup(); }
Replace
avia_lang_setup();
with
if( did_filter( 'after_setup_theme' ) ) { avia_lang_setup(); }
If you need help let us know and we can do it for you.
Do not forget to make a backup of the original file for a fallback.Best regards,
GünterApril 7, 2023 at 7:07 pm in reply to: Cant find how to translate “Found errors in the following fields” #1403838Hey Butterfly44,
Hi, in 5.6 it will be possible with the translation files found in /lang directory. These are either contributed by other users or you need a plugin like
https://wordpress.org/plugins/loco-translate/ to translate it by yourself.Best regards,
GünterHi,
Next release will have improved settings for some widgets in core.
See https://kriesi.at/support/topic/enfold-upcoming-fixes/Best regards,
GünterHi,
I uploaded an optimized version:
If you replace line 64:
$this->use_blog_meta_settings = false;
with
$this->use_blog_meta_settings = true;
then theme options blog layout settings are used to show/hide categories and time
Best regards,
GünterHi,
At the bottom you have the code to paste into function.php of your child theme:
/* * Snippet to replace Newsbox widget with your custom Newsbox widget * * @since 5.5 */ function custom_avf_widget_loader_widget_classes_newsbox( array $default_widgets ) { $namespace = '\\aviaFramework\widgets\\'; // Create a folder widgets in enfold-child: enfold-child/widgets $path = trailingslashit( get_stylesheet_directory() ) . 'widgets/'; // Replace link to original file with your child theme modified newsbox widget $default_widgets['newsbox'] = array( 'class' => $namespace . 'avia_newsbox', 'file' => $path . 'class-avia-newsbox.php' ); return $default_widgets; } add_filter( 'avf_widget_loader_widget_classes', 'custom_avf_widget_loader_widget_classes_newsbox', 10, 1 );
This is a modified newsbox widget with the categories:
Put this file in folder enfold-child/widgets.
It will replace the original newsbox.
If you need help please provide ftp access and we can do it for you.
Best regards,
GünterHi,
I’m afraid this is not so easy.
Lets say your product has the ID 6499.
Then in the post meta for this post_id you find meta_key:
_stock_status
This is I think the “old” field (has meta_value e.g. outofstock, instock).
For the new tax query have a look into enfold\config-woocommerce\config.php around line 2981 function avia_wc_set_out_of_stock_query_params(…)
Database tables involved are wp_terms, wp_term_taxonomy, wp_term_relationships.
To be honest, I did not dig deeper how it is set by WC. But I think you need to set the “outofstock” term to wp_term_relationships
object_id = post_id, term_taxonomy_id = term_id of “outofstock” found in wp_termsHope this helps you a little.
the only real solution is to change the import
Yes, this would be the future safest way
Best regards,
GünterHi,
I digged into the core code of WC.
With WC 3.0 the info for stock/out of stock was moved from meta data query to tax query and the meta data query was deprecated and is no longer supported by WC core.
It seems, that your import plugin does not take care of that. As mentioned above, after saving a product stock/out of stock is recognized correctly.
I think to be backwards compatible with older code WC still fills the meta data field – but this is nothing to rely on.
The only thing I can offer is to add a filter that allows you activate the meta data query instead of the tax query. This is not an option to select but you will need to add some php code we can provide you.
The preferred way would be to contact the import plugin authors that they should fix this. Or you add a script that sets the taxonomies correctly after import.
Best regards,
Günter- This reply was modified 1 year, 7 months ago by Günter.
March 5, 2023 at 5:44 pm in reply to: Einbindung von F12 Captcha/Honeypot auf der Kontaktseite #1400174Hi Alexander,
Google Maps Alternative:
WP Dashboard -> Theme Extension Tab -> OpenStreetMaps ist die Alternative. Links dazu findest Du in der description dazu
Contact Form
Eine einfache Brücke ist das numerische captcha – komplett ohne irgendwelche requests.
Borlab plugin bietet eine gute Möglichkeit für die DSGVO – da kann @Guenni007 mehr Informationen liefern.
WP Armour soll laut Beschreibung in der Bezahl Version Enfold Contact Form unterstützen – wie oben schon erwähnt.
Leider habe ich momentan dazu noch keine näheren Info.
Best regards,
GünterMarch 5, 2023 at 12:42 pm in reply to: Einbindung von F12 Captcha/Honeypot auf der Kontaktseite #1400157Hi,
Danke @Guenni007.
In WP Armour Extended (Bezahlversion) ist Enfold aufgelistet (siehe Link oben). Bezüglich der false positiv Ergebnisse sollte man mit dem Support des plugins abklären, ob es etwas mit Enfold zu tun hat.
Falls ja und sie ein Filter benötigen (oder etwas anderes), können wir das gerne einbauen.
Leider haben wir so weit ich weiss keinen Kontakt zu den Autoren – werde das aber noch abklären mit unserem Team.
Best regards,
GünterFebruary 24, 2023 at 12:09 pm in reply to: Search Results Page (avia_product_slider) – get_style_tag() on null error #1399140Hi,
Thank you for sharing the solution.
I added it to our compatibility class Avia_Relevanssi for next release 5.5
In case you want to check it please replace enfold\config-relevanssi\class-avia-relevanssi.php with
Best regards,
GünterHey Marcel,
You can search for the shortcode of the ALB contact form element in the database in table wp_posts -> post_content
Look for [av_contact or [/av_contact
Best regards,
GünterHi,
Thanks for clarify. I did not check that it is the shop banner.
For the layout of the banner check function avia_woocommerce_parallax_banner in the config file.
And/or action ava_after_main_container and the 2 handlers
avia_woocommerce_big_cat_banner
avia_woocommerce_shop_bannerBreadcrumb:
You probably will need to modify:
action woocommerce_before_main_content – handler avia_woocommerce_before_main_content
and create your own breadcrumbs using action ava_after_main_container before shop banner
using function avia_title()I hope this helps you.
Best regards,
GünterHey Tim,
I’ve uploaded a pdf with a screenshot how I see your link.
Images have scrset and sizes.
I’m a bit confused.If you want to make changes to config-woocommerce/config.php file you should stick to hooks and filters or define the functions you want to modify before our config file is loaded.
Most of the functions are wraped inif( ! function_exists( 'xxxx' ) ) { ...... }
To modify the complete file is not recommended as it might change at any time, when we find a bug or extend WC support.
Best regards,
GünterHi,
I added the following to bottom of quick CSS:
.av-video-service-youtube.av-video-events-bound .av-click-overlay{ display: none; /* @since x.x.x In fullwidth easy slider preview controls are blocked after user starts video */ }
Seems to work now.
Will become part of next release.
Best regards,
GünterFebruary 15, 2023 at 4:44 pm in reply to: Lightbox swipe feature request & Gallery navigation #1398104Hi,
thanks for this input.
Added it to our dev repo (maybe already in next release).Best regards,
GünterFebruary 14, 2023 at 5:15 pm in reply to: Lightbox swipe feature request & Gallery navigation #1397955Hi Tim,
ALB Gallery element
I’m checking it for next release.
only the closest is decisive
Yes, the last value assigned to $condition is used, in your case
$condition = ( isset( $options['header_position'] ) && $options['header_position'] == 'header_top' );
Best regards,
Günter -
AuthorPosts