• Hiya,

    I’m not sure why but WP or my theme seem to be stripping the image I have put in recent posts from the main post page but is displaying it when I click on the post and go to its specific page. I’d really like to be able to display a thumbnail on the posts page. I’d be grateful of any help. On the provided link the two posts about A Level books should have images.

    Thank you in advance,

    Nige.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • You need to set post thumbnail image (Featured Image), for any post that doesn’t have image shown in post listing (archive) page.

    https://codex.wordpress.org/Post_Thumbnails

    Thread Starter nclibraries

    (@nclibraries)

    Hiya Paul,

    Thank you for that. I now have a thumbnail! When I click on the post however, I get a huge view of the image now. Can I controll that or not have it display on the actual post page?

    https://library.northamptoncollege.ac.uk/mei-a-level-mathematics-year-2-4th-edition/

    Thank you,

    Nige.

    Hi Nige,

    First please check and see if theme has an option to enable/disable the auto-display of post image in single post page or not. Some themes offer this option already.

    If theme doesn’t offer that option, we need to make a child theme and override the template, just commenting out the code that outputs the image in single page.

    If making a child theme seems like an overkill, we can simply use CSS to display-none it. This is a hack, the page still loads the image but the CSS tells the browser not to display it.

    Use this code in Additional CSS section, this tells browser not to display it.

    
    .single-post .content figure .wp-post-image { display: none; }
    

    Use this code instead, if you want theme to display it but want the image appears smaller.

    
    .single-post .content figure .wp-post-image { width: 50%; margin: 0 auto; }
    
    Thread Starter nclibraries

    (@nclibraries)

    Hiya Paul,

    Thanks very much for this information – I will give it a try 🙂

    Thank you,

    Nige.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Image not displaying on post page’ is closed to new replies.