WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Beginners Guide» How to Add an Image in WordPress Sidebar Widget

How to Add an Image in WordPress Sidebar Widget

Last updated on July 9th, 2018 by Editorial Staff
190 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Add an Image in WordPress Sidebar Widget

Do you want to add an image to a sidebar widget in WordPress? By default, WordPress makes it easy to upload and add images anywhere on your website. In this article, we will show you how to easily add an image in your WordPress sidebar widget. We will share multiple methods, so you can use one that works best for you.

Adding an image in WordPress sidebar widget

Video Version

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

Adding an Image in WordPress Using The Image Widget

The easiest way to add an image in WordPress sidebar is by using the default ‘Image’ widget.

Simply go to Appearance » Widgets page and add the ‘Image’ widget to your sidebar. If you haven’t used widgets before, then see our guide on how to add and use widgets in WordPress.

Add image widget

The widget will expand, and you will be able to see its settings.

The first option is to add a title to the image widget. After that, click on the ‘Add Image’ button to continue.

This will bring up the WordPress media uploader where you can click on the upload files button to upload your image or select an image you have previously uploaded.

Image settings

After uploading the image, you will see image settings in the right column. From here, you can provide a title / ALT text for the image, add a description, select size, or even add a link.

Once you are done, you can click on the ‘Add to Widget’ button to save your changes. You will now see a preview of the image inside the widget settings area.

Widget preview

Don’t forget to click on the ‘Save’ button to save your image widget.

You can now visit your website to see the image displayed on your WordPress blog’s sidebar.

Sidebar image preview

Adding an Image in WordPress Sidebar Using Text Widget

Adding an image to the sidebar using the default ‘Image’ widget is quite easy. However, sometimes you may need to add an image with custom HTML or text with formatting. In that case, you will need to use the ‘Text’ widget instead.

Simply go to Appearance » Widgets page and add the ‘Text’ widget to your sidebar. Under the widget settings, you will see the ‘Add Media’ button above text edit area.

Add an image in WordPress sidebar using Text widget

Clicking on the button will bring up the media uploader allowing you to upload or select an image from the media library.

After selecting your image, click on the ‘Insert into post’ button. You will now be able to see an image preview in the text widget settings.

You can continue adding text and other elements to the text widget. The toolbar in the text editor gives you some basic formatting buttons.

Adding an image with text and basic formatting

Once you are done, don’t forget to click on the ‘Save’ button to store your widget settings.

You can now visit your website to see the sidebar image in action.

Image displayed using text widget in sidebar

Manually Adding an Image in WordPress Sidebar Widget

In some cases, you may need to add additional HTML code to your image. The default text widget allows some very basic HTML, but it may not work with advanced HTML or formatting. In that case, you will need to manually add an image to your blog’s sidebar.

First, you need to upload the image to your WordPress site. Simply go to Media » Add New and upload your image file.

After uploading the image, you need to click on the Edit link next to the image.

Upload and Edit an image file in WordPress

WordPress will now take you to the ‘Edit Media’ page where you will see the image file URL on the right side of the screen. You need to copy this URL and paste it into a text editor like Notepad.

Copying the image file URL in WordPress

Next, you need to go to Appearance » Widgets screen and drag-drop ‘Custom HTML’ widget to your sidebar where you want to display the image.

Manually add image to WordPress sidebar widget

In the text box area of the widget, you need to add your image using this code:

<img src="Paste The File URL Here" alt="Strawberries" />

The img tag is used in HTML to display images. It needs two attributes, the first one is src which defines the image file location. This is where you will paste the URL you copied earlier.

The second one is alt which is used to provide an alternate text for the image. Your final img tag will look something like this:

<img src="http://www.example.com/wp-content/uploads/2014/09/strawberries.jpg" alt="Strawberries" />

You need to click on the Save button to store your widget settings and then preview your website.

Adding an Image in WordPress Sidebar Using a Plugin

Another way to add images to your WordPress sidebar is by using a plugin. This will give you a few more options and a simple interface, which some beginners may find easier than the default ‘Image’ widget.

First, you need to install and activate the Image Widget plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, simply go to Appearance » Widgets page. You will notice a new widget labeled ‘Image Widget’ under available widgets column. Simply drag and drop this image widget to your WordPress sidebar where you want to display an image.

Image widget plugin

Next, click on the ‘Select Image’ button to upload an image or select one from the media library. After that you need to click on the ‘Insert to Widget’ button, and you will see the image preview under widget settings.

You can add a title, alt text, link, and a caption for the image. You can also choose an image size from the list of available options.

More settings for image widget plugin

Once you are satisfied, simply click on the Save button to save the image widget. That’s all, you can now go to your website and see the image displayed in your sidebar.

We hope this article helped you add an image in WordPress sidebar widget. If you come across a problem, don’t forget to look at our guide on how to fix common image issues in WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Google+.

190 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

50 Comments

Leave a Reply
  1. Holly says:
    Mar 30, 2019 at 2:20 am

    Hi,

    I just submitted a question about my image only showing up on the home page and not other pages on the site. I resolved my issue and wanted to share the solution in case it helps someone else. I was trying to use the Custom HTML widget to SHOW a couple of images to my Content Sidebar and when I specifically configured the addition of the pages I wanted to show, (leaving “Match all” UNchecked), the images only showed up on the Home page.

    The solution was to reverse it and tell the widget to HIDE if the page was 404 (or whatever you want). Now the images show up on the sidebar of all my pages. :-)

    Thank you,
    Holly

    Reply
    • WPBeginner Support says:
      Apr 1, 2019 at 11:47 am

      Thanks for sharing your resolution :)

      Reply
  2. Holly says:
    Mar 30, 2019 at 2:10 am

    Hi,

    I got the custom HTML widget working on the home page but the images are not showing up on the other static pages. I configured the settings to “Show if” my desired pages are selected but the image only shows up on the home page. I’ve tried deleting and re-adding the widget and removing and re-adding pages. Any ideas?

    Thank you!
    Holly

    Reply
    • WPBeginner Support says:
      Apr 1, 2019 at 11:45 am

      Depending on your theme, the widget area you are placing it at may only display on your home page. You would want to check with the theme’s support for where those widgets should show :)

      Reply
  3. Alice says:
    Jan 10, 2019 at 11:53 am

    Hi, I am trying to add the picture and have it show up in the upper left corner of the post. When I add it and preview everything is there but when I publish it is not there. Any ideas?

    Reply
    • WPBeginner Support says:
      Jan 11, 2019 at 11:48 am

      You may want to try clearing your caching to be sure it is not caused by that: https://www.wpbeginner.com/beginners-guide/how-to-clear-your-cache-in-wordpress/
      As well if you check with your theme’s support there may be a theme specific setting that needs to be changed

      Reply
  4. Kathy Turner says:
    Aug 22, 2018 at 10:11 am

    I have added an image to my footer and in Chrome on a desktop it appears and then immediately disappears. I have reduced the size, I have tried adding it as an image in html but nothing solves the problem. On chrome on my mobile it is fine. I don’t have adblock on my desktop. The problem also occurs with Firefox but Microsoft Edge all works fine. Any ideas?

    Reply
  5. harika says:
    Jun 4, 2018 at 1:40 pm

    hi i have created blog in wordpress but posting content language is telugu.i want to change the font style of telugu post how?

    Reply
  6. Micky says:
    Oct 30, 2017 at 11:33 am

    Hi there,

    I’ve tried both mehods listed in this video, and still the sidebar image is not showing up at all.

    Any ideas on how I could trouble shoot this?

    Thanks!

    Reply
  7. Doma says:
    Aug 29, 2017 at 2:35 pm

    Thanks it was quick n to the point….v helpful.

    Reply
  8. MS Rahman says:
    Aug 16, 2017 at 11:02 am

    I want show a default image while nothing on the widget. How to do this?

    Thanks

    Reply
  9. Krishna says:
    Jul 21, 2017 at 4:35 am

    Is there any way I can set the image so that the image is displayed only on the start / home page?

    Reply
  10. Sara william says:
    Jun 21, 2017 at 10:52 am

    Thanks. I am trying hard for uploading my profile pic on and now it can be done easily.

    Reply
  11. Anette says:
    Apr 26, 2017 at 10:26 am

    Thanks for the explaining it in easy steps!

    Reply
  12. Rebecca Claxton says:
    Feb 7, 2017 at 2:02 pm

    Thanks for always being top of random searches I do for WordPress stuff – and thanks for the useful info suitable for everyday folk using WP!

    Reply
    • WPBeginner Support says:
      Feb 7, 2017 at 9:26 pm

      Hi Rebecca,

      We are glad you find WPBeginner helpful :) Don’t forget to join us on Twitter for more WordPress tips and tutorials.

      Reply
  13. Karthik Marripoodi says:
    Feb 2, 2017 at 3:53 am

    Thanks for writing about this in detail. I want to put my ads on the widget section. This method will perfectly suit my requirement. But I just have one problem. How to add different image for different blog posts. Is there a way to do that?

    Reply
  14. Minhaz says:
    Jan 15, 2017 at 5:01 am

    great post, love wpbeginner

    Reply
  15. Mark says:
    Dec 26, 2016 at 10:53 pm

    I believe the video said “Alt tag”. That wouldn’t be the correct terminology – it would be the Alt Attribute of the tag.

    Reply
  16. Victoria says:
    Dec 15, 2016 at 6:00 pm

    Love this tutorial, however I am skeptical to download the image widget because it says that it is untested with my version of WordPress. Will there be updates coming soon or how does it get tested with my version of WordPress?

    Reply
    • WPBeginner Support says:
      Dec 20, 2016 at 2:08 pm

      Hi Victoria,

      Please take a look at our article on should you install plugins not tested with your WordPress version.

      Reply
  17. melessa says:
    Dec 1, 2016 at 10:46 am

    Hi, I hope I didn’t overlook it somewhere in the comments, but how do you put a circular or oval instead of square image for the about me in side bar? I’m using divi by elegant themes.

    Reply
    • WPBeginner Support says:
      Dec 1, 2016 at 5:45 pm

      See our guide on how to add round gravatar images in WordPress. The article talks about gravatar but you can use the CSS with any image.

      Reply
  18. Rod says:
    Nov 11, 2016 at 8:02 am

    Hi,

    Any idea why bullet points wouldn’t show up in the sidebar widgets despite having taken off “list-style-type: none” from the css file and replaced it with the following code and it still doesn’t work:

    .widget ul li { list-style: circle }

    Reply
  19. Sam says:
    Nov 11, 2016 at 6:48 am

    How can i make the image a clickable link.

    Thanks

    Reply
  20. David says:
    Nov 6, 2016 at 11:26 am

    wow! spot on. The visual text is too much work for just a plain image. I have been looking for a plugin that does exactly this. thanks a lot

    Reply
  21. Molly says:
    Oct 14, 2016 at 4:36 pm

    Thanks, this is exactly what I needed, and you made it so easy!

    Reply
    • WPBeginner Support says:
      Oct 16, 2016 at 4:06 pm

      Hey Molly,

      Glad you found it useful :) You may also want to subscribe to our YouTube Channel for WordPress video tutorials.

      Reply
  22. Sandra Wiese says:
    Oct 9, 2016 at 6:59 am

    Thank you very much – works perfectly!

    Reply
    • WPBeginner Support says:
      Oct 10, 2016 at 1:07 pm

      Hey Sandra,

      We are glad you found it useful :) You may also want to subscribe to our YouTube Channel for WordPress video tutorials.

      Reply
  23. Jana says:
    Oct 3, 2016 at 1:41 pm

    Hi,
    I have a couple of questions. First, I am having trouble installing the Widget Image plugin for some reason. I’ve installed plugins before but I can’t seem to do this one. Granted, I’m a beginner and I added them almost a year ago so maybe I’ve forgotten something. Can you give me any tips?

    Also, believe it or not, I got a picture on my widget using the html coding! (Surprised I could code, but you made it very easy and understandable) The only problem I have is that it is full size and I’m hoping to have thumbnails. Is there code for that? If so, I don’t need to install the plugin.
    Thanks!

    Reply
    • WPBeginner Support says:
      Oct 4, 2016 at 12:26 am

      You can create a smaller image on your computer using any image editing tool and then upload that image.

      Reply
  24. James McAllister says:
    Jul 20, 2016 at 5:51 am

    I had a read at this to try and update the image I have on a widget on my blog.

    Are you guys on the same planet as the rest of us? Have a read at what you wrote – you’d have to be a Philadelphia lawyer crossed with Steve Jobs to understand the instructions.

    Anyway – back to trying to change the image, I’m sure the trick is in there somewhere.

    Reply
  25. Marvis says:
    Jun 23, 2016 at 5:21 am

    Thank you so much for this info. But i really need to know how to display google ads on my posts and sidebar as well. I have an approved adsense account already and i have generated the ad code. But the next step to take is what i don’t get. I need help please.

    Reply
    • WPBeginner Support says:
      Jun 23, 2016 at 8:50 pm

      Please take a look at our guide on how to manage ads in WordPress with Adsanity.

      Reply
  26. Abbie says:
    Feb 1, 2016 at 4:00 pm

    Either I have overlooked many things you have talked about or the site has changed. I do see an option for an image widget which you state does not exist. I do not see any media or gallery to which I can upload an image file.

    So, where do I upload the file so I can get a URL to put in the necessary place on the form to set up the image widget?

    Reply
    • Paul says:
      Mar 1, 2016 at 10:31 am

      Upload to your media libary

      Reply
  27. Nikki says:
    Jan 20, 2016 at 9:37 am

    Thank you, this was very helpful. the video could have been a little slower

    Reply
  28. Luke says:
    Jan 16, 2016 at 2:36 pm

    Thanks for the help! Definitely easier to just get the image widget plugin.

    Reply
  29. manmohan says:
    Dec 15, 2015 at 2:26 pm

    It Is Really Helpful For Me …thank u for this post.
    But I Have A Question

    Reply
  30. Erica says:
    Oct 23, 2015 at 5:05 pm

    Hi there. I know how to get the images in the sidebar, but they take up too much space so I am trying to do a click-through gallery here. I get the little click-through box, but no images show. I was also able to do an auto-slideshow, but it is very distracting so I don’t want that. I just want the photo gallery that you click through to the next image, but I can’t find anything on how to fix this here.

    Reply
    • WPBeginner Support says:
      Oct 24, 2015 at 12:11 pm

      Please take a look at our guide how to easily create responsive WordPress image galleries with Envira.

      Reply
  31. Giulia says:
    Sep 10, 2015 at 10:26 am

    Hi,

    I am having an issue adding image widgets. When I try adding a new one (after having deleted one too) the changes don’t save, the page stops loading, and when I try to access the site (admin and normal) it says can’t connect to server – so basically my site is down. I restarted my computer and installed updates and this solved it the first time, but when I tried adding the widget again the same thing happened, except restarting doesn’t seem to help anymore!

    Please help! I would really appreciate it!

    Thanks in advance!

    Reply
  32. Gregor Egan says:
    May 25, 2015 at 5:11 pm

    Hi, Thanks for that, it works a treat. I have a question; I don’t want the same image to appear on every page so how to I restrict it to a particular page so that I can use a different image on subsequent pages.

    Regards,

    Gregor

    Reply
  33. WPBeginner Staff says:
    Feb 18, 2015 at 6:47 pm

    Thanks Lee, we are working on that.

    Reply
  34. Lee says:
    Feb 17, 2015 at 1:26 am

    Thank you, the video is helpful but you zip through the dialogue so fast I had to hit pause, rewind pause, pause, repeat….many times. Please realize some of us are ABSOLUTE newbies on WordPress. Thanks for the great material…but slower would be more helpful. :-)

    Reply
  35. Sheryl Anderson says:
    Dec 27, 2014 at 2:02 pm

    I have the image in the widget – what I want to know is how to point that widget to an opt-in form – how do you add that code

    Reply
  36. Sultan Ayyaz says:
    Oct 12, 2014 at 9:54 am

    The idea of image widget is really new and very helpful to add image in wordpress sight. very helpful article.

    Reply
  37. Fiona says:
    Sep 8, 2014 at 8:21 pm

    I’ve been wanting to learn how to do this. Perfect timing. Thankyou!

    Reply
  38. chzumbrunnen says:
    Sep 8, 2014 at 12:41 pm

    Another nice way is using the text widget but with the TinyMCE Editor (like it’s used for posts). There’s a plugin for that (actually there are more then one): https://wordpress.org/plugins/black-studio-tinymce-widget/

    Reply

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
WP Mail SMTP logo
WP Mail SMTP
Fix WordPress email delivery issues. #1 SMTP plugin. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
IPVanish Coupon
Get 20% OFF on IPVanish, one of the best VPN service providers for bloggers and WordPress users.
Theme Trust
ThemeTrust Coupon
Get 20% off on all ThemeTrust themes brought to you by Henry Jones.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.