Tagged: blog posts, Home Page
- This topic has 10 replies, 2 voices, and was last updated 6 years, 9 months ago by Dorothy.
-
AuthorPosts
-
January 13, 2018 at 7:22 pm #129699DorothyParticipant
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
January 13, 2018 at 10:40 pm #129730PratikParticipantHi @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,
PratikJanuary 14, 2018 at 2:43 pm #129756DorothyParticipantHiPratik,
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
January 16, 2018 at 1:21 am #129823PratikParticipantHi 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,
PratikJanuary 16, 2018 at 3:53 pm #129870DorothyParticipantI 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!
January 16, 2018 at 10:56 pm #129891PratikParticipantHi 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.
January 17, 2018 at 4:37 pm #129976DorothyParticipantNo 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.
January 17, 2018 at 11:34 pm #130002PratikParticipantOk 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,
PratikJanuary 19, 2018 at 4:20 pm #130141DorothyParticipantBrilliant, 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 screenJanuary 21, 2018 at 1:23 am #130197PratikParticipantHI 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/MN1EmBayHere, 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,
PratikJanuary 21, 2018 at 5:58 pm #130238DorothyParticipantThank you so much, that’s exactly what I’m looking for.
Your patience and help has been much appreciated. -
AuthorPosts
- The topic ‘Blog post image’ is closed to new replies.