Community Forums › Forums › Archived Forums › Design Tips and Tricks › Hide Featured image on all Pages
Tagged: executive pro, featured image
- This topic has 11 replies, 2 voices, and was last updated 8 years, 4 months ago by Brad Dalton.
-
AuthorPosts
-
May 13, 2016 at 1:03 pm #185585megfizerMember
I have tried different codes in functions.php and checked my settings a million times but I cannot get the featured image to NOT show on the page. I need it for my slider but don't want it to show on the page.
I'm using the Executive Pro theme and can't seem to figure this out. Any help would be greatly appreciated!
http://www.heritagecentermf.comMay 14, 2016 at 2:02 am #185609Brad DaltonParticipantMay 16, 2016 at 10:01 am #185703megfizerMemberhttp://www.heritagecentermf.com/our-services/
every single page on the website has the featured image at the top of the page. the code snippet that Studiopress sent me doesn't work.
May 16, 2016 at 10:10 am #185704Brad DaltonParticipantMay 16, 2016 at 10:13 am #185706megfizerMemberI didn't use a code to add it... I just "set featured image" which you need to do in order for it to show up in the Genesis Slider.
I need it in order to use the front page widgets. But I don't want them to show up on the page when you click on it.Below is the snippet they gave me to remove it from the page but it doesn't work... I did specifically say it was a page and not a post so not surprised this didn't work. I see all over the internet that this is an issue but I can't find a solid answer on how to fix it.
//* Remove the post image (requires HTML5 theme support)
remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 );May 16, 2016 at 10:27 am #185708Brad DaltonParticipantWhat page do you want to remove it from?
Did you want to remove it from all single pages or all single posts or all archive type pages?
You can use CSS or PHP code however, there is no code in Exec Pro which adds a image after the header on single posts and pages or any type of archive pages. You need to provide the code you used to add it.
May 16, 2016 at 10:32 am #185709megfizerMemberI want to remove it from all single pages.
I promise you I didn't use any code to add this. Thats what has made this so frustrating. All I am doing is adding a featured image via the upload tool inside of WordPress. I haven't change any coding at all. The only coding I have attempted is its removal. It's been like this since I started building this site.
May 16, 2016 at 10:43 am #185710Brad DaltonParticipantMay 16, 2016 at 11:22 am #185713megfizerMemberI am not! Should I be?
May 16, 2016 at 12:11 pm #185717megfizerMemberI see the problem but I don't know how to fix it.
when I look at he page source code I see thisdiv class= "site inner"
::before
div class="egwp_featured_image" style: position relative
img src= blahblahhow do I remove that div class? I don't know why it's there and that isn't a genesis hook either.
I just tried to remove it with the genesis_before_content_sidebar_wrap hook but that's not working. I could have the coding wrong to do this but I don't think that hook will remove that divMay 16, 2016 at 1:37 pm #185725megfizerMemberI figured it out but I can't be the only one to have an issue so what I had to do is add this to my CSS
}
.egwp_featured_image {
display: none;
}May 17, 2016 at 2:19 am #185752Brad DaltonParticipantYou must be using something to add the featured image as its not added via the default theme.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.