show <hr only when called

show <hr only when called

xnyjyh
Trailblazer
342 0 29

Hello, i want to use the Custom Liquid block on the product page for dawn theme. I am using it for another area for the product page. It already has a <hr tag like this when custom liquid block is used...

{%- when 'custom_liquid' -%}
              {{ block.settings.custom_liquid }}
<hr class="title_space" style="background-color:#ebebeb; margin-bottom: 25px!important;">

But for the new custom liquid block, I do not want the <hr line tag. How can I use it again but not have the <hr for the next? Can I duplicate the custom liquid in the backend coding? or use an %if statement somehow?

 

Please help, thanks!

Replies 2 (2)

suyash1
Shopify Partner
9773 1213 1550

@xnyjyh - the above code is in the theme file or is it in the customizer? 

To build shopify pages use pagefly | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30. | Support me
xnyjyh
Trailblazer
342 0 29

I already fugureed this out, thank thougfh!