When You Need To Set an Expire Date for Widgets?

Sometimes you may want to run a promotional campaign on your website, a campaign that expires at a given time. By setting up an expiration date for the widget, you can hide it from the users when the campaign is over. There can be many other uses, like for example hiding ads when their time slot is over, or hiding seasonal widgets during holidays.

Video Tutorial

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

To set up expire date for widgets in WordPress all you need to do is install and activate the Dynamic Widgets plugin. After activation, you need to go to Appearance » Dynamic Widgets area. There you will see all your currently displayed widgets in their respective sidebars.

To set an expiration date for a widget, simply click on the edit link below the widget title. This will open the widget in the Dynamic Widget’s widget editor. Now you need to click on the date option and select No under ‘Show widget always?’ option. Below it you can set a display duration for the widget.

The widget will expire when it reaches the end date. Upon expiration your widget will still be available under admin section, but it will not be displayed publicly on your site.

Dynamic Widgets can also be used to set other conditional rules on widget display. For example, you can display a widget on certain sections of your website, or you can set to display a widget on certain days of the week, month, etc.

We hope this article helped you gain more control over WordPress widgets. What other features would you like to see in WordPress widgets to make them more dynamic and powerful?

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.

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Get 50% off All in One SEO Pack Pro, the most popular WordPress SEO plugin in the market.

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).