“text-align: center” not working on all Posts Titles of a Blog Widget
-
Please check the link in private and look at the row “Actualités récentes”
You’ll see a widget displaying the most recents blog posts.
In the column of this widget, I defined text-align to center.
This works fine but not for all the blog post titles. Why?
Thanks
Attachments:
You must be
logged in to view attached files.
Hello,
I apologize for the delay.
In general, the align center property works: https://take.ms/8Ig5F , you just need to define longer text.
If you want to make the short text on the center, you can use the below code:
.blog-design-list .wd-post-content-inner {
align-items: center;
}
I suggest you define the custom class in the appropriate row: https://take.ms/6bLDV and include that class in the above code to apply the custom for that specific area.
Kind Regards
Why do I need to add a custom code for this? I expect that the center alignment works as soon as I define the “center” alignment in the widget setting. Can’t you fix this?
Hello,
The alignment option in the column is an option from WPB builder. It is intended for simple text elements of WPB builder that do not have their own styles (for example Text block or Raw HTML https://prnt.sc/YAlLSSDhk3lh) and it will not set alignment in:
1. Elements that have their own design with predefined alignment (for example, blog posts, or certain product designs).
2. Elements that have their own alignment options (for example, section titles, buttons)
Kind Regards
Ok please close this ticket, thanks
Hello,
You are welcome! Always remember that you can reach out to us with any questions you may have.
Have a good day!
Kind Regards
The topic ‘“text-align: center” not working on all Posts Titles of a Blog Widget’ is closed to new replies.