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.Continue Reading

How to remove the url field from the comment form

If you have ever run a blog, you must have faced the problem of comment spam. Spammers engage in comment spam for link building purpose. One simple way to discourage spammers is to remove the url field from the comment form. This will ensure that spammers cannot use your comment form for link building purpose. […]

Continue reading...

Quick Tip – How to disable theme updates

In this post I will share a simple technique which can be used to disable theme update. This will prevent both automatic and manual updates. Running an outdated theme is not the best practice, but there might be some use cases where not updating the theme is required. For this tip to work, you don’t need […]

Continue reading...

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 […]

Continue reading...

How to add custom CSS in wordpress – without using any plugin

There are quite a few custom css plugins , however majority of them apply the custom css site wide. If you want to apply the css to a specific page, then one approach is to make edits to the theme functions.php file. However this approach is not recommended , as the changes will be lost […]

Continue reading...

How to Highlight the Active Page in WordPress Navigation Menu

WordPress adds a class of .current-menu-item to menu item for the page which is being currently viewed by the user. In order to highlight the active page, you can simply add css to target this class. Simply use a custom css plugin to add the rules.

Continue reading...

How to Bulk Import Users in WordPress

Its very easy to a manually create users in WordPress , but things are not easy if you want to add a bunch of users in one go. WordPress does not have any inbuilt Import Users wizard, so if you want to add hundreds or thousands of users you are out of luck. You will […]

Continue reading...

How to Link Widget Titles in WordPress without using a plugin

By default WordPress does not accept hyperlinks in the widget title.  Even if you enter a hyperlink , it will strip down all the html tags  and simply print out the text.  So basically in order to link the widget titles, we’ll need to find a way to make WordPress accept html in Widget Title. […]

Continue reading...

How to Display WordPress Login Form in the Sidebar

The one page WordPress site administrator’s use the most is the login page. And most of us have tried to customize the look of that page in one way or another. However, despite providing a custom look, the login page does not always have to be a separate page. On the contrary, you can easily […]

Continue reading...

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 […]

Continue reading...