- This topic has 9 replies, 3 voices, and was last updated 8 years, 7 months ago by
Tom.
-
AuthorPosts
-
November 17, 2014 at 2:26 pm #46970
Mizanur
Hi Tom,
After updating GeneratePress today, I am getting two images on each post! I tried with Blog > Post Image Position > Below header and above header with no success!http://www.bangladeshcircle.com/blog/
Most of the post images are set with ‘Featured Image’ and one with using ‘Page Header’
What can I do to show one picture? I tried Blog Image
Thanks
MizanNovember 17, 2014 at 3:21 pm #47008Tom
Lead DeveloperLead DeveloperHi Mizan,
Working on a fix for this right now – stay tuned.
November 17, 2014 at 4:12 pm #47009Tom
Lead DeveloperLead DeveloperMan, should have tested the new Blog addon features with the child themes, sorry about that.
Now they’re integrated with the new post image position options.
Because WordPress.org takes a while to approve theme updates, I’m going to post the new functions.php files for each child theme that this effects here.
To fix this issue, go to “Appearance > Editor” and open the “Functions.php” file.
Replace that entire file with the following code, depending on the theme you’re using.
Forefront: https://gist.github.com/generatepress/b16138bfca24e12940d3
Exhibit: https://gist.github.com/generatepress/0666fb4159ed6c4cb44e
Mantle: https://gist.github.com/generatepress/227398037914c95110c2
I also have to release one more update to the Blog addon which fixes a bug dealing with Page Header and the blog position.
Let me know how this works out – if you confirm this fixes the issue I’ll release the updates to WP.org.
Thanks, and sorry again.
November 17, 2014 at 4:50 pm #47037Mizanur
Hi Tom,
I am using Forefront child theme. I replaced the functions.php file with your code. Frontpage is ok now. πHowever, inside each article/post, images are showing twice! Examples:
http://www.bangladeshcircle.com/from-google-doodle-to-clean-water-in-bangladesh/
http://www.bangladeshcircle.com/documentary-films-on-bangladesh-part-2/Anyway, thanks a million for your super quick reply.
Looking forward to upcoming upgrade.
Thanks again
MizanNovember 17, 2014 at 4:58 pm #47038Tom
Lead DeveloperLead DeveloperThanks for letting me know.
I just uploaded the new version to WP.org and then saw your second issue – started a light sweat!
Luckily, this isn’t the plugin – this is because you have the image included in the content of your post.
If you’re going to include the image in the content of your post, you can hide the featured image above with this CSS:
.page-header-image-single { display: none; }
If you only want to hide the image on these specific posts, you can use the Disable Elements metabox to hide the post image.
Hope this helps, and thanks again for bringing this to my attention.
November 17, 2014 at 6:51 pm #47055Mizanur
Hi Tom,
Sorry that I did not check the issue – I noticed that I included image to some my posts too.
Seems like the problem is solved. Thanks man. π
MizanNovember 17, 2014 at 7:17 pm #47059Tom
Lead DeveloperLead DeveloperNo worries – thanks for pointing out that bug.
Now let’s hope WP.org approves and pushes those theme updates out soon.
November 19, 2014 at 11:22 am #47432Tom
Lead DeveloperLead DeveloperThe awesome people at WP.org pushed out these updates so the latest version has this issue fixed.
Thanks!
February 10, 2015 at 6:45 pm #74104Laura
I use the code you wrote for posts but what do I need to change to make the same CSS work for pages? I added an image file as a disclosure on my About pages but it’s filling the top of my page now and then the actual image inside the post (where I wanted it to be) shows up too.
Someone said this was about image sizes, that the theme, a plugin and maybe my WordPress settings are causing it to want to post images twice in posts and pages. Does that mean I could also fix this if I synchronize all my thumbnail size settings?
Thanks for your help!
February 10, 2015 at 11:35 pm #74155Tom
Lead DeveloperLead DeveloperHi Laura,
Featured Images/Page Headers for single posts show up in the excerpt and single post file – but they only show up on the page for regular pages.
So, if you don’t want it to show above the page, simply don’t add a Featured Image/Page Header.
Let me know if I’m missing something π
-
AuthorPosts
- You must be logged in to reply to this topic.