Universal WebTech
  • Home
  • About US
    • Our Team
    • Privacy Policy
    • Our Clients
    • Terms of use
  • Service
    • Web Development
    • E-Commerce
    • Android Development
    • UI UX Design
  • Our Portfolio
  • Career
  • Blogs
contact
hamburger

Remove height & width attributes from images In WordPress posts

[vc_row][vc_column width=”1/1″][vc_column_text]Simply add this scrap to the functions.php of your wordpress subject and the majority of the width and tallness characteristics will be expelled from your pictures.

add_filter(‘post_thumbnail_html’,’remove_wps_width_attribute’, 10 );

add_filter(‘image_send_to_editor’,’remove_wps_width_attribute’, 10 );

function remove_wps_width_attribute( $html )
{
$html = preg_replace( ‘/(width|height)=\”\d*\”\s/’, “”, $html );
return $html;
}[/vc_column_text][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][/vc_column][/vc_row]

Universal WebTech

Universal WebTech IT Solutions is a leading web and mobile development company in Ahmedabad, India that believes in winning trust of its clients through 100% quality service and time-oriented work.

Company

  • About us
  • Careers
  • FAQs
  • Testimonials
  • Blogs
  • Our team

Service

  • Web Development
  • Android Application Development
  • eCommerce Web Development
  • Open Source Customization
  • UI / UX / Logo Design Services

Copyright © 2025 Universal WebTech

  • Terms of use
  • Privacy Policy