How can I left align a featured collection title on the Dawn theme home page?

ryanmacventures
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)

EcomGraduates
Shopify Partner
588 48 77

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!

ryanmacventures
New Member
6 0 0

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

GemPages
Shopify Partner
5588 1261 1209

Hello @ryanmacventures 

 

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

GemPages_0-1671157411515.png

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

GemPages_1-1671157431940.png

 {%  if template contains 'index' %}
<style>
.shopify-section .rich-text .rich-text__blocks {
    margin-left: 5rem;
    text-align: left;
}
</style>
  {%  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

dmwwebartisan
Shopify Partner
12291 2547 3698

@ryanmacventures 

Please share your store URL!

Thanks!

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

Denishamakwana
Shopify Partner
1408 173 231

Hi,

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
ryanmacventures
New Member
6 0 0