Forum Replies Created
-
AuthorPosts
-
Hey what version of Enfold are you using.
Woocommerce changed the way the cart fragments work in version 7.8.
This was fixed in Enfold 5.6.3
The latest Enfold release 5.6.6 is a stable release. Please update to the latest version and this should fix the issue.
Thanks Mike,
This has worked.
To get the elements the same height I have given them a minimum height via CSS.
Thank you for your help.
Hi Mike,
WHen using the ALB Blog Posts element > Set it to grid > set it to show title, excerpt and read more button.
Because this code shortens the excerpt and the div containing the read more button is within the excerpt this code removes the read more button as well as shortening the excerpt.
Is there a way to preserve the read more button?
Hi Mike,
Thank you for this. I can confirm it shortens the excerpt but the filter is stopping the read more button from generating.
Is there a way to fix this?I have added a CSS class to add some dots after the content so it doesnt suddenly end.
.slide-entry-excerpt::after { content:'...'; }
Is it possible for you to update the snippet?
Hi guys
Can you confirm that the filter for the blog post element set in grid mode still works?
I have a client asking me to shorten the excerpts and I cannot get the filter to work in 5.6.5
add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1); function avia_change_postgrid_excerpt_length($length) { $length = 100; return $length; }
I am using the grid style blog posts ELEMENT on the home page with title and excerpts turned on.
- This reply was modified 1 year, 4 months ago by thinkjarvis.
Thanks Yigit
See comments belowNo problem,
Thanks again for finding a solution to this – really happy with this. I used to use an old script for adding SKUs to the default search however it now uses depreciated code (and it was a slow query) so this is a much better solution.
Can the documentation be updated with the new snippet/filter once 5.6.6 gets released?
There are a few highly ranking Enfold forum entries with the incorrect solution on them. If they are still open to comment I’ll add the new solution to the posts once 5.6.6 is released.
Thanks Gunter,
The main reason for using Relevanssi for me was a speed improvement (where the SKU is included in the search). Relevanssi creates its own search index which helps keep the lookups quick.
I now have a couple of extremely large woocommerce sites with Enfold that are all running extremely smoothly so Relevanssi is a natural progression to improve search.
I’ve figured out what it is doing.
I am happy with the results please add the filter.Hi Gunter,
The filter works as expected when the standard search layout is used – but has thrown another problem.
Please add the filter it is a good solution.I have customised the searchform.php file adding:
<input type=”hidden” name=”post_type” value=”product”>
into the <form> tags.This is causing the search to show different results to the ajax search.
Any idea how I can bring the two into alignment?The search query changes from
/?s=samsung
to
/?s=samsung&post_type=productHi Gunter,
Sorry crossed wires here.
I have updated my response to your original post.
The second fix enfold\config-relevanssi\class-avia-relevanssi.php seems to workHowever both of your suggestions cause the ajax search to have different results to the search page.
BUT
The longer and more specific the search term – The less this is a problem.I have changed the value to 25 in class-avia-relevanssi.php and also used the css below to control the size of the dropdown:
.ajax_search_response { max-height: 300px; overflow-y: scroll; }
Hi Gunter,
That works. But the theme developer is suggesting a better way to do this.
https://wordpress.org/support/topic/limit-ajax-search-to-5-posts/#post-16938764Although this works
It means the Ajax search results are a lot less accurate so it isnt perfect but at least it gives much better control over the ajax and increases the speed.
Setting this to 25-50 seems to improve the search accuracy on the site I am using it on.- This reply was modified 1 year, 4 months ago by thinkjarvis.
- This reply was modified 1 year, 4 months ago by thinkjarvis.
- This reply was modified 1 year, 4 months ago by thinkjarvis.
I have no Enfold specific issues to report at the moment. All seems fine.
WP Scalability can add bespoke settings to their plugin though to benefit specific themes. They already have some custom settings that only apply to certain popular themes so not sure if there is anything else they can do to support Enfold specifically. So possibly worth joining the Discord or getting in touch with WP Intense to see what they are offering theme developers.
Thanks Gunter,
See below
Thanks Gunter. I can confirm that this patch has worked as expected on the test server.
July 10, 2023 at 5:52 pm in reply to: Remove items from default WooCommerce Dropdown filter #1412971Thanks Gunter,
Works as expected:
The working filters are below for functions.php
For other users comment out the lines that you dont want to remove.
NOTE If you comment out default – It causes a PHP error. So please keep default enabled.
// remove unused woo filters add_filter( 'avf_wc_product_order_dropdown_frontend', 'thinkjarvis_remove_sorting_option_woocommerce_shop' ); function thinkjarvis_remove_sorting_option_woocommerce_shop( $product_order ) { unset( $product_order['default'] ); unset( $product_order['menu_order'] ); unset( $product_order['title'] ); unset( $product_order['price'] ); unset( $product_order['date'] ); unset( $product_order['popularity'] ); unset( $product_order['rating'] ); unset( $product_order['relevance'] ); unset( $product_order['rand'] ); unset( $product_order['id'] ); return $product_order; }
- This reply was modified 1 year, 5 months ago by thinkjarvis.
- This reply was modified 1 year, 5 months ago by thinkjarvis.
Thanks Nikko,
Also reported the same issue.
I downgraded the site experiencing issues to 7.7.2 to restore functionality.https://kriesi.at/support/topic/compatibility-issue-woocommerce-7-8-cart-fragments/
Old releases of Woocommerce can be downloaded here:
https://developer.woocommerce.com/releases/Hi Gunter,
Thank you for this – There is no rush by the way I have just coded a workaround. It would help on several projects to be able to customise the titles of these links as I often use them for geographic locations and specific services.I’ll put a link in the private content to the test area for my current solution.
I’ve essentially created an Enfold Text box with a- list. I’ve then used css :before to show an icon before the text.
I’ve also added flex so I can put a column within a column.- This reply was modified 1 year, 7 months ago by thinkjarvis. Reason: extra info
Hi Yigit,
Really sorry about this – I think it is down to the way the categories are being ordered in the database.
Caused by WPAllImport Plugin.
I think I am going to have to manually re-order the categories in a WooCommerce CSV and re-upload them in the correct order.
Removing all categories and adding them again is still causing them to list in the wrong order in the Category field.I have no idea why. Even alphabetically the one it is picking shouldnt be the first!
I’ll do some more investigation work. But I now dont think it is caused by Enfold.
If I find anything that would lead me to suspect it is Enfold I’ll share more info on this post.See private data
This appears to have solved the problem thanks Gunter.
I have moved on from Key CDN and it looks like I will be using Stack Path as my CDN partner for all sites on my servers that require it.
This fix will also apply to any Edge Caching setup. Thank you for providing a fix.
You may close this issue.
February 2, 2023 at 10:41 am in reply to: Use custom post type to enable layout editor on category pages #1396363Thanks Ismael,
Redirects will be easier but I will probably create a custom post type so that I can organise the new pages more easily.I was looking for a way to preserve the category structure. Technically I think it is possible the way I have suggested but it relies on a lot of components so could become unstable if one of the plugins used is then no longer supported.
I’ll start with redirects for simplicity and a custom post type.
add_action('after_setup_theme', 'update_enfold_image_sizes'); function update_enfold_image_sizes() { add_image_size ('shop_thumbnail', 200, 0, false ); add_image_size ('shop_catalog', 450, 0, false); add_image_size ('shop_gallery_thumbnail', 300, 0, false); }
Found it.
I have a content partner providing imagery for thousands of products and they are all poorly cropped so i am trying to make it so that they will display correctly without having to be re-sized to a specific aspect ratio. I’ll share my solution on my other thread.
January 8, 2023 at 5:20 pm in reply to: Full list of unmerged CSS and JS files – WP-Rocket Exclusions List Creation #1377989@mike This will also help anyone using Flying Scripts as I believe this works in reverse? Where you have to specify the files you want to include rather than exclude.
January 8, 2023 at 5:10 pm in reply to: Full list of unmerged CSS and JS files – WP-Rocket Exclusions List Creation #1377988@mike totally forgot that I could do that thank you for getting back to me so soon!
I’ll go through the list and see if I can resolve the issue with shortcodes.js
I have a feeling that since the turn off animations on mobile devices was added as an option in Enfold > Performance – That this might be the cause of the issues I have encountered with the WP-Rocket official Enfold exclusions list. The instructions for Enfold have not changed for some time now and when I checked the line of code in shortcodes.js causing the issue it related to turning off mobile animcations.
Once I’ve done some testing I’ll update the ticket.
Hi Gunter,
Thanks I thought this was the case. It’s a good solution I have no complaints – The risk of breaking sites is too high I agree.
I’ll move people over as I go through their sites.
Thanks Gunter,
Happy New Year!
This problem will occur with all asset CDNs so really pleased with the fix above. Thank you for looking into this.
I’ll be looking at this again properly in a few weeks – Likely after 5.4 is launched.
My trial of Key CDN ends this week. I have decided to look for an alternative – The TTFB is actually a lot slower on the CDN resources than just using the server direct. I was also getting issues where KeyCDN refused to serve critical assets (Cache Miss) so I do not think it is the right solution at this stage. Moving on to Bunny CDN and Stack Path next. Trying to avoid CloudFlare because it is expensive at enterprise level.
I think I’ll end up using StackPath EdgeCaching or the new Bunny CDN Permacache. This means a copy of the entire site is held on their network not just static assets. Soves a cache miss problem and improves TTFB times globally because HTML gets cached. This is simillar to how CloudFlare works when used at DNS level. The irony is that my server here in the UK is outperforming a clients server over in America where they use WPEngine and CloudFlare. I get comparable global TTFB scores without a CDN – With the TTFB scores being much much better in the UK due to server location. So I do not think it is as good as people make out.
If after my trials I am still seeing cache misses and worse TTFB scores. I’ll just use something like AnyCast DNS to improve DNS resolution times instead and leave CDNs alone until I have a client who requires globally equal TTFB scores.
- This reply was modified 1 year, 11 months ago by thinkjarvis.
December 9, 2022 at 12:50 pm in reply to: x remove button in cart filled up and not showing properly #1375672I have also raised a ticket about this issue.
Solution/workaround is here.
https://kriesi.at/support/topic/bug-icons-misson-on-cart-page/It has been added to version 5.3 as a fix.
I hope this helps.
Thanks Yigit,
I’ll wait for the release now as I have put my css workaround across the server.This is one of those weird problems that no one has reported until now. I dont know how long this has been an issue because in order to troubleshoot it you have to take specific actions in the basket that most people wouldnt test – including me! Thank you for addressing the issue. It definitely pre-dates WP6 and Enfold 5.1.
Hopefully this thread will be useful to anyone else on older versions as well.
- This reply was modified 2 years ago by thinkjarvis.
-
AuthorPosts