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
Hello. This code worked for me but only for the "Latest Arrivals" which is a featured collection. The "Brands" is a collection list & it didn't work. Is there a way to fix this?
worked for me!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024