Remove Judgeme preview badge and qa badge on product archive loop
-
I just discovered judgeme ratings for woocommerce. Thank you for such an awesome plugin. The installation was a breeze, however the star rating and count is not properly placed on the shop archive loop of my theme, oceanwp.
I have placed it at the bottom of the product archive loop (https://scentsng.com/shop) using the hooks guide of oceanwp
add_action( 'ocean_after_archive_product_inner', array( 'JGM_Widget', 'judgeme_preview_badge' ), 5 );However, the actions below don’t seem to work on my theme.
I also noticed the same issue in the single product page. Please, how I can remove the action on the archive loop?remove_action( 'woocommerce_single_product_summary', array( 'JGM_Widget', 'judgeme_preview_badge' ), 9 ); //this didnt remove the judgeme_preview_badgeremove_action( 'woocommerce_after_shop_loop_item_title', array( 'JGM_Widget', 'judgeme_preview_badge' ), 5 ); //this didnt remove the judgeme_preview_badgeremove_action( 'woocommerce_archive_description', array( 'JGM_Widget', 'judgeme_preview_badge' ), 9 ); //this didnt remove the judgeme_preview_badgeremove_action( 'woocommerce_before_shop_loop_item', array( 'JGM_Widget', 'judgeme_preview_badge' ), 9 ); //this didnt remove the judgeme_preview_badgeremove_action( 'woocommerce_shop_loop_item_title', array( 'JGM_Widget', 'judgeme_preview_badge' ), 9 ); //this didnt remove the judgeme_preview_badgeremove_action( 'woocommerce_after_shop_loop_item_title', array( 'JGM_Widget', 'judgeme_preview_badge' ), 9 ); //this didnt remove the judgeme_preview_badgeremove_action( 'woocommerce_after_shop_loop_item', array( 'JGM_Widget', 'judgeme_preview_badge' ), 9 ); //this didnt remove the judgeme_preview_badgeremove_action( ‘woocommerce_after_shop_loop’, array( ‘JGM_Widget’, ‘judgeme_preview_badge’ ), 9 );
remove_action( 'woocommerce_after_main_content', array( 'JGM_Widget', 'judgeme_preview_badge' ), 9 ); //this didnt remove the judgeme_preview_badgeremove_action( 'woocommerce_before_main_content', array( 'JGM_Widget', 'judgeme_preview_badge' ), 9 ); //this didnt remove the judgeme_preview_badgeNone of the above hooks could remove the judgeme_preview_badge
Also, I have activated question and answers on Judge.me, I’d like to know if there’s a function to disable the jdgm-qa-badge in the archive loop when there’s no question tied to the product? for now, I can use CSS to hide it completely, but I want it to display conditionally.
.jdgm-qa-badge { display: none; }- This topic was modified 6 years, 8 months ago by .
- This topic was modified 6 years, 8 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Remove Judgeme preview badge and qa badge on product archive loop’ is closed to new replies.