How to selectively display widgets on specific posts or pages

WordPress by default display the widget every where. So if you want to display or hide the  widgets based on rules then you will need to make use of plugins.

In this tutorial I will cover 4 plugins which can be used to hide or display widgets in posts or pages control the widget visibility of specific post and pages. At the end o this post I will also share a code snippet for controlling the widget visibility based on conditional logic.

Read moreHow to selectively display widgets on specific posts or pages

How to Insert Line Break in Widget Title

WordPress, by default, does not allow HTML tags in widget title.  If you try to add HTML tags in the widget title, they will be stripped before the widget content is output. So if you want to add Line Break in the widget title, you will need to perform some code jugglery.

In this post I will share a simple technique which you can use to insert line break in the widget title. The concept is simple.

We will create a filter which hooks into Widget_title filter and dynamically add the break tag.

Read moreHow to Insert Line Break in Widget Title

How to get the Widget ID in wordpress

In this Post I will share a short snippet which will display the widget id inside the widget form.

One can also get the widget id by inspecting the html but I find that rather tedious and user unfriendly.  So I wrote this short snippet. All you need to do is include it on your site and every widget form will display the widget-id.

Read moreHow to get the Widget ID in wordpress

How to Show Posts from Certain Categories in WordPress SideBar

Category is an important feature of WordPress. By categorizing your posts, you can provide a properly organized site to your visitors. Unfortunately, WordPress does not provide lots of options when it comes to displaying category or related posts. In this regard, the only option you have is the Recent Posts widget. The simple and basic widget does not provide any customization or sorting options.

In today’s post, I will discuss about four plugins that will let you display posts from specific categories. These plugins will allow you to display recent and relevant posts in different ways.

Read moreHow to Show Posts from Certain Categories in WordPress SideBar

How to Insert Navigation Menu inside a Page or a Post

In this Post I will share a technique which can be used to insert the Navigation Menu inside your content like Page or a Post. It is really simple and can be done without writing any code.

The Idea Behind

Well the concept is pretty simple. We will insert the navigation menu by embedding the Custom Menu widget inside our content. We will utilize the AMR Shortcode Widget plugin for this.

Read moreHow to Insert Navigation Menu inside a Page or a Post

How to add Widget to Pages and Posts in WordPress

Widgets are very powerful and are extremely easy to use. However their usage is  limited to the widget ready areas.   What if you want to embed widget in a Page or Post?

In this post I will cover a plugin which allows you to embed any widget in a Page or Post. The plugin  AMR Shortcode Widget. Its a very popular plugin with 4.9 rating and has over 100,000 downloads.  Here are the instructions to use it

Read moreHow to add Widget to Pages and Posts in WordPress

How to Display or Hide Widgets on Specific Pages and Posts

In this post I will cover 2 plugins which can be used to conditionally display widgets on specific pages. There are a lot of use cases for conditionally displaying widgets. For example if you want to display the login widget on particular pages, then you can do so easily with these plugins

Using the Display Widget Plugin (link)

The Display Widget Plugin is immensely popular. It has been downloaded half a million times and has rating of 4.8.

Using the plugin is quite straight forward. Just Install and activate the plugin.

Read moreHow to Display or Hide Widgets on Specific Pages and Posts

How to Change Background Color of Text Widget – WordPress

In this Post I will show how you can quickly change the background color of a WordPress Text Widget.  Here are the instructions

Change the Background Color of all Text Widget

Use the following CSS rule to customize the background color of all text widgets.

.sidebar .widget_text { background-color:yellow; }

This rule will ensure that all text widgets have yellow as their background color. You can use the Simple Custom CSS plugin to add this style rule to your wordpress site

Read moreHow to Change Background Color of Text Widget – WordPress

Display Business Hours in WordPress Sidebar

A lot of Service Business like Spa , Salon , Restaurants etc.  display Opening / Working Hours on their website. In this Post I will share a simple snippet to add Working / Business Hours to the WordPress SideBar.

We will utilize the all powerful WordPress Text Widget to display the business Hours.  Since the Text Widget Supports HTML , it is a matter of pasting an html snippet to display Business Hours.

Read moreDisplay Business Hours in WordPress Sidebar

A Simple Guide to customizing WordPress Text Widget

In this post I will share a few techniques to customize the WordPress Text Widget . Though the Text Widget looks  basic, it actually is quite powerful.  If you are willing to learn a bit of CSS, you can customize it in a lot of ways.

In this short guide I will be covering following topics.

  1. How to add HyperLink inside Text Widget
  2. How to add Image to the Text Widget and How to link the image.
  3. How to add a Youtube Video to Text Widget
  4. How to add Link to Widget Title
  5. How to Style the Text Widget
  6. How to add and style a List in Text Widget
  7. How to add ShortCode to a WordPress Widget

Read moreA Simple Guide to customizing WordPress Text Widget