Unable to center image in a text block or single image

This topic has 16 replies, 3 voices, and was last updated 10 years ago ago by Eva Kemp

  • Avatar: houseofstrauss
    houseofstrauss
    Participant
    October 29, 2014 at 14:56

    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
    Support staff
    October 29, 2014 at 15:15

    Hello,

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

    Regards,
    Robert Hall.

    Avatar: houseofstrauss
    houseofstrauss
    Participant
    October 29, 2014 at 17:32

    Private reply

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    October 29, 2014 at 19:31

    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
    October 30, 2014 at 10:47

    private content

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    October 30, 2014 at 16:05

    Hello,

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

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: houseofstrauss
    houseofstrauss
    Participant
    October 31, 2014 at 10:25

    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
    Support staff
    October 31, 2014 at 16:43

    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
    October 31, 2014 at 17:37

    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
    Support staff
    October 31, 2014 at 19:22

    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
    October 31, 2014 at 19:38

    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
    Support staff
    October 31, 2014 at 20:56

    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
    October 31, 2014 at 21:58

    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
    Support staff
    November 1, 2014 at 10:03

    Hello,

    Please check it now and clear your browser cache.

    Thank you.
    Regards,
    Eva Kemp.

    Avatar: houseofstrauss
    houseofstrauss
    Participant
    November 1, 2014 at 11:57

    Ok, thank-you.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    November 1, 2014 at 18:43

    Hello,

    The screenshot is removed.
    You’re welcome.

    Regards,
    Eva Kemp.

  • Viewing 16 results - 1 through 16 (of 16 total)

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

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.