Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #170009

    Is it possible to have the featured images in the blogs posts not beeing cropped and having this included:

    class=”attachment”

    That will make a border around the image.

    Regards,

    Mikael

    #170265

    Hey mikaelsv!

    There are small and big featured images. What type of Blog are you using right now? Please check your settings on Enfold > General Settings > Blog Style. Post it here.

    Regards,
    Ismael

    #170327

    Big preview, single author

    and this is what I want to be included in every featured (not cropped) blog image,

    img.attachment, img.frame, .media {
    padding: 7px;
    background: #FFF;
    display: block;
    -moz-box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0px 1px 3px -1px rgba(0, 0, 0, 0.25);
    }

    .media iframe {
    display: block;
    }

    Regards,

    Mikael

    #171525

    Hey!

    Yes this should be possible. Open up /wp-content/themes/enfold/includes/loop-index.php and replace

    
    $current_post['slider']  	= get_the_post_thumbnail($the_id, $size);
    

    with

    
    $current_post['slider']  	= get_the_post_thumbnail($the_id, 'full', array('class'	=> "attachment"));
    

    Cheers!
    Peter

    #171852

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Featured images in blog posts’ is closed to new replies.