Community Forums › Forums › Archived Forums › General Discussion › Generate Theme: 2 Images in Home Page Posts
- This topic has 5 replies, 2 voices, and was last updated 10 years, 6 months ago by David Chu.
-
AuthorPosts
-
October 26, 2013 at 9:10 am #69097rjdcreativeMember
I'm using the Generate theme and the home page posts are showing two images, the featured image (long horizontal image) plus the image in the body of the post. I want just the long horizontal featured image to display in the home page posts. How do I keep the image in the body of the post but not have it display on the home page (I do want it to display on the post page)? Any suggestions?
Thanks in advance,
http://beta.nextenbranding.com/
BobOctober 26, 2013 at 9:36 am #69098David ChuParticipantHi,
I have done some time with Generate, and ran into this mini-dilemma. In fact, I think Going Green does this, too. As I recall, the only sure way to avoid duplication (without doing custom programming) is to stick to one image per Post. I would say try only the Featured Image and no image in the Post. If that's not it, then try the opposite: an image in the Post and no Featured Image.Good luck, Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
October 26, 2013 at 11:01 am #69111rjdcreativeMemberThanks Dave, appreciate the feedback. There's just one image in the post, your solution of just using it as the Featured image does work, but then there's no image on the post page, which I do want. I had the same issue with the Freelance theme, and lived without images on the post pages, but for this site I need the image on the post page for visual interest. Thanks again for your input!
October 26, 2013 at 11:29 am #69115David ChuParticipantI'm glad to help a bit. 🙂
Yes, that's it exactly - it's a bit restrictive, and that's a bummer.
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
October 28, 2013 at 8:20 pm #69566rjdcreativeMemberDavid (and any readers who have had this issue, or encounter this issue in the future),
I submitted a support ticket and received the following solution from Copyblogger Media Support, and this fixed the issue for me:
The large image across the top of the post has the class "post-image," so you want to make sure that it still displays even when you apply display: none on the homepage images.
Find this:
.post-image {
border: 0;
margin: 0 0 30px -40px !important;
padding: 0;
max-width: none !important;
}And change it to this:
.post-image {
border: 0;
margin: 0 0 30px -40px !important;
padding: 0;
max-width: none !important;
display: inline !important;
}.home .hentry img {
display: none;
}I replaced that code in the Generate theme style sheet and it removed the image from the body of the post in the home page, and kept the featured image above it.
Hope this helps some of you!
Bob
October 28, 2013 at 9:39 pm #69573David ChuParticipantBob,
Glad they hooked you up with a solution. One can always code your way out of a situation like this, if you're a coder. 🙂 But this is, to me, pretty close to a hack. I would postulate that they really might want to consider making this a little easier for someone who isn't a coder. Who knows, maybe they will at some point.Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.