badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Centered image aligns left

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #74238
    rebelsnotes
    Participant

    Hi there,

    I have noticed that all images on my site which I align ‘center’, doesn’t show centered, but are aligned left. Is there something I can do about this? My site is NSFW, so let me know if you need the url.

    Kind regards,
    Marie

    #74266

    Hi @rebelsnotes,

    You can use the ‘Image’ Block of Gutenberg Block feature which is under Common Block category then you can align the images easily.
    To use the Image block and other Gutenberg features just by clicking on plus icon (+) on the top left corner of post/page editor and you can find Image Block under Common Blocks tab pane (category).

    Thanks

    #74284
    rebelsnotes
    Participant

    Ah okay, thank you. I am not using Gutenberg just yet. Is there any other way to get it to center without using Gutenberg?

    #74291

    Ok then you can add images from ‘Add/insert Media’ from the classic Editor. There you can find the options for alignments.

    You can even find many tutorials about image alignments on classic editor in Youtube as well.

    Thanks

    #74301
    rebelsnotes
    Participant

    Like I said, I am centering my images, but still they align right, despite the code align=”aligncenter” being in there. Is there a solution for this?

    #74331

    May be you are doing with the ‘Custom Html’. So please instead of ‘align’ attribute use the class ‘aligncenter’ on the img tag. Example class="aligncenter".

    Thanks

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