Your cart is currently empty!
Homepage › Community Forums › Vintage Theme Support › Tiny featured image before each article
Tagged: featured image
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.
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.
How do you access functions.php in Genesis framework? I don’t see this option for Genesis theme.
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”.
There is no such option for me under Appearance.
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?
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.
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.
Exactly which file should I edit by the way?
Take a look in your functions.php
file
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.
You’re Welcome!