Home / Forums / Basel support forum / Issue with body texts
Home › Forums › Basel support forum › Issue with body texts
Issue with body texts
- This topic has 15 replies, 3 voices, and was last updated 7 years, 10 months ago by
Bogdan Donovan.
-
AuthorPosts
-
January 24, 2018 at 10:40 am #35102
GiulioParticipantHi there,
some time ago I asked a way to justify all texts insert inside body field. And this is great. But sometimes I need to center some body field, so how I can do?
This is the code that you suggest me some time ago:
.wpb_text_column p { text-align:justify!important; }Many thanks.
January 24, 2018 at 12:41 pm #35124
Artem TemosKeymasterHi,
If you want to center some element text you need to take its CSS class and use the following CSS snippet for example
.element-class { text-align: center!important; }Regards
January 24, 2018 at 1:12 pm #35134
GiulioParticipantMh, it’s not working. I added “element-class” inside body text.
Attachments:
You must be logged in to view attached files.January 24, 2018 at 1:15 pm #35139
Artem TemosKeymasterWhere can we see it on your website?
January 24, 2018 at 1:17 pm #35140January 24, 2018 at 1:19 pm #35142
Artem TemosKeymasterTry this code
.single-product-content .entry-content .element-class p { text-align: center!important; }January 24, 2018 at 1:23 pm #35145
GiulioParticipantIt still not work 😕
January 24, 2018 at 1:24 pm #35146
Artem TemosKeymasterBut we don’t see this code added anywhere.
January 24, 2018 at 1:26 pm #35147
GiulioParticipantI saved the page and deleted the cache. You should to see it…
January 24, 2018 at 1:34 pm #35148
Artem TemosKeymasterWe still don’t see the code added.
January 24, 2018 at 1:41 pm #35152
GiulioParticipantNow it works. I was trying to add the code inside Custom CSS settings of a HTML block element 😅 Thank you!
January 24, 2018 at 1:42 pm #35153
Artem TemosKeymasterGreat, you are welcome! 🙂
February 13, 2018 at 9:15 am #39413
GiulioParticipantSorry, I’d need to center also this. Can you help me please?
February 13, 2018 at 1:27 pm #39473
Bogdan DonovanKeymasterHi,
By adding this https://gyazo.com/ff3adf9d17f6be5291f0250d2658bcb1 custom code you disabled all align options for text-element paragraphs. Now there is no other way other than using !important rule every time.
Try to add this HTML in builder text element
<p style="text-align: center !important;">Nessuno in casa? Scegli un <strong><a href="https://www.ups.com/dropoff?loc=it_IT" target="_blank" rel="noopener noreferrer">UPS Access Point</a></strong>e comunicacelo tra le note nella pagina di checkout.</p>Regards
February 13, 2018 at 1:53 pm #39479
GiulioParticipantIt works, great 🙂
February 13, 2018 at 2:44 pm #39495
Bogdan DonovanKeymasterYou are welcome!
-
AuthorPosts
- You must be logged in to create new topics. Login / Register