WordPress.org

Ready to get started?Download WordPress

Forums

Center featured image (4 posts)

  1. GhostStorm
    Member
    Posted 7 months ago #

    Please can you tell me how I can center the featured image on my posts at http://ghoststorm.co.uk I tried adding this to custom css thing but it didnt make any difference.

    .post_grid_image img {
    position: relative;
    left: 60px;
    }

    I also would like the featured images to be a certain size when people view the post how is this done?

  2. Dave Naylor
    Member
    Posted 7 months ago #

    Your images are given the classes: alignleft featured_image wp-post-image

    Change the first class to aligncenter

  3. GhostStorm
    Member
    Posted 7 months ago #

    Where should this be done?
    Also please remember its for the post itself and not for the front page where it shows a list of posts.

  4. Dave Naylor
    Member
    Posted 7 months ago #

    Looking at your theme's post-single.php template file, you'll see this code:

    get_option('featured_image_position_single') . " featured_image")

    So, that's going to be configurable in your theme's admin.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.