Hook snippet to relocate attribute swatches on product loop page
-
Hi! Great theme!
Can you provide to me the hook to move only attribute swatches above title?
Attachments:
You must be
logged in to view attached files.
Hello,
You do not need any hooks this is configured in the settings.
In order to deactivate the attribute on the product image, navigate to Products > Attributes > enter the attribute and disable “Show attribute label on products”
In order to show the swatches in the grid, please follow this instruction: https://xtemos.com/docs/woodmart/variable-products-swatches/
Best Regards
Thank you!
But my product is simple, not variable
Hello,
In order to show the swatches on the grid you need variable products. There is no option to show swatches for single products.
Best Regards
I see what you don’t have this option, in this case i asking you to share the list of hooks to customize it. You have containers in this hook – attribute-label and product-label. I want to relocate attribute-label next to product title. I don’t want to use css for it. Thank you!
Attachments:
You must be
logged in to view attached files.
Hello,
You need to find this file: woodmart/inc/integrations/woocommerce/template-tags.php and edit this function:
woodmart_get_product_attributes_label()
woodmart_product_label()
add_filter( 'woocommerce_sale_flash', 'woodmart_product_label', 10 );
Best Regards