[Resolved] Double Image

Home Forums Support [Resolved] Double Image

Home Forums Support Double Image

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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
    Mizan

    #47008
    Tom
    Lead Developer
    Lead Developer

    Hi Mizan,

    Working on a fix for this right now – stay tuned.

    #47009
    Tom
    Lead Developer
    Lead Developer

    Man, 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.

    #47037
    Mizanur

    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
    Mizan

    #47038
    Tom
    Lead Developer
    Lead Developer

    Thanks 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.

    #47055
    Mizanur

    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. πŸ™‚
    Mizan

    #47059
    Tom
    Lead Developer
    Lead Developer

    No worries – thanks for pointing out that bug.

    Now let’s hope WP.org approves and pushes those theme updates out soon.

    #47432
    Tom
    Lead Developer
    Lead Developer

    The awesome people at WP.org pushed out these updates so the latest version has this issue fixed.

    Thanks!

    #74104
    Laura

    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!

    #74155
    Tom
    Lead Developer
    Lead Developer

    Hi 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 πŸ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.