FROM CACHE - en_header

Justify Text - Dawn Theme

Solved
driedfloralart
Tourist
9 0 3

Hi there,

I'm wondering how to jusify the text on my pages in the Dawn theme? I've seen similar questions posted in the forum for other themes, and have tried adding different codes but haven't had any luck. 

My website is https://ferngroveflorals.myshopify.com

Accepted Solution (1)

Accepted Solutions
dmwwebartisan
Shopify Partner
10768 2345 3342

This is an accepted solution.

@driedfloralart 

Please Go to Online Store->Theme->Edit code then go to assets/base.css ->paste below code at the bottom of the file.

.rte>p {
    margin-top: 0;
    text-align: justify !important;
}

Thanks!

 

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →

View solution in original post

Replies 18 (18)
dmwwebartisan
Shopify Partner
10768 2345 3342

This is an accepted solution.

@driedfloralart 

Please Go to Online Store->Theme->Edit code then go to assets/base.css ->paste below code at the bottom of the file.

.rte>p {
    margin-top: 0;
    text-align: justify !important;
}

Thanks!

 

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
Zworthkey
Shopify Partner
5581 642 1508

Hii, @driedfloralart 
Paste this code on top of the base.css file.

.rte>p {
    text-align: justify !important;
}

Thank You.

driedfloralart
Tourist
9 0 3

Thank you 🙂 

The text on the Pages in the About Menu ("About Us" , "Our Services") looks great, however the text in the product descriptions still appears left aligned. Can this text also be Justified?

I'm also wondering if there's also workaround where I can opt to keep some fields as they were before, namely the Home Page Rich Text Description.

dmwwebartisan
Shopify Partner
10768 2345 3342

@driedfloralart 

Please Go to Online Store->Theme->Edit code then go to assets/base.css ->paste below code at the bottom of the file.

.product__info-container>div {
    margin: 1.5rem 0;
    text-align: justify !important;
}

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
driedfloralart
Tourist
9 0 3

Thanks - tried this and the text still displays as left aligned in product description. Should I delete the previous Justify code that you recommended?

dmwwebartisan
Shopify Partner
10768 2345 3342

@driedfloralart 

No, Please share screenshot what do you want !

Thanks!

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
driedfloralart
Tourist
9 0 3

Just noticed that the product images are now out of alignment, and show the edge of the next product image

 

driedfloralart_0-1634820560424.png

 

driedfloralart
Tourist
9 0 3

 

Essentially I'm looking to have paragraphs of text display as Justified. The below is a screenshot of the text as it appears in the product descriptions - Instead of left aligned I'd like it to display as Justified. I think the code(s) you've given me work really wel for the text on the pages but not for the text in each product description. 

driedfloralart_1-1634821019878.png 

 

 

 

oscprofessional
Shopify Partner
12191 1890 2429

Hey @driedfloralart 

You can try this code

media screen and (max-width: 749px) {
.grid--peek .grid__item:first-of-type {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
}

 

Please Like and Accept Solution. Free website audit to grow your business Chat on WhatsApp | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87 | Hire us | Expert Site Speed Optimization | Performance Site Audit | Shopify Private App | Custom Theme Development & Modifications any Shopify Theme | Shopify SEO | Digital Marketing
oscprofessional
Shopify Partner
12191 1890 2429

Please add the code in your css file

.product__description.rte div {
    text-align: justify !important;
}

 Hope it will help to solve your issue

Please Like and Accept Solution. Free website audit to grow your business Chat on WhatsApp | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87 | Hire us | Expert Site Speed Optimization | Performance Site Audit | Shopify Private App | Custom Theme Development & Modifications any Shopify Theme | Shopify SEO | Digital Marketing
driedfloralart
Tourist
9 0 3

RE; When viewed on desktop, the Rich Text on the home page looks out of alignment now (screenshot 1) - would ideally like it to be centered like it was originally whilst keeping the 'description' fields - ie paragraphs - justified (screenshot 2): 

 

Screenshot 1:

driedfloralart_1-1634822339843.png 

Screenshot 2

driedfloralart_3-1634822428338.png

 

 

driedfloralart
Tourist
9 0 3

Thanks 🙂 Should I first remove the previous codes that I just added? I'm conscious that the more I code I add the more the website speed slows (sorry I don't really know anything about coding 😉

oscprofessional
Shopify Partner
12191 1890 2429

Okay.
You just need to add this

.rich-text__text.rte p {
    text-align: center !important;
}

 

Please Like and Accept Solution. Free website audit to grow your business Chat on WhatsApp | Email: pallavi@oscprofessionals.com | Skype : oscprofessionals-87 | Hire us | Expert Site Speed Optimization | Performance Site Audit | Shopify Private App | Custom Theme Development & Modifications any Shopify Theme | Shopify SEO | Digital Marketing
dmwwebartisan
Shopify Partner
10768 2345 3342

@driedfloralart 

for mobile product page image 

Please Go to Online Store->Theme->Edit code then go to assets/base.css ->paste below code at the bottom of the file.

@media screen and (max-width: 749px) {
.product-section .page-width { padding: 0 0rem !important;}
.product__info-wrapper {
    padding-left: 0;
    padding-bottom: 0;
    padding: 0 1.5em!important;
}
}
If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
driedfloralart
Tourist
9 0 3

Thanks - looks better!. Any solutions to the justifying the text in the product description?

dmwwebartisan
Shopify Partner
10768 2345 3342

@driedfloralart 

product description already justified.

If helpful then please Like and Accept Solution | Email: dmw.webartisan@gmail.com | Instagram: @dmw.webartisan
Check here PageFly App to customize your pages | Bag is a cart drawer that maximizes your sales. View app →
driedfloralart
Tourist
9 0 3

Oh thanks for that - now it is 🙂

Eri11
New Member
1 0 0

Hi,

I've got the same issue with the contributor and I tried the code you provided. However, it didn't work for my pages. Please advice if there is any other solution to justify the text on my page in the Dawn Theme 2.0.

 

Thanks,

Screen Shot 2022-05-02 at 8.35.38 am.png