[Support request] Issue centring latest posts

Home Forums Support [Support request] Issue centring latest posts

Home Forums Support Issue centring latest posts

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1373171
    Ben

    Hi there,

    On my home page I have a block saying “Our latest posts and updates.”

    Despite me setting this to centred in the Gutenburg editor it’s remaining justified to the left. It shows as centred in the editor but not on the site. I’ve tried clearing all caches.

    Please advise, many thanks.

    #1373230
    David
    Staff
    Customer Support

    Hi there,

    the Title is displaying centred on my browser.
    Maybe browser caches need clearing?

    #1373237
    Ben

    The title is fine, it’s the list of latest posts itself that won’t centre – it’s the same in a different browser and a private window.

    #1373259
    David
    Staff
    Customer Support

    Try adding this CSS:

    .wp-block-latest-posts.aligncenter {
        text-align: center !important;
    }
    #1373262
    Ben

    Hi

    I copy and pasted that into Additional CSS classes under “Advanced” on the block itself but it’s made no difference (cleared caches and tried in a private window again).

    Should I be putting that CSS somewhere different?

    Thanks

    #1373291
    David
    Staff
    Customer Support

    Add it to Customizer > Additional CSS

    #1373321
    Ben

    Sorted, many thanks.

    #1373363
    David
    Staff
    Customer Support

    You’re welcome

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.