How to Center Images On wordpress

9 replies
  • WEB DESIGN
  • |
Hey,
I've Installed the WordPress kouki theme on my site. I want to show my post images to the center. And why i cannot show them in center?
As I've set center alignment many times.
here is my site link Viewersfacts | ALL ABOUT SUPPLEMENT REVIEWS
You can open the very first post to see the problem.
#center #images #wordpress
  • Profile picture of the author Yadav Poonam
    You just need to add your image in the editor and move the cursor to a new line. Now press the Align Center Button then drag and drop the image in that new line
    {{ DiscussionBoard.errors[10428662].message }}
  • Profile picture of the author Action Man
    Hi

    add this to your themes CSS file in theme editor

    .aligncenter, img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

    don't forget the dot in front of the line..

    Jim
    Signature

    "Love conquers all things except poverty and toothache" (Mae West)

    {{ DiscussionBoard.errors[10435304].message }}
    • Profile picture of the author harris96
      Originally Posted by Action Man View Post

      Hi

      add this to your themes CSS file in theme editor

      .aligncenter, img.aligncenter { clear: both; display: block; margin-left: auto; margin-right: auto; }

      don't forget the dot in front of the line..

      Jim
      You know I've a kouki wordpress theme on my site. Last time I did add the code in my theme directory ( css file). After to press update button all the the data have removed. I then called godaddy agent to recover my theme error. So that is why I do not like to modification again.
      {{ DiscussionBoard.errors[10435525].message }}
      • Profile picture of the author Action Man
        Originally Posted by harris96 View Post

        You know I've a kouki wordpress theme on my site. Last time I did add the code in my theme directory ( css file). After to press update button all the the data have removed. I then called godaddy agent to recover my theme error. So that is why I do not like to modification again.
        Some theme creators don't conform to WordPress standards and protocols.

        I only use the Vantage theme for all my sites, it is trustworthy, and the best theme for WordPress ever created. They also created the SiteOrigin PageBuilder bundle, the best thing since sliced cheese.
        Signature

        "Love conquers all things except poverty and toothache" (Mae West)

        {{ DiscussionBoard.errors[10435535].message }}
  • Profile picture of the author yukon
    Banned
    Wrap the image code in <center> tags which will override any Wordpress theme CSS.

    Inline styles take precedence over any previous CSS applied.


    HTML Code:
    <center><img src="my-image.jpg" alt="my image" style="width:500px;height:500px;"></center>
    {{ DiscussionBoard.errors[10435554].message }}
  • Profile picture of the author abderrezak31
    some of WordPress theme creators' don't give more importance for thumbnails and featured images, so you need to contact the developer about how to fix the problem !
    it seems that every theme has a support service about how to install it to how to manage hole content !
    Signature
    {{ DiscussionBoard.errors[10435557].message }}

Trending Topics