All things Shopify and commerce
Hello could someone help me align the 'featured collection' heading to the center as in dawn theme 6.0 it comes already aligned to the left and theres no option or tutorial to change it to the center.
Solved! Go to the solution
This is an accepted solution.
Try justify-content: center
In your featured-collection.liquid file, search for the h2 tag:
<h2 class="title {{ section.settings.heading_size }}">{{ section.settings.title | escape }}</h2>
and inside of the h2 tag add the code
style="text-align: center;"
which part inside of the h2 tag should i add the code?
Go to themes menu -> action -> edit code
Choose sections folder -> edit featured-collection.liquid file and add style attribute in the h2 tag
<h2 class="title{% if section.settings.title == blank %} title--no-heading{% endif %}" style="text-align: center;">{{ section.settings.title | escape }}</h2>
i copied and pasted it and its still not working
What is your site URL?
did you ever fix it?
This is an accepted solution.
Try justify-content: center
hi, can't see the above lines such as H2 in my version
Go to themes menu > action > edit code > featured-collection.liquid file and add "center" to position as shown in image below:
<div class="collection__title title-wrapper title-wrapper--no-top-margin page-width center{% if show_mobile_slider %} title-wrapper--self-padded-tablet-down{% endif %}{% if show_desktop_slider %} collection__title--desktop-slider{% endif %}">
This one is simple and worked for me.
Thanks G
User | RANK |
---|---|
48 | |
46 | |
39 | |
28 | |
20 |
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023