can't center align images in pages

Discussion in 'ColorWay WordPress Theme' started by sblais10, Jul 5, 2015.

  1. sblais10

    sblais10 Member

    Joined:
    May 15, 2014
    Messages:
    31
    Likes Received:
    0
    Location:
    Amherstburg, Ontario
    Hello, i'm using colorway theme and when i insert an image (and select center image alignment during insertion) it shows as centered in the editor but on the front end it is aligned left.
    How can i correct this?

    example: http://myamherstburg.com/forhan-street-villas

    Thanks,
     
  2. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hello,

    Please paste the code given below in Custom CSS section
    (Appearance -> Theme Options -> Styling Options -> Custom CSS) of your dashboard.
    Code:
    @media only screen and (min-width: 767px) and (max-width: 959px){
    .content-wrapper.fullwidth p a img {
      margin-left: 7% !important;
    }
    }
    @media only screen and (min-width: 960px){
    .content-wrapper.fullwidth p a img {
      margin-left: 25% !important;
    }
    }
    Thanks,
    Praveen
     
  3. sblais10

    sblais10 Member

    Joined:
    May 15, 2014
    Messages:
    31
    Likes Received:
    0
    Location:
    Amherstburg, Ontario
    That didn't seem to work - as you can see in the screenshot attached, the image is not centered.

    Isn't this basic wordpress functionality? I'm surprised that i'm required to add additional css styling to center an image which i can do easily with any other theme including those from ink themes.

    http://myamherstburg.com/forhan-street-villas
     

    Attached Files:

  4. praveen

    praveen Support Staff

    Joined:
    Jan 1, 2015
    Messages:
    2,344
    Likes Received:
    67
    Hello,

    Please accept my sincerest apology...

    There is no need of any custom CSS to align the image at center. You can set the alignment of image while inserting it in your post and pages.

    I have tested it at our end and I am providing you the video link of testing.
    http://screenpresso.com/=TyeVe

    It might be possible that, at your end, some plugin conflict with the alignment property of image.
    Kindly deactivate your plugins and check.

    If the issue still persists, send us your website WordPress login details at [email protected] along with the thread link.

    Thanks,
    Praveen
     

Share This Page