Medium-like Full View Featured Image?

  • Posted in : Read WP
  • luukk
    Participant

    Hi!

    Is there a way to use a featured header image in full view, the way that Medium does?

    Regards,

    Luuk

    ahmetsali
    Keymaster

    Hi, try this custom css code;

    .featured-image img {
        position: absolute;  left: 0;  width: 100%;
    }
    

    and add this to External JS box;

    jQuery(document).ready(function($) {  
           $('.featured-image').each(function(index, element) {
                $(element).css("min-height", $(element).find('img').height());
    			$( window ).resize(function() {
    			  $(element).css("min-height", $(element).find('img').height());
    			});
            });
    });
    
    luukk
    Participant

    Thanks you so much!
    :)

    Really appreciate it!

    Regards,

    Luuk

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register