show <hr only when called

show <hr only when called

xnyjyh
Trailblazer
390 0 45

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
10711 1324 1699

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

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

I already fugureed this out, thank thougfh!