center description for collection (motion theme)

center description for collection (motion theme)

sondreskskfsghj
Tourist
41 0 2

I've been trying to get this text centered, but no suggestions have worked

sondreskskfsghj_0-1675886836255.png

this store has it working (https://123presets.store/)

sondreskskfsghj_1-1675886869260.png

my store: https://8c2dd1-3.myshopify.com/collections/best-sellers 

 

This is the code that changes it for that site: 

sondreskskfsghj_2-1675886943002.png

but when i copy it, i cant make it work?

 

any suggestions?

 

 

 

Replies 4 (4)

Muhammad_Ali_S
Shopify Partner
669 122 185

@sondreskskfsghj 
Step 1: Go to Online Store->Theme->Edit code
Step 2: Asset->/theme.css->paste below code at the bottom of the file

.collection-description {
   margin: 0 auto;
}
.collection-description .enlarge-text {
   text-align: center;
}

 

Ali Shahzad | Designer | Developer
- Was my reply helpful? Click Like and Accepted Solution to let me know!
- Feel Free to Contact | Whatsapp +92 3486775142

PageFly-Victor
Shopify Partner
7865 1786 3131

Hi @Sondreskskfsghj,

 

You can try this code by following these steps: 

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.css.

Step 3: Paste the below code at bottom of the file -> Save

 

 

.collection-description {
max-width:750px !important;
margin:auto !important;
text-align:center !important
}

 

 

Hope my solution works perfectly for you!

Best regards,

Victor | PageFly

 

GemPages
Shopify Partner
5625 1262 1278

Hi @sondreskskfsghj,

 

Glad to support you today.

 

You can check out my suggestion below to get your concern resolved:

 

1. Go to Edit code on Online Store:

 

GemPages_0-1675924488179.png

 

2. add my code  above the </body> tag on Theme.liquid:

<style>
	body.template-collection .collection-description {
		max-width: 100% !important;
		text-align: center !important;
	}
</style>

 

I hope you find the answer helpful.

Kind & Best regards,
GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center

INA_MSWEB
Shopify Partner
1281 144 168

Hi @sondreskskfsghj 


I hope you are doing good and welcome to the Shopify Community!
I am Santanu from MS Web Designer (Top Rated Shopify Certified Experts and eCommerce Consultant from Singapore).

Please add this css in your bottom of the css file:

 

.template-collection .collection-description {margin: 0 auto;}

.template-collection .collection-description .enlarge-text {text-align: center;}




Regards,

Santanu

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: hi@mswebdesigner.com
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin