Solved

How do I remove this small text

Morioo
Tourist
3 0 2

 

I copy and pasted the following code to center the "Featured" text

 

 

<h2 class="title{% if section.settings.title == blank %} title--no-heading{% endif %}" style="text-align: center;">{{ section.settings.title | escape }}</h2>

 

 

 

 And now I get this small text that mirrors whatever I type for the section heading. please help!Screenshot 2024-01-13 095852.png

Accepted Solution (1)

yashgarg
Shopify Partner
102 26 32

This is an accepted solution.

Hey @Morioo ,

 

If you are saying that you added this code to style the heading correctly, that is a mistake. 

The styling changes are CSS changes, but what you have pasted here is a new HTML heading (h2). So you have actually added a new heading in the code.

 

Maybe you can tell what styling changes you want to do to your original heading, and remove this new heading, so that I can help you correctly.

 

Thanks

Yash Garg

If this works for you, please give it a like and mark it as the solution! Thanks 🙂
Feel free to contact me for Shopify tech support
Email: yashgarg.tech@gmail.com

View solution in original post

Replies 4 (4)

yashgarg
Shopify Partner
102 26 32

This is an accepted solution.

Hey @Morioo ,

 

If you are saying that you added this code to style the heading correctly, that is a mistake. 

The styling changes are CSS changes, but what you have pasted here is a new HTML heading (h2). So you have actually added a new heading in the code.

 

Maybe you can tell what styling changes you want to do to your original heading, and remove this new heading, so that I can help you correctly.

 

Thanks

Yash Garg

If this works for you, please give it a like and mark it as the solution! Thanks 🙂
Feel free to contact me for Shopify tech support
Email: yashgarg.tech@gmail.com
Morioo
Tourist
3 0 2

Oh, ok. I just wanted to shift the original "featured" text from the left to the center

Morioo
Tourist
3 0 2

I figured it out, thanks for your help

yashgarg
Shopify Partner
102 26 32

Happy to help 🙂

If this works for you, please give it a like and mark it as the solution! Thanks 🙂
Feel free to contact me for Shopify tech support
Email: yashgarg.tech@gmail.com