Text Alignment Home Page

New Member
6 0 0

On the dawn theme how can I left align a featured collection title/heading on my home page. I'd like both lines of text to the left. Picture shows centered text for reference. Thanks. Screenshot (103).png

Replies 6 (6)
Shopify Partner
477 37 52

Hello there  

To align a title in HTML, you can use the style attribute and set the text-align property to the desired alignment value. For example:


<h1 style="text-align: center;">This is a centered title</h1>


This will center the title on the page. You can also use the align attribute to align the title, like this:


<h1 align="center">This is a centered title</h1>


Both of these methods will work to align the title on the page. Keep in mind that using the style attribute is considered best practice, as it allows you to control the styling of the element using CSS, rather than using old-fashioned HTML attributes.

hope this helps!

You have a business to run. Let us handle the theme.
114+ ★★★★★ star reviews
Check Out Our New Theme -Ecomify
Do you need help building a brand?
New Member
6 0 0

Under what heading and sub-heading of 'Edit Code' will I apply that to?

Shopify Partner
5502 1231 1008

Hello @ryanmacventures 


You can follow these steps: 
1. Go to Online Store->Theme->Edit code


2. Open your theme.liquid file, paste the below code before </body>


 {%  if template contains 'index' %}
.shopify-section .rich-text .rich-text__blocks {
    margin-left: 5rem;
    text-align: left;
  {%  endif %}

I hope the above is useful to you.

Kind & Best regards, 
GemPages Support Team

GemPages - Build any high-converting store pages for any business

- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center
Shopify Partner
11327 2417 3483


Please share your store URL!


If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com |  Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | #1 Product Filter & Search app on Shopify | The most powerful Shopify page builder app
Shopify Partner
1321 164 213


Please share your store URL and if your store is password protected then also provide password too.

Thank you.

If helpful then please Like and Accept Solution. Want to modify or custom changes on store Hire me. Feel free to contact me on denishabhensdadiya@gmail.com | Shopify Design Changes | Custom Modifications In to Shopify Theme