Tag Archives: remove image borders wordpress

How to Remove Image Borders in WordPress

Remove Image Borders in WordPress, Remove Image Borders in WordPress

WordPress just recently converted to using blocks from the classic editor. While using the classic editor it was possible to go to the WP admin site and remove border by right clicking the image and scrolling down to border properties, setting the border width to 0. However with the new block structure they have made it more difficult to remove borders to where you need CSS knowledge with some themes.

The below instructions allow you to remove all image borders throughout the site.

Please navigate to My Site > Design > Customize > CSS > and copy/paste the below-mentioned CSS code. Click publish on top of the left frame to save the changes.

/** remove borders of images $13141658-hc */ img[class=”align”], img[class*=”wp-image-“] {
border: 0px;
}