Buy me a coffee

How to Add Border to Pictures in WordPress

To add border to pictures in WordPress Post/Page, just follow these steps


1. Appearance > Customize


2. Custom CSS (or Additional CSS)


3. Insert this CSS

p img {
border-width: 1px;
border-style: solid;
border-color: #f6f6f6;
border-radius: 5px;


The CSS will add border to images in All Posts, Pages in WordPress.

Border-Color: You can use Color Name (red, black,…) or Color Code (#f6f6f6, #ddd,…)

Border-Width: You can use PX

Border-Style: You can use: Solid, dotted, dashed, double

Border-Radius: You can use PX or %

Leave a Comment

Ask me a question, free

If your site is private or in trial, just setup password and share url. See how to:
Please check your email carefully. Recently I got a lot of questions with wrong emails.

If you haven't heard from me within 24 hours please check your junk/spam folder