How can I set featured image full width (without margin)


Currently, I'm using the code below, but I think it's dirty way.

article > .tm-article-image:first-child, article header > .tm-article-image:first-child {
    margin: -25px -25px 15px -25px !important;
}

I've managed to make this works by add class to it.

beans_add_attribute( 'beans_post_image_item', 'class', 'uk-width-large-1-1' );

note: uk-width-large-1-1 is width:100% . hope it will works for you also 🙂

Write a reply

Login or register to write a reply, it's free!