Home Forums WoodMart support forum “text-align: center” not working on all Posts Titles of a Blog Widget

“text-align: center” not working on all Posts Titles of a Blog Widget

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #521419

    Jeriss Cloud Center
    Participant

    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.
    #522287

    Jeriss Cloud Center
    Participant

    Any update here?

    #522753

    Luke Nielsen
    Member

    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

    #522754

    Jeriss Cloud Center
    Participant

    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?

    #523745

    Luke Nielsen
    Member

    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

    #534413

    Jeriss Cloud Center
    Participant

    Ok please close this ticket, thanks

    #534600

    Luke Nielsen
    Member

    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

Viewing 7 posts - 1 through 7 (of 7 total)

The topic ‘“text-align: center” not working on all Posts Titles of a Blog Widget’ is closed to new replies.