Two Quick issues

Homepage Community Forums Aspire Theme Support Two Quick issues

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19932
    troy
    Customer

      If you go here. I have a featured image that is showing up at the top of this nonsense story. Ive worked with it and cant seem to get it gone. I want the featured image to show up such as here , but i would rather it not be at the top of the post when you click on the story. I have deleted the featured image, but for some reason it wont disappear off the top.

      Im still having blog post show up on the home page after i chose
      Front Page Content Section Display- Hide content section, im kinda stumped

      Thanks


      Life’s Hard, its a lot Harder if you are stupid

      #19934
      troy
      Customer

        Ok, i fixed the First issue by this thread

        That did the trick

        Now working on the blog post on home page


        Life’s Hard, its a lot Harder if you are stupid

        #19936
        Wes
        Moderator

          Just a heads up, I’m going to be replacing the Featured Image code in the functions file. Here’s what the new updated code will look like –

          // 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 );
          }

          That fixes a couple issues like the featured image not going away on certain pages and a few other things as well.

          #20147
          troy
          Customer

            Hey Wes, was that going to be released in update? I bought mine off of the studio press site, if that makes a difference. Not sure how often it gets changed to the latest version


            Life’s Hard, its a lot Harder if you are stupid

            #20151
            Wes
            Moderator

              Yeah I’m going to add this in the next update, but first I need to make a couple minor adjustments in the theme before I release it. Once it’s ready, StudioPress will have the new version at the same time it’s available here.

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