Unable to center image in a text block or single image

Solved15 replies3 participantsUpdated by Eva Kemp

  • Avatar: houseofstrauss
    houseofstrauss
    Participant

    Using a text block in page builder, I am placing an image with center alignment. No other content in the text block. The code looks like this
    [caption id="attachment_15277" align="aligncenter" width="300"]<a href="http:/****/wp-content/uploads/revslider/Lawyer/21.jpg"><img class="wp-image-15277 size-medium" src="http://***/wp-content/uploads/revslider/Lawyer/21-300x187.jpg" alt="text here" width="300" height="187" /></a> My caption[/caption]

    It looks fine in text block and it’s centered in the visual tab. However when saved and viewed the image is left aligned. Please tell me how to make this image centered?

    Thank-you

    15 Answers

    Avatar: Robert Hall
    Robert Hall
    Participant

    Hello,

    Please provide us with link to the page with that image.

    Regards,
    Robert Hall.

    Avatar: houseofstrauss
    houseofstrauss
    Participant

    Private reply

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Please try to use this code in custom.css file:

    .wp-caption, .wp-caption-text, .gallery-caption, .bypostauthor, .aligncenter {
        margin-left: 100px !important;
    }

    How to create custom.css you can watch here.

    Regards,
    Eva Kemp.

    Avatar: houseofstrauss
    houseofstrauss
    Participant

    private content

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Could you please provide us with wp-admin panel credentials in Private Content?

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: houseofstrauss
    houseofstrauss
    Participant

    I have replied to your last post here twice (private content) but it is not showing in the conversation. Do you have my logins as you requested?

    Thank-you.

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Unfortunately we don’t have them.
    When writing in Private Content you need write some text in the public text editor as without it Private Content can’t be sent.
    Please try again.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: houseofstrauss
    houseofstrauss
    Participant

    The two images are under home page section ‘The Who?’ Images need to be aligned center of each text block.

    Also punch fonts are not working setting or editing the font makes the section open and close instantly. Cannot access

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    You didn’t rename default.custom.css file to custom.css. Please do this via FTP in wp-content/themes/royal directory.
    Also please provide us with FTP credentials to check the issue with Punch fonts.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: houseofstrauss
    houseofstrauss
    Participant

    Thank-you. I have renamed the style sheet as requested. The images still don’t align completely. Not sure why this is or where to go with this? Any more ideas, please…

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    As I see the images are centred.

    Try to clear browser cache or check with some other browser.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: houseofstrauss
    houseofstrauss
    Participant

    This is what I’m seeing with a cleared cache

    with a clean cache. BTW In fact your screenshot show the images slightly right of the text!. It just not right. My client will see this and reject it.

    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    Please check it now and clear your browser cache.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: houseofstrauss
    houseofstrauss
    Participant

    Ok, thank-you.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Participant

    Hello,

    The screenshot is removed.
    You’re welcome.

    Regards,
    Eva Kemp.

The issue related to '‘Unable to center image in a text block or single image’' has been successfully resolved, and the topic is now closed for further responses