Tagged: featured image
-
AuthorPosts
-
December 21, 2013 at 11:39 pm #202934
First off I wanted to say thank you for such a great theme. I have worked with alot of different developers and WordPress themes but have never seen one as intricate as this. KUDOS! I have been playing around with this theme the last few days, learning the different features. I have read the available docs and found the part where you can disable the Lightbox feature on any image. I however can not find how you would disable this feature on a Featured image on a blog post. Also, I would like to know where to edit to remove the featured image from the single blog post. I want to still have the ability to add a featured image because of the next and previous post feature., but Having the ability to add our own image with title greatly enhances the SEO aspect as to where we can not do this with the feature image. It also adds the image above the title which I am not a big fan of. The theme structure here is not something I am familiar with and just need a push in the right direction. Any help would be greatly appreciated.
- This topic was modified 10 years, 11 months ago by TJ Martin.
December 22, 2013 at 3:06 am #202971Hey!
Try adding this code to the Quick CSS:
#top.single-post .big-preview.single-big a, #top.single-post .small-preview { pointer-events: none; cursor: default; }
Cheers!
JosueDecember 22, 2013 at 6:34 am #203003Thank you Josue, that worked perfectly for removing the lightbox feature. Can you explain how I might either move the featured image below the title or even remove it from the single post without actually removing the feature image. Shown here in this screenshot http://puu.sh/5UykE/eef2c8123a.jpg the featured image needs to be there for the next post and previous post tabs, but by doing so it adds the image above the title and Yoast does not recognize it as an image on the page as shown http://puu.sh/5UysY/cadd7f9bb8.png
December 27, 2013 at 5:29 pm #203624Hey!
If you want to remove the featured image from the single post page open up /wp-content/themes/enfold/includes/loop-index.php and replace
//echo preview image if(strpos($blog_style, 'big') !== false) { if($slider) $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>'; if($slider) echo '<div class="big-preview '.$blog_style.'">'.$slider.'</div>'; }
with
if(is_single()) $slider = false; //echo preview image if(strpos($blog_style, 'big') !== false) { if($slider) $slider = '<a href="'.$link.'" title="'.$featured_img_desc.'">'.$slider.'</a>'; if($slider) echo '<div class="big-preview '.$blog_style.'">'.$slider.'</div>'; }
Best regards,
PeterJanuary 20, 2014 at 3:12 pm #212235Hi could I request that this functionality be added as an option to the theme.
I.e. add a option box on the theme to turn on / off the lightbox functionality ?
Many thanks
Mark
January 20, 2014 at 3:16 pm #212240Hi!
Feel free to request it here https://kriesi.at/support/topic/enfold-feature-requests/
Cheers!
Yigit -
AuthorPosts
- The topic ‘How to remove Lightbox from Featured Image’ is closed to new replies.