October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
CSS

How to Add a Border Around an Image in WordPress

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

To add a border to one image, select its Image block in the WordPress editor and configure the available options under Border in the block settings sidebar. If you want the same outline on images across your site—or your theme does not expose those controls—use theme-level styling instead.

Add a border to one image in the editor

  1. Select the image. In the post or page editor, click the image so its Image block is active.
  2. Open the block settings. If the settings sidebar is hidden, select the settings icon beside the Publish or Update controls. WordPress documents this sidebar workflow in its Border & Shadow Settings overview.
  3. Set the border. Find the Image block’s Border controls and choose the properties available in your editor, such as color, width, and radius. The Image block may also offer shadow settings. Which controls appear can vary with the active theme; see WordPress’s Image block documentation.
  4. Check the result. Preview the image in the editor and on the published page to confirm the outline looks as intended.

Radius controls corner shape: increasing it rounds the corners. Radius alone does not draw a visible outline; configure border properties such as width, style, and color for that.

Choose between block controls and theme styling

Approach Scope Best for Consideration
Image block Border controls The selected image block Adding or adjusting a border on an individual image in the editor Available controls depend on the active theme.
Theme-level styling with theme.json or CSS Can apply consistently to Image blocks across the site A shared design that should be maintained as part of the theme Requires working with theme styles; a broad CSS selector can affect all Image block images.

Why the border controls may be missing

The active theme influences which border controls WordPress exposes in the editor. WordPress’s Theme Handbook explains that settings.border determines which border controls a theme makes available; it does not define the visual style by itself. If the controls are absent, ask the theme maintainer whether the theme supports them, or use a theme-appropriate CSS approach.

For a theme-wide design, WordPress supports styling the core/image block through theme.json. Its documented example sets a 6px radius and generates .wp-block-image img { border-radius: 6px; }—that rounds corners but does not create a visible outline. See Applying Styles in the Theme Handbook and the explanation of border settings.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Jetec 12 Set Acid-free Picture Frame Mats Kit, 3 Sizes Pre-cut, White
  • What you receive: comes with 12 pieces pre cut white picture mats and 12 pieces white core bevel cutting mat boards in a package, nice combination for making photo frames and packaging various photos, enough to satisfy your use and replacement
  • Different dimensions: these display photo frame mats and boards are designed with 3 different sizes, including 4 sets of 5 x 7 inches, 4 sets of 8 x 10 inches, 4 sets of 11 x 14 inches,fitting standard photo frames for family photos, artworks, or memorabilia
  • Hold your photos: Each mat features a bevel-cut interior opening, while the sturdy 1.2mm thick backing panels safeguard your photos from dust, dirt, and moisture. Keep your precious moments well-protected and looking pristine for years to come
  • Add more charms: these photo picture mat board in classic white color could suit any photograph and capture the charm of your photographs, instantly drawing more attentions to the photos, adopted a back panel, adding beauty to the photos and proper for framing your pictures
  • Present the pictures: these anti acid display photo frame mats with white core bevel cutting mat boards could not only store and guard your photos, but also present assorted photos, pictures, artworks, just hang them in living room, office, hall, exhibition room, gallery and more
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Add a simple outline with CSS

A basic CSS rule for Image block images is:

.wp-block-image img {
  border: 2px solid #333;
}

The Image block reference identifies .wp-block-image img as a border-related selector. This selector is broad: it targets Image block images site-wide. To style only one image, use a more specific selector and a way to scope it through your theme or block setup. The place to add custom CSS depends on the site and theme, so there is no universal paste location.

Rank #4
BeYumi Classic Frame Border Trim - 80Pcs Back to School Classic Vintage Bulletin Board Borders Photo Picture Artwork Collage Borders Bulletin Board Set Gallery School Classroom Office Chalkboard Decor
  • Classic Picture Frame Design: This border trim beautifully mimics the look of classic, vintage photo and painting frames. The elegant simulated picture border and matte finishes add an instant touch of polished, gallery-style sophistication to any display.
  • Complete 80Pcs Border Set: Get a versatile 80pcs set that includes white, brown, black, and deep brown classic frame borders. With plenty of pieces, you can mix and match colors or stick to one elegant theme, offering flexible options for creative arrangements on any board or wall.
  • Durable Quality: Crafted from sturdy, fade-resistant cardstock, these borders are built to last. The classic colors and sharp die-cut edges maintain their good looks throughout the school year or holiday season.
  • Easy to Apply: Most pieces feature convenient glue points for quick installation. They adhere securely yet remove cleanly from most surfaces, allowing you to easily update your displays or change themes without any hassle.
  • Perfect for Multiple Spaces: Ideal for framing school bulletin boards, creating gallery walls in classrooms or offices, decorating for holidays, and enhancing home or church displays. It adds a universally appealing touch of classic elegance to any space.
Rank #3
Creative Mark Illusions Metal Floating Frame Kit Pairs for Canvas - Black, Two 11" Sides - Metal Frame Kit for 1-5/8 inch Deep Canvases - For Gallery Wall, Art Panels, Modern Décor
  • Modern Elegance and Sophistication: Illusions Aluminum Floater Frame Kit Pairs offer Metal Canvas Frame and floating effect; These canvas frames are perfect for enhancing any art piece with their modern elegance and sophistication
  • Customization and Flexibility: The aluminum frame kit for canvas allows you to build a frame that suits your needs and frame non-standard art; Simply measure your art and select the appropriate sizes up to 60x60"; 1/8" face, 7/8" rabbet, 1-3/16" overall depth - Perfect for framing a 3/4" canvas
  • Complete Package: Each frame kit comes with all the necessary assembly and hanging hardware; Two kits make one complete frame for canvas, providing simplicity and convenience
  • Easy Assembly and Durable Construction: Our diy canvas frame kit requires simple assembly; The aluminum construction ensures durable and sturdy canvas stretcher frames that withstand the test of time
  • Important: 2 frame kits are needed to build a complete frame; 2 pairs of the same or different size are needed; Ordering only one kit pair will not be enough to build a frame
Rank #2
Creative Mark Illusions Metal Floating Frame Kit Pairs for Canvas - Black - Two 11" Sides - Metal Frame Kit for 7/8 inch Deep Canvases - For Gallery Wall, Art Panels, Modern Décor
  • Modern Elegance and Sophistication: Illusions Aluminum Floater Frame Kit Pairs offer Metal Canvas Frame and floating effect; These canvas frames are perfect for enhancing any art piece with their modern elegance and sophistication
  • Customization and Flexibility: The aluminum frame kit for canvas allows you to build a frame that suits your needs and frame non-standard art; Simply measure your art and select the appropriate sizes up to 60x60"; 1/8" face, 7/8" rabbet, 1-3/16" overall depth - Perfect for framing a 3/4" canvas
  • Complete Package: Each frame kit comes with all the necessary assembly and hanging hardware; Two kits make one complete frame for canvas, providing simplicity and convenience
  • Easy Assembly and Durable Construction: Our diy canvas frame kit requires simple assembly; The aluminum construction ensures durable and sturdy canvas stretcher frames that withstand the test of time
  • Important: 2 frame kits are needed to build a complete frame; 2 pairs of the same or different size are needed; Ordering only one kit pair will not be enough to build a frame

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

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

Read next

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.