Delete “sizes” attribute – wordpress

i’m just trying display image on my wordpress page from admin panel… and it works, but it generates me a lot of useless attributes… now its looks like this:

<img class="alignnone size-full wp-image-50" src="uploads/2016/02/moves.jpg" 
alt="moves" srcset="uploads/2016/02/moves-300x191.jpg 300w,
uploads/2016/02/moves.jpg 700w" sizes="(max-width: 700px) 100vw, 700px">

i need only this:

Read More
<img class="wp-image-50" src="uploads/2016/02/moves.jpg alt="moves">

How to fix it?

Related posts

1 comment

  1. You can use wp_get_attachment_image_src example

     $src= wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 720,405 ), false, '' );
    

    in HTML

    <img src="<?php echo $src[0];?>" class="wp-image-50" alt="move" >
    

Comments are closed.