wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

[Solved] Messages text alignment...

10 Posts
2 Users
1 Likes
301 Views
learner2020
Posts: 15
Topic starter
(@learner2020)
Active Member
Joined: 2 years ago

Hi to all. ¿Can I justify the alignment of the messages? They always align to the left and I think there's no way to fix that up with the wordpress editor. Thanks in advance.

9 Replies
Asti
Posts: 5071
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 years ago

@learner2020,

We don't follow you well. Could you please try to explain using some screenshots? 

learner2020
Posts: 15
Topic starter
(@learner2020)
Active Member
Joined: 2 years ago

Right now I can format the text I'm writing down in this very minute, aligning to the left

or to the right

I  wonder if there is any possibility to align this text in justify format, from margin to margin

1 Reply
Asti
 Asti
Support
(@asti)
Joined: 5 years ago

Illustrious Member
Posts: 5071

@learner2020,

Use the CSS code below: 

#wpdcom .wpd-comment-text * {
text-align: justify;
}

Put the code in the Top Admin Bar > Customize > Additional CSS > "Additional CSS" textarea, save it, delete all caches and check again. 

learner2020
Posts: 15
Topic starter
(@learner2020)
Active Member
Joined: 2 years ago

It worked. Thanks a lot again. You guys are the top!

learner2020
Posts: 15
Topic starter
(@learner2020)
Active Member
Joined: 2 years ago

Do I also need to add some CSS code for centering the tex? Now it is aligned to the "justify" format but the paragraph still aligns to the left:

Screenshot 2020 11 02 LIBRO DE ALUMNOS(1)

 

3 Replies
Asti
 Asti
Support
(@asti)
Joined: 5 years ago

Illustrious Member
Posts: 5071

@learner2020

Please leave some example URL to allow us to debug the CSS conflict and provide some solution for you. 

learner2020
(@learner2020)
Joined: 2 years ago

Active Member
Posts: 15
Asti
 Asti
Support
(@asti)
Joined: 5 years ago

Illustrious Member
Posts: 5071

@learner2020,

The CSS code below should help you to solve the issue: 

#wpdcom.wpdiscuz_no_avatar .wpd-comment .wpd-comment-right {
width: 100% !important;
}
learner2020
Posts: 15
Topic starter
(@learner2020)
Active Member
Joined: 2 years ago

Once more thanks a lot. Everytime I see these codes I feel so ignorant...

Share: