Double images (featured image)

Homepage Community Forums Aspire Theme Support Double images (featured image)

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #20241
    Cyndi
    Customer

      How do I get rid of the double images on pages and posts if in the settings I have featured image checked so it shows on blog archives? Thank you!

      – post
      – page

      #20242
      Wes
      Moderator

        Hi Cyndi, Which version are you using? I made an update that fixed that a while ago.

        #20243
        Cyndi
        Customer

          The one I just downloaded from Studio Press a few days ago: v.1.1.4 Updated: 8/3/16

          #20245
          Wes
          Moderator

            Ok, let me resend the new version to StudioPress.

            Until then if you want to add in the new code for the Featured Images, you can do so by swapping out the old version with the new in the functions.php file –

            // Add featured image above the entry content
            add_action( 'genesis_before_entry', 'aspire_featured_photo' );
            function aspire_featured_photo() {
            
                if ( ! ( is_singular() && has_post_thumbnail() ) ) {
                    return;
                }
            
                $image = genesis_get_image( 'format=url&size=single-posts' );
            
                $thumb_id = get_post_thumbnail_id( get_the_ID() );
                $alt = get_post_meta( $thumb_id, '_wp_attachment_image_alt', true );
            
                if ( '' == $alt ) {
                    $alt = the_title_attribute( 'echo=0' );
                }
            
                printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', esc_url( $image ), $alt );
            }

            You’ll see the “Featured Image” code in your functions.php file. If you would rather me login and update it for you, I can…..Or you can wait until StudioPress has the latest version. Just let me know

            #20246
            Cyndi
            Customer

              Thank you as always – you rock!

              #20247
              Wes
              Moderator

                You’re Welcome!

                Let me know if you run into any issues.

                #20407

                Hi Wes have you take a look on this issue? I can view your private message but I cannot read it… have you done something?
                Thanks

                #20423
                Wes
                Moderator

                  @Italy Photography Productions I’ve moved parts of this thread here – https://appfinite.com/topic/moved-reply-to-double-images-featured-image/

                  Only the original poster will be able to see Private messages, so once we create the new thread you’ll be able to see my Private replies.

                  I’m closing this thread so we can continue here – https://appfinite.com/topic/moved-reply-to-double-images-featured-image/

                Viewing 8 posts - 1 through 8 (of 8 total)
                • The topic ‘Double images (featured image)’ is closed to new replies.