Home New Guten Forums WoodMart support forum Hook snippet to relocate attribute swatches on product loop page

Hook snippet to relocate attribute swatches on product loop page

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #229953

    zurich
    Participant

    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.
    #229988

    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

    #230020

    zurich
    Participant

    Thank you!
    But my product is simple, not variable

    #230088

    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

    #230151

    zurich
    Participant

    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.
    #230391

    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

Viewing 6 posts - 1 through 6 (of 6 total)