Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Do you want to add a border to a picture on your WordPress site but don’t know how? This guide was written for you, as it features multiple methods to achieve that.

Option 1: Add a Border to a Picture via WordPress Block Editor

One way to add a border to a picture on your WordPress site is through the default WordPress block editor. However, not all versions of WordPress offer an option to add a border to an image through the block editor.

Basically, the option is only available in WordPress version 5.0 or higher. Thus, any WordPress version before version 5.0 won’t have the option to include a border to an image via the block editor.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

That being said, follow the procedures below to add a border to a picture on your WordPress website via the WordPress block editor.

Popular on Amazon
Wacom Intuos Small, Wired Graphic Drawing Tablet with Pen + Software | Battery-free pen, 4 ExpressKeys for shortcuts, works with Mac, Windows & Chromebook; Ideal for creators, students & teachers
  • Wacom Intuos Small Graphics Drawing Tablet: Enjoy industry leading tablet performance in superior control and precision with Wacom's EMR, battery free technology that feels like pen on paper
  • Works With All Software: Wacom Intuos tablet can be used in any software program to explore new facets of digital creativity; draw, paint, edit photos/videos, create designs, and mark up documents
  • What the Professionals Use: Wacom's industry leading pen technology and pen to paper feeling makes it the preferred drawing tablet of professional graphic designers
  • Software and Training Included: Only Wacom gives you software with every purchase. Register your Intuos tablet and gain access to some of the best creative software and Wacom's online training
  • Wacom is the Global Leader in Drawing Tablet and Displays: For over 40 years in pen display and tablet market, you can trust that Wacom to help you bring your vision, ideas and creativity to life
  1. Sign in to the backend dashboard of your WordPress website as an administrator. Then, click Posts or Pages among the options on the left pane, depending on where you want to add a border to an image.
  1. Following that, click the title of the page/post where you want to add a border to a picture to open it. For this demonstration, I will open a post titled “Redacting” on our WordPress site.
Add A Border To A Picture In WordPress Via WordPress Block Editor
  1. When the post/page opens, left-click the Add block icon in the area you wish to upload the picture to which you want to add a border. Next, type “image” in the search field, then select the Image block from the search result.
If the image to which you want to add a border is already uploaded to the page/post, move on to step 5.
  1. In the Image block, click the blue Upload button.
Add A Border To A Picture In WordPress Via WordPress Block Editor
  1. Consequently, the Open window should automatically launch. Hence, navigate to the location where you stored the image you wish to upload, then double-click the image to upload it.
  1. After uploading the image, click it and ensure the Settings panel is selected and opened.
Add A Border To A Picture In WordPress Via WordPress Block Editor
  1. Now, click Borders under the Styles category in the Block tab on the Settings panel. Hence, you will notice a black border surrounding the selected image.

Option 2: Add a Border to a Picture Using a Plugin

Another way to add a border to a picture in WordPress is with the help of an image editor plugin. Although there are quite a number of image editor plugins out there, I recommend the WP Paint plugin.

Hence, read How to Install and Activate WP Paint Plugin in WordPress to learn how to install and enable this plugin on your WordPress site. Then, follow the procedures below to learn how to use the plugin to add a border to a picture in WordPress.  

  1. After you’ve installed and activated the plugin, ensure you are logged in as an administrator on your WordPress site’s backend. Then, click Media among the options on the left pane of the backend.
Add A Border To A Picture In WordPress Using A Plugin
  1. In your WordPress Media Library, select the image to which you want to add a border. Thus, the image’s Attachment details page should open.
If the picture to which you want to add a border isn’t in your WordPress media library, go through our How To Upload A Picture To WordPress Media Library article.
  1. In the Attachment details page, click the Edit Image using WP Paint button under the picture. Hence, the WP Paint image editor plugin should open.
Add A Border To A Picture In WordPress Using A Plugin
  1. Now, click the Tools menu at the top of the WP Paint image editor plugin page. Then, select Borders … from the options that appear.
  1. After that, click the color palette button on the Borders page to select a preferred color for the border.
Add A Border To A Picture In WordPress Using A Plugin
You can turn on the Shadow toggle if you wish to add a shadow to the border.
  1. Then, use the Size slider to increase or decrease the thickness/width of the border.
Add A Border To A Picture In WordPress Using A Plugin
  1. After customizing the border to your satisfaction, click the Ok button at the bottom of the Borders page.
  1. Now, click the blue Save image button at the top left of the WP Paint image editor plugin page to save the change.
Add A Border To A Picture In WordPress Using A Plugin
  1. Lastly, click the “x” sign at the top right corner of the page to close the image editor plugin.

Option 3: Add a Border to a Picture Using HTML

Interestingly, you can also add a border to a picture on your WordPress site using HTML. However, HTML can be daunting for those without HTML knowledge.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Also popular on Amazon
Wacom Intuos Pro Medium, Bluetooth Graphic Drawing Tablet with ProPen 3 | Premium professional pen tablet with ExpressKeys & Dials for shortcuts; ideal for animation, photo, video & 3D pros
  • WACOM’S BEST PEN TECHNOLOGY: Pro Pen 3 offers amazing precision, 8192 pressure levels, tilt support & lag-free tracking for smooth, precise strokes; choose slim, straight or flared grip, adjust balance & button layout for precision and comfort
  • DIAL INTO PRODUCTIVITY: Speed up and stay in the creative flow with 10 customizable tablet ExpressKeys & 2 mechanical dials conveniently located at the top of the tablet and close to your keyboard for efficiency
  • DESIGNED FOR MODERN MONITORS: With a versatile 16:9 format perfect for multiple monitors and wide displays; medium size has a large active area with a small footprint 11.4 x 8.1” / 291 x 206 mm
  • SLEEK AND STURDY: Measuring 4mm at its thinnest this professional-grade drawing tablet feels like pen-on-paper on your desk, combined with the robust durability of magnesium making it equally suited for your office or life on the go
  • WIRELESS FREEDOM: use Intuos Pro with USB or connect wirelessly via Bluetooth to multiple computers with a simple switch

Nonetheless, I will make the procedures as simple as possible. Hence, follow the steps below to add a border to an image in WordPress using HTML.

  1. First, log in to the backend dashboard of your WordPress site as an admin. Then, depending on where you want to add a border to a picture, click Posts or Pages on the left pane.
  1. After that, left-click the title of the page/post where you want to add a border to a picture to open it. In this case, I will open a post titled “Hello” on our WordPress site.
Add A Border To A Picture In WordPress Using HTML
  1. When the post or page opens, click the Options icon at the top right corner and select Code editor.
  1. Now, input the HTML code below in the area you want to include a border to an image. However, replace “image URL” with the URL of the picture to which you want to add a border.
Go through our How to Find Image URL in WordPress article to learn multiple ways to get an image’s URL in WordPress.

Also, replace “size” with a pixel value, depending on how wide you want the border to be. Additionally, replace “color” with the name of your preferred color for the border.

<img src="image URL" style="border: size solid color;">

Thus, the code should appear as follows if I wish to give my preferred image a red border that is 5 pixels wide.

Also popular on Amazon
Sale
Drawing Tablet XPPen StarG640 Digital Graphic Tablet 6x4 Inch Art Tablet with Battery-Free Stylus Pen Tablet for Mac, Windows and Chromebook (Drawing/E-Learning/Remote-Working)
  • Battery-Free Pen: StarG640 drawing tablet is the perfect replacement for a traditional mouse! The XPPen advanced Battery-free PN01 stylus does not require charging, allowing for constant uninterrupted Draw and Play, making lines flow quicker and smoother, enhancing overall performance
  • Ideal for Online Education: XPPen G640 graphics tablet is designed for digital drawing, painting, sketching, E-signatures, online teaching, remote work, photo editing, it's compatible with Microsoft Office apps like Word, PowerPoint, OneNote, Zoom, Xsplit etc. Works perfect than a mouse, visually present your handwritten notes, signatures precisely
  • Compact and Portable: The G640 art tablet is only 2 mm thick, it's as slim as all primary level graphic tablets, allowing you to carry it with you on the go
  • Chromebook Supported: XPPen G640 digital drawing tablet is ready to work seamlessly with Chromebook devices now, so you can create information-rich content and collaborate with teachers and classmates on Google Jamboard’s whiteboard; Take notes quickly and conveniently with Google Keep, and effortlessly sketch diagrams with the Google Canvas
  • Multipurpose Use: Designed for playing OSU! Game, digital drawing, painting, sketch, sign documents digitally, this writing tablet also compatible with Microsoft Office programs like Word, PowerPoint, OneNote and more. Create mind-maps, draw diagrams or take notes as replacement for mouse
<img src="https://wp.blogsandbox.co.uk/wp-content/uploads/2023/01/2023-01-10-12_31_52-Clipboard-3.jpg" style="border: 5px solid red;">
Add A Border To A Picture In WordPress Using HTML
  1. Finally, click the Exit code editor button. Hence, the image should appear with the border and a classic WordPress editor toolbar at the top – see the second screenshot.
Add A Border To A Picture In WordPress Using HTML
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Questions

1. Can I add a border to a PNG image in WordPress?

Yes, you can add a border to any format of image in WordPress, including PNG images.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
2. Can I remove a border from a picture in WordPress?

Sure, you can remove a border from a picture on your WordPress website.

3. What programming language was used to create WordPress?

WordPress was primarily developed using the PHP programming language. As a matter of fact, the plugins and themes available in WordPress were all developed using PHP.

Also popular on Amazon
Sale
HUION Inspiroy 2 Small Drawing Tablet with Scroll Wheel, 6.3 x 3.9, Black | 6 Custom Keys, PenTech 3.0 Battery-Free Stylus for Drawing, Design and Writing; Works with PC, Mac and Android
  • [Advanced PenTech 3.0]: Upgraded from PenTech 2.0 to PenTech 3.0, Inspiroy 2 drawing tablet for pc offers amazing precision & control over every line with no noticeable lag & wobble, just like a standard pen.
  • [Ergonomics Pen Design]: The new digital stylus PW110 is improved designed with slimmer body, soft silicone grip & accessible side buttons for better ergonomics & comfort.
  • [Programmable Scroll & Shortcut Keys]: Unique scroll wheel & 6 press keys on the left of this drawing pad for computer can be customized to your favorite shortcut so that your creative work become smoother and more efficient. You also can change the setting for different apps.
  • [Mobile Friendly]: Enjoy creating on your Inspiroy 2 graphics drawing tablet and see your drawings and paintings come to life on your Android smartphone or tablet (OS version 6.0 or later). It is also available for left-handed user.
  • [Multi-OS Compatibility]: Inspiroy 2 digital drawing tablet is compatible with Mac (MacOS 10.12 or later), PC (Windows 7 or later), Linux(Ubuntu) and certain Android devices (OS version 6.0 or later), ChromeOS 88 or later
4. What is an image border?

An image border is an outline that surrounds or frames a picture.

5. Can I add a border to a picture that is already in my post or page?

Yes, you can add a border to an image that is already in your WordPress post or page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Conclusion

Adding a border to a picture is a simple yet effective way to improve the visual appeal of your WordPress website. This will make specific images on your website stand out from others and help draw attention to them.

Also popular on Amazon
Wacom Intuos Small, Bluetooth Graphic Drawing Tablet with Pen + Software | Battery-free pen, 4 ExpressKeys for shortcuts, works with Mac, Windows & Chromebook; Ideal for creators, students & teachers
  • Wacom Intuos Small Bluetooth Graphics Drawing Tablet: Enjoy industry leading tablet performance in superior control and precision with Wacom's EMR, battery free technology that feels like pen on paper
  • Works With All Software: Wacom Intuos tablet can be used in any software program to explore new facets of digital creativity; draw, paint, edit photos/videos, create designs, and mark up documents
  • Wireless Superior Connectivity: Connect wirelessly via Bluetooth or directly using USB-A cable which enables you to work, draw or create whether it's at a desk, on the sofa, in classroom or even outside
  • Software and Training Included: Only Wacom gives you software with every purchase. Register your Intuos tablet and gain access to some of the best creative software and Wacom's online training
  • Wacom is the Global Leader in Drawing Tablet and Displays: For over 40 years in pen display and tablet market, you can trust that Wacom to help you bring your vision, ideas and creativity to life

Gladly, this guide demonstrated numerous ways to add a border to an image in WordPress. To be specific, we discussed how to execute this task through the default WordPress block editor.

I also provided steps to add a border to a picture in WordPress using a plugin. That’s not all; this guide also included procedures to perform this task using HTML.

I hope this guide was able to help you add a border to an image on your WordPress website. If it was, click on “Yes” beside the “Was this page helpful” question below.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You may also express your thoughts and opinions by using the “Leave a Reply” form at the bottom of this page.

Lastly, visit our WordPress & Websites How-To page to access other helpful WordPress guides.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.