Tiny featured image before each article

Homepage Community Forums Vintage Theme Support Tiny featured image before each article

  • This topic has 11 replies, 3 voices, and was last updated 8 years ago by Wes.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #17754
    Abhishek
    Customer

      Hi there,

      I bought your Vintage theme last night and have set it up on my website.

      I do have an issue with the featured image.

      On each article, there is a tiny featured image, just below the title of the post. take a look here: http://itsfoss.com/features-ubuntu-1604/

      Could you please let me know how to get rid of this? Please note that I want to see the featured image thumbnail on the homepage but not under the title of the article.

      #17760
      Wes
      Moderator

        Yes, take a look in your functions.php file and remove this code –

        //* Add featured image above the entry content
        add_action( 'genesis_entry_header', 'vintage_featured_photo', 5 );
        function vintage_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 that works, or if you need assistance.

        #17776
        Abhishek
        Customer

          How do you access functions.php in Genesis framework? I don’t see this option for Genesis theme.

          #17777
          Andykev
          Customer

            You go to your dashboard, APPEARANCE – EDITOR. Then on the side is a listing (TEMPLATES) of all the .php files and at the bottom of the column is the style.css.

            Be sure that the menu at the top is showing your child theme (Vintage) and not Genesis. You should NEVER edit the Genesis files.

            That said, be very careful. IF YOU MAKE A MISTAKE with the “cut and paste” or typing of your code, leaving off any punctuaton, bracket, comma, etc…it can give you the “White Screen of Death”.

            #17779
            Abhishek
            Customer

              There is no such option for me under Appearance. Screenshot of Dashboard

              #17796
              Wes
              Moderator

                Are you logged in with Admin Capabilities?

                Out of all the sites I’ve setup (100s+), I’ve never experienced this, but I have heard of a couple users running into this issue with WordPress and can’t figure out why it happens.

                What hosting company are you with?…..and how did you setup your WordPress installation? Was it through an automatic installer, or manually through FTP?

                #17810
                Abhishek
                Customer

                  Hello,

                  Yes. I am logged in with Admin rights. In fact, I am the admin.

                  I am using Web Synthesis and I just found out that they disable editing the Themes’ editor and other files.

                  The only way to edit it is through FTP and I am going to try that.

                  #17811
                  Wes
                  Moderator

                    That’s weird, this site (Appfinite) is also hosted on Web Synthesis, but I can still access the editor.

                    If you can make edits through FTP, that would actually be better since it’s much safer to undo any mistakes/typos made in the code.

                    #17812
                    Abhishek
                    Customer

                      Exactly which file should I edit by the way?

                      #17813
                      Wes
                      Moderator

                        Take a look in your functions.php file

                        #17825
                        Abhishek
                        Customer

                          Problem fixed. Thanks.

                          I have a new problem, as mentioned by several readers. But I’ll open a new thread for that.

                          I don’t see the option to mark the thread as solved, so please feel free to do it on my behalf.

                          #17829
                          Wes
                          Moderator

                            You’re Welcome!

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