Centering the 'Featured Collection' title to the center

Solved

Centering the 'Featured Collection' title to the center

dangerouslove
Visitor
3 0 0

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.

Accepted Solution (1)
tljafar
Shopify Partner
28 3 8

This is an accepted solution.

Try  justify-content: center

 

Screenshot 2022-10-01 105319.png

 

 

Shopify Developer
If our answer is helpful then please like and accept as solution! Want to modify or custom changes on Shopify store you can Hire me. Feel free to message me on Shopify | Shopify Design Changes | Custom Modifications In to Shopify Theme

View solution in original post

Replies 12 (12)

maximilllllian
Tourist
8 0 1

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;"
dangerouslove
Visitor
3 0 0

which part inside of the h2 tag should i add the code?

 

 

tljafar
Shopify Partner
28 3 8

Go to themes menu -> action -> edit code

 

tljafar_0-1663471588663.png

 

Choose sections folder -> edit featured-collection.liquid file and add style attribute in the h2 tag

 

tljafar_1-1663471704093.png

 

<h2 class="title{% if section.settings.title == blank %} title--no-heading{% endif %}" style="text-align: center;">{{ section.settings.title | escape }}</h2>

 

 

Shopify Developer
If our answer is helpful then please like and accept as solution! Want to modify or custom changes on Shopify store you can Hire me. Feel free to message me on Shopify | Shopify Design Changes | Custom Modifications In to Shopify Theme
dangerouslove
Visitor
3 0 0

i copied and pasted it and its still not working 

tljafar
Shopify Partner
28 3 8

What is your site URL?

Shopify Developer
If our answer is helpful then please like and accept as solution! Want to modify or custom changes on Shopify store you can Hire me. Feel free to message me on Shopify | Shopify Design Changes | Custom Modifications In to Shopify Theme
zosh
Excursionist
30 0 5

did you ever fix it?

Zosh
tljafar
Shopify Partner
28 3 8

This is an accepted solution.

Try  justify-content: center

 

Screenshot 2022-10-01 105319.png

 

 

Shopify Developer
If our answer is helpful then please like and accept as solution! Want to modify or custom changes on Shopify store you can Hire me. Feel free to message me on Shopify | Shopify Design Changes | Custom Modifications In to Shopify Theme
hills1
Visitor
1 0 0

hi, can't see the above lines such as H2 in my version

 

hhn21
Visitor
1 0 4

Go to themes menu > action > edit code > featured-collection.liquid file and add "center" to position as shown in image below:

help.PNG

 

    <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 %}">
Adelm
Visitor
1 0 0

This one is simple and worked for me. 

 

Thanks G

adamsmith018
Tourist
10 0 3

Screenshot 2023-11-30 at 10.33.33 p.m..png

 

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?

 

visualess
Excursionist
42 0 11

worked for me!