-
AuthorPosts
-
September 17, 2020 at 8:56 pm #1246595
Hi there
Been a few years since i last posted. I am running enfold 4.7.6.1 and everything appears fine up until you select a facet on the left hand nav. Once selected the quantity buttons disappear (+/-)
https://jaycor.staging.wpengine.com/products/
Before selecting a facet
http://ibb.co/XX35yPfAfter
http://ibb.co/CBBDQhkI did check with the plugin developer and their response was :
It looks like those + / – buttons are loaded by JS on page load rather than being in the HTML, so whatever that JS is needs to be re-run on facet’s refresh when filters are selected.
Since this is usually theme or plugin specific, it would help if you would also ask your theme’s support.
Here is the explanation you can share with them from our docs:
Some plugins and themes use JavaScript to modify the layout, load images, or apply animation effects. Some examples include masonry layouts, isotope, image lazy loading, and sliders. These scripts run on page load, but do not usually run after each FacetWP ajax refresh, meaning that they’ll likely need to be manually re-triggered within a facetwp-loaded event.
Ask their support what JavaScript from their theme (or plugin) is needed to re-trigger the layout.
Please can you assist?
-
This topic was modified 5 years, 1 month ago by
interfacemedia.
September 18, 2020 at 1:04 pm #1246804I think i got it.
In enfold/config-woocommerce/woocommerce-mod.jsI added the line
$( document ).on( 'facetwp-loaded', avia_apply_quant_btn );after here
$('body').on( 'wc_fragments_refreshed', avia_cart_dropdown_changed );And it seems to have resolved the issue.
September 19, 2020 at 9:49 am #1246979 -
This topic was modified 5 years, 1 month ago by
-
AuthorPosts
- You must be logged in to reply to this topic.
