How to Use HTML in WordPress Text Widget


WordPress makes it easy to add content to sidebars by providing users with "widgets" like calendars, log-in boxes and archive lists. Users log into their WordPress dashboards and drag and drop the widgets into whichever sidebars they like. One useful, multi-purpose widget is called "Text," but it can do much more than just add text to the sidebar. Add HTML to the "Text" widget to add images, advertisements or whatever else you need.

  • Visit and log into your WordPress dashboard. Click "Appearance" and then "Widgets" in the left-hand menu. On the right-hand side of the screen are your website's sidebars and other widget-capable areas, named things like "Sidebar" or "Footer Widget Section." These names usually describe the section of the page they effect. Click on the one you want to work with to expand it.

  • Find the "Text" widget in the middle of the "Widgets" page and drag and drop it into the sidebar of your choosing. You can add as many "Text" widgets to as many sidebars as you like.

  • Fill in the title if you wish a title to appear over the widget's content when you visit the site. Leave it blank if you do not want a title. Paste your HTML code into the bottom input field of the "Text" widget. Check that the checkbox at the bottom is not checked, because automatic paragraphs will interfere with your HTML code. Click the "Save" button to update the widget with your new content.

Tips & Warnings

  • You can also add JavaScript code, which is often found in codes for advertisements. You can further customize HTML in the widget using Cascading Style Sheet (CSS) code.
  • Do not add PHP code to a "Text" widget, as it is incompatible and may cause the site to break.


  • Photo Credit Jupiterimages/ Images
Promoted By Zergnet


You May Also Like

  • How to Add Widgets to Wordpress

    Wordpress is one of the big names in content management and blogging. With the flexibility of using Wordpress as a blog or...

  • How to Use WordPress

    WordPress is a software and service that can be downloaded and incorporated into your website. WordPress is most commonly used for blogging...

Read Article

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!