Shortcode not working on Elementor Loop Grid Widget. Update suggestion.
-
On this page: https://quadlayers.com/documentation/perfect-woocommerce-brands/shortcodes/
On the Display brands of a specific product shortcode [pwb-brand], we tried using it on Elementor’s loop grid widget but the brand is not showing. The brand image is not showing for the products inside the loop so we checked how the plugin is displaying the product.Apparently, the shortcode only works on single pages and the only way for this to work is to override the plugin’s template here: plugins/perfect-woocommerce-brands/lib/shortcodes/class-brand.php. Then modify line 22 from this
if ( ! $atts[‘product_id’] && is_singular( ‘product’ ) ) {
to this
if ( ! $atts[‘product_id’] ) {
removing the condition is_singular(‘product’) to make it work on loop grid widget of elementor.
We would like to suggest that you update this so that the shortcode would also work on custom shortcode loops.
For now, our work-around is to update this php file every update of the plugin and this is very hard for me and my client.
Your response for this will be much appreciated. Thank you very much.The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.