Shopify themes, liquid, logos, and UX
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.
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!
Under what heading and sub-heading of 'Edit Code' will I apply that to?
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' %}
<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
Please share your store URL!
Thanks!
Hi,
Please share your store URL and if your store is password protected then also provide password too.
Thank you.
User | RANK |
---|---|
241 | |
163 | |
64 | |
55 | |
46 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023