Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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 11 years ago by TJ Martin.
    #202971

    Hey!

    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! 
    Josue

    #203003

    Thank 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

    #203624

    Hey!

    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,
    Peter

    #212235

    Hi 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

    #212240

    Hi!

    Feel free to request it here https://kriesi.at/support/topic/enfold-feature-requests/

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to remove Lightbox from Featured Image’ is closed to new replies.