Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #129699
    Dorothy
    Participant

    Hi,

    ON my home page http://www.bsab.co.uk/Dev2017/ I am showing my posts with an excerpt and featured image if available. I have added a post which is simply an image which is a poster for an event so instead of showing the image just as a featured image for this post on the home page, I’d like to show just the poster, as just showing it as a featured image on home page makes the image unreadable.

    Thanks

    #129730
    Pratik
    Participant

    Hi @dotneil,

    Any specific post you talking about? If you mean http://www.bsab.co.uk/Dev2017/?p=629 then the image is being loaded properly. If you want to just show image, then you need to use Show Full content option but then you need to adjust all your posts accordingly. If you want the change on only this post, consider hiring a customizer.

    Also, what is the file type of the poster you are using, only image type files can be used as Featured Images.

    Regards,
    Pratik

    #129756
    Dorothy
    Participant

    HiPratik,

    Yes it’s the blog post http://www.bsab.co.uk/Dev2017/?p=629 I’m referring to that I was the featured image to show on the home page under the header, as there’s no text on this blog page.

    It was just this blog post I wanted to make the change for, so may have to reconsider how I do this now.

    Thanks for your help

    #129823
    Pratik
    Participant

    Hi Dorothy,

    You are welcome. You can try following too:
    1. Add Featured image
    2. Add image in content
    3. Then disable featured image in that post only by going to that posts’ edit page and going to Catch Adaptive Options-> Header Featured Image Options and Select Disable.

    Regards,
    Pratik

    #129870
    Dorothy
    Participant

    I think I already tried that, but did try it again, but unfortunately it made no difference – No image shown on Home page for that blog post apart from the featured image, even although featured image is set as disabled for that post!

    #129891
    Pratik
    Participant

    Hi Dorothy,

    I am confused to what exactly is it that you want. I thought you wanted to show featured post on that blog post in homepage.

    #129976
    Dorothy
    Participant

    No for that one post (though may be others in future), I want the image in the post to be displayed as there is no text in the blog post, simply the jpeg image.

    If I make the jpeg in this post the featured image it looks a bit odd as you get the blog title on the left with nothing underneath and the featured image displayed to the right. This is why I’d like the image in the post to be displayed.

    #130002
    Pratik
    Participant

    Ok so you want to remove the title and other stuff and then just show the image for that post only? Try following code in Appearance=> Customize=> Additional CSS box:

    
    .blog #main #post-629 .entry-container {
        display: none;
    }
    
    .blog #main #post-629 figure {
        width: 100%;
    }
    
    .blog #main #post-629 figure a {
         text-align: center;
    }
    

    This will only work for that post, for future, you need to add this same block with #post-<id of new post> replaced.

    Let me know if this is what you wanted.

    Regards,
    Pratik

    #130141
    Dorothy
    Participant

    Brilliant, that’s nearly what I’m looking for however I’d still like the blog header before the picture. The picture is also shown like the cropped featured image, but I’d like the full image.

    I’ve put together an example of what I’m looking for in the attached file:
    Google drive blog post example screen

    #130197
    Pratik
    Participant

    HI Dorothy,

    So what you want can be achieved via child theme modification.
    1. First, go ahead and make a child theme( Instructions: https://catchthemes.com/blog/create-child-theme-wordpress/ ).
    2. Make a content.php file in your child theme’s root.
    3. Add following code to your child theme’s content.php file: https://pastebin.com/MN1EmBay

    Here, for future references, in this file’s line 15, there is code

    
    <?php if ( '629' == get_the_ID() ) : ?>
    

    This only works for post with ID 629. To make it work with ID say 629 and 330, do something like:

    
    <?php if ( '629' == get_the_ID() || '330' == get_the_ID() ) : ?>
    

    Similarly, keep on adding || 'some_ID' == get_the_ID() to add more pages that follows this pattern.

    Let me know how it goes.

    Regards,
    Pratik

    #130238
    Dorothy
    Participant

    Thank you so much, that’s exactly what I’m looking for.
    Your patience and help has been much appreciated.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Blog post image’ is closed to new replies.