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.
Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024Digital marketers and app developers have tracked activity in apps and websites for yea...
By Ollie Mar 13, 2024February was an exciting month with Shopify Editions, informative webinars, and more! F...
By JasonH Mar 7, 2024