Whenever we build a custom WordPress website and need to make it responsive, we remove the height and width from images inserted into the post content so that they’ll play nicely in a responsive layout.

// Remove height/width attributes on images so they can be responsive
add_filter( 'post_thumbnail_html', 'remove_thumbnail_dimensions', 10 );
add_filter( 'image_send_to_editor', 'remove_thumbnail_dimensions', 10 );

function remove_thumbnail_dimensions( $html ) {
    $html = preg_replace( '/(width|height)="d*"s/', "", $html );
    return $html;
}

This is just one of the many customizations we make to the WordPress system to get it ready for a fully responsive web design experience.

Latest from the Lab

Alliant Association Management: New Logo, Brand Identity and Website

A new logo, brand identity and website for Alliant Association Management, an HOA and
What the latest AI news means for your website

What the Latest AI News Means for Your Website

A plain-English roundup of the biggest AI news from September and October 2026, and
blank

Website Launch: SanibelCoyote.com for the City of Sanibel

We built SanibelCoyote.com for the City of Sanibel: an online coyote reporting tool, an
Accessible health care websites we remediated

WCAG 2.1 AA Website Accessibility for Health Centers and Government

The federal web accessibility deadlines moved to 2027 and 2028, but the WCAG 2.1