Forum Replies Created
-
AuthorPosts
-
September 25, 2023 at 6:00 pm in reply to: Bug: additional class for blog page nested pagination #1420316
Thanks Gunter,
That sounds great.
September 25, 2023 at 5:40 pm in reply to: Bug: additional class for blog page nested pagination #1420314Thanks Gunter, I wasnt expecting this so fast.
Just checking this only needs to apply to the blog page not all pages. Otherwise the infinite scroll may try to apply its settings to the wrong content?
September 25, 2023 at 2:42 pm in reply to: Bug: additional class for blog page nested pagination #1420286Hi Gunter,
Thank you for looking into this – I thought this might be the case.The problem is it is looking for a single selector (Unless I am mistaken). So I cannot populate the box in the plugin with a class containing more than one selector – Just comma seperated single selectors.
So I will need to add a filter to add a class to <main> on line 34 in Main Template (index.php)
OR
If you are able to add a class to this like blogloop or something that has no other function I could use that to exclude. The worry is another dev will come and remove the css for not having a purpose at a later date so a filter would probably be better.This allows for full compatibility with Auto Infinite Scroll.
This particular site is one of three extremely large ecommerce sites I am working on. Two of which have Auto Infinite Scroll installed to speed up index pages.
Paginated pages dont get preloaded by WP-Rocket or appear on yoast sitemaps so this was a way to cache as many pages as possible within a 116,000 product store.
I’ll share a screenshot of what is happening my end. Will send over tomorrow.
Looks like the Enfold demo is still running 5.4 so the cart fragments bug wont have been fixed.
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, 5 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, 6 months ago by thinkjarvis.
- This reply was modified 1 year, 6 months ago by thinkjarvis.
- This reply was modified 1 year, 6 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, 6 months ago by thinkjarvis.
- This reply was modified 1 year, 6 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, 8 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.
-
AuthorPosts