Remove image on posts

Homepage Community Forums Aspire Theme Support Remove image on posts

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18099
    concept5
    Customer

      I am using Aspire Pro and would like to remove the code that enables the first post image to appear on top of the page, above the title as seen on
      http://herbsandowls.com/castor-oil-packs-medicinal-benefits-instructions/

      pls advise on how to remove this.

      #18102
      sabrinaespinal
      Customer

        Hi,
        I’m sure this is happening to everyone who set archive (blog) page to show the image. I saw a solution in the forum and I’m going to try it now and I’ll let you know. I’m having the same problem. Monday at 8:42am est.

        #18103
        Wes
        Moderator

          To remove the Featured Image up top, just remove this code in your functions.php file –

          //* Add featured image above the entry content
          add_action( 'genesis_entry_header', 'aspire_featured_photo', 5 );
          function aspire_featured_photo() {
          
          	if ( is_attachment() || ! genesis_get_option( 'content_archive_thumbnail' ) )
          		return;
          
          	if ( is_singular() && $image = genesis_get_image( array( 'format' => 'url', 'size' => genesis_get_option( 'image_size' ) ) ) ) {
          		printf( '<div class="featured-image"><img src="%s" alt="%s" class="entry-image"/></div>', $image, the_title_attribute( 'echo=0' ) );
          	}
          
          }

          Let me know if you need any help removing it.

          #18104
          sabrinaespinal
          Customer

            Wes,
            You are sooo good. I was just getting ready to give her a link to the page where you gave these instructions. They work perfectly. I just did it. So excited to go from Epik (which I loved for years) to Aspire Pro. You get me!

            #18105
            concept5
            Customer

              worked perfect – thanks!

              #18111
              Wes
              Moderator

                You’re Welcome!

                Glad you both are enjoying the theme 馃檪 Let me know if you run into any other issues.

              Viewing 6 posts - 1 through 6 (of 6 total)
              • The topic ‘Remove image on posts’ is closed to new replies.