Home Forums WoodMart support forum Conditional content

Conditional content

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #697819

    pudelis
    Participant

    Is there option to add custom text conditional logic into single product layout? for example we use single product layout, but for some categories we need only one text block conditionally to show on products.

    #697908

    Hello,

    Create a separate Single Product Layout specifically for the categories where you want to display the custom text.

    1. Navigate to Layouts > Single Product Layout.
    2. Create a new layout.
    3. In the layout settings, scroll down to Conditions, assign the layout to the specific product categories where this text should appear.
    4. Add your text block inside this layout.

    This way, the text will only show for products in those selected categories, and your main layout will remain unchanged for all other products.

    Here is our documentation on how to use Layouts in our theme: https://xtemos.com/docs-topic/woodmart-woocommerce-layout-builder/

    Best Regards,

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