Hi Dave !
Fantastic plugin ??
Is there a way to make certain ContactForm7 drop-down options only available for dates specified using your extension? I tried to use it in the code of a form, but the shortcode is displayed in plain text and is not interpreted.
Best Regards
]]>Hello
I have this problem with the recurring time rules:
[time-restrict-repeat type=”weekly” onday=”Friday” offday=”Saturday” ontime=”21:00:00″]Message[/time-restrict-repeat]
What I want to do is display a message on Friday and Saturday, from 9:00PM until 23:59:59.
It is Saturday, at 8:00 AM, and the message is showing. Am I doing something wrong? Any advice would be greatly appreciated.
Even including the offtime=”23:59:59″ is still showing outside the time range.
Thank you
I’ve used this plugin without any issues for a few years now, but recently I’ve had a few complaints that our students aren’t able to see a form that should be displayed between 5pm and midnight. I have not been able to reproduce the issue myself, but all 3 students reported that they are using Chrome on Windows. One staff member provided a screenshot from iOS showing that no form was displayed during a valid time.
I recently migrated this site from on-prem to our public web host (SiteGround). Since I had no issues while it was on-prem I’m leaning towards a hosting issue. I was wondering if this could be a possible caching issue that can be configured with the SiteGround Optimizer plugin. I may open a ticket with SiteGround support to ask them, but I wanted to run it by here as well. Any history of caching causing an issue with this plugin?
]]>I’m trying to use the plugin, but I’m having trouble.
I need to show content according to the days of the month, that is, every month will repeat according to the days. Example?
1st to 10th of the month
Content xxx01
11th to 20th of the month
yyy02 content
21st to 31st of the month
Content aaa03
Does any colleague have an example?
]]>Hi and thanks for this helpful plugin.
On my website there is text that should show only at a certain time. Also, this text is different for each day.
Sometimes the text from the previous day would still show instead of the current day’s text. E.g., if today is Friday, it would still show the Thursday text instead of the Friday text.
But a mere case of lagging is out of the question since there is a time gap of several hours between the Thursday text and the Friday text, when no text should show. Additionally, my WP backend shows the correct time for my locale.
As far as I can tell, the issue seems to be tied to the number of web page calls. But then again sometimes the issue would not surface at all.
Dave, could you provide some reassurance that this will perform as expected on WP 5.8? Have a number of sites using this and would like to move them up to 5.8 asap.
]]>Hi,
Thanks for your plugin. I have few restaurant websites that I need to implement lunch menu. I am thinking to accomplish this by creating separate “Lunch” category and show only certain times. As example let’s say I want to show Lunch category only Monday – Friday between 11:00 – 15:00. What would the shortcode will look like and where do I exactly insert?
Thanks
See my testing site below:
]]>Hi,
I have been using this plugin to show/hide a restaurant menu daily that should appear in the morning and end in the evening. The shortcode was working for some time but all of a sudden it’s no longer working. I’ve updated WordPress and Divi and all other plugins. When I turned off the Show/Hide plugin, the menu displayed fine. Are there any issues? Seems like the plugin is not tested with the latest version of WordPress. Please let me know.,
]]>Hi, not sure if this is possible, but would be awesome option to have.
E.g.,
[time-restrict post_date=”yes” on=”2020-9-01″]Important Changes as of Sept. 1, 2020[/time-restrict]
this would allow posting content *only* after post dates of Sept. 1, and not on post dates prior to date.
So, a special instruction for folks on a template, where only those with a ‘report’ let’s say, after Sept 1 would see message, but any older posts would not see message.
Anyway, was thinking that would be massive neato thing to have an an option with this. Using post date as reference for whether or not to show content, via a toggle for that.
]]>[time-restrict-repeat type=”weekly” onday=”Monday” offday=”Tuesday” ontime=”10:00:00″ offtime=”18:00:00″ else=”1″][time-restrict-repeat-2 type=”weekly” onday=”Wednesday” offday=”Thursday” ontime=”10:00:00″ offtime=”18:00:00″ else=”2″][time-restrict-repeat-3 type=”weekly” onday=”Friday” offday=”Saturday” ontime=”10:00:00″ offtime=”18:00:00″ else=”3″][contact-form-7 id=”34″ title=”XXXXXXXXX”][/time-restrict-repeat-3][/time-restrict-repeat-2][/time-restrict-repeat]
tnks
]]>Below is the code that I have – the issue is that both the 1st and 2nd are active at 9:42 AM
[time-restrict-repeat type="weekly" onday="Monday" offday="Friday" ontime="08:45:00" offtime="11:00:00"]
Reservations are open: This message shows Monday to Friday from 8:45am and 11:00am
[/time-restrict-repeat]
[time-restrict-repeat-2 type="weekly" onday="Monday" offday="Thursday" ontime="11:01:00" offtime="08:44:59"]
Reservations are closed (Weekday): ?Please come back between 8:45AM and 11:00AM Monday thru Friday.
Please note: You must REFRESH the page after 8:45am for the reservation system to load.
[/time-restrict-repeat-2]
[time-restrict-repeat-3 type="weekly" onday="Friday" offday="Monday" ontime="11:01:00:00" offtime="08:45:00"]
Reservations are closed (Weekend): Please come back between 8:45AM and 11:00AM Monday thru Friday.
Please note: You must REFRESH the page after 8:45am for the reservation system to load.
[/time-restrict-repeat-3]
]]>
Is there any way to display certain content on specific days? E.g. on Tuesday, Thursday, Friday and Saturday display x, on all other days display y?
I get I can use else to display the “y” but I can’t seem to figure out how to do the Tuesday, Thursday, Friday and Saturday bit?
]]>Hi there,
I’ve been staring at this code and just can’t seem to get what I need without doubting myself so hoping you can check it for me.
There’s 4 different codes I need….
1. We’re closed Sunday and Monday – Display a message that says “We’re closed Sundays & Mondays” – ideally this would show from Midnight Saturday night to midnight on Monday night.
2. We’re open from 5pm-8:30pm Tuesday-Saturday – Display a message from 12:00:01 until 16:50 “We Reopen at 5pm” on Tuesday, Wednesday, Thursday, Friday & Saturday.
3. We do Delivery only on Tuesdays and Wednesdays – HIDE pickup/delivery shortcode on Thursday, Friday, Saturday.
4. At all times we are closed (Sunday, Monday, and all hours outside of 5-8:30pm) hide the Submit button on the form.
All of the above codes ‘work’ but I can’t seem to get the timing right.
Any help would be much appreciated!
]]>Hello,
Thank you for your plugin. I would like to ask you if it would be possible to show an element all the time and then for specific time and day to override with another element. For example:
[time-restrict-repeat ALL THE TIME]
We are closed
[time-restrict-repeat type="weekly" onday="Monday" offday="Monday" ontime="10:00:00" offtime="11:15:00"]
We are open.
[/time-restrict-repeat]
[/time-restrict-repeat]
]]>
Hello,
I want to change the homepage of the site, and it’s menu, based on the time.
Shortcodes are ok in the content, but I want it at the php level so i can do like this if time_restrict_off{//code for displaying the menu in site's page.php} else {//code for displaying a different menu} fi
and, of course, the same for the home page.
So, during ‘open’ hours the visitor gets content a, but when in ‘closed’ hours, they get a different menu and a different main page (content b)
Is this possible?
]]>Hello
Does this plugin work with PHP 7.4?
Thanks.
]]>Hi,
I’ve just installed this plugin and am trying to set up an online timed exam. I want to have timed sections for the test. So, for example, I would like to do the following:
1. Set the test to start at say, 10:00am.
2. Section 1 needs to be completed within 15 minutes. So that means I want to show section 1 automatically at 10:00am and hide at 10:15am.
3. Section 2 starts at 10:15am for 10 minutes – so it is displayed at 10:15 and hides at 10:25am.
And so on:
In order to do this, could you please clarify:
1. Do you need to set an “on” time and “off” time separately?
2. Is is possible to show/hide the content without refreshing the page?
Thanks!
]]>I’m creating a lading page. Does this plugin have the function of hiding a certain part of the page for a certain amount of time? For example, I want to hide a buy button for 10 minutes, after someone stays on website for 10 minutes the buy button would appear.
]]>Hello
I would like to know if it is possible to use your plugin to allow people to watch a video for maybe 2 seconds before telling them that they must buy a membership to see the rest.
If you can develop a special solution, please let me know.
Thank you in advance.
If you can develope
Regards,
Cecilia
Can we show timed content? e.g. show content only for 15min in a day. Is that possible?
]]>Hi Dave
I have a Gravity Form on a page that needs to display for two regular periods of time every 12 months. As Gravity only allow a single schedule, I will leave the form on constantly and wrap the GF Shortcode with your plugins repeat shortcode, suitably configured.
The time periods are between 1st April and 31st July and subsequently from 1st October and 28/29th February. In between these periods I’ll use the ‘else’ attribute to show a message about when the form will be available.
So far I’ve got the following:
[time-restrict-repeat type=”annually” onmonth=”April” offmonth=”July” ondate=”01″ offdate=”31″ else=”The Form is currently unavailable. It will be available between 1st April and 31st July and subsequently from 1st October and 28/29th February each year.”]
Gravity Form ID X Shortcode Here
[/time-restrict-repeat]
[time-restrict-repeat type=”annually” onmonth=”October” offmonth=”February” ondate=”01″ offdate=”29″ else=”The Form is currently unavailable. It will be available between 1st April and 31st July and subsequently from 1st October and 28/29th February each year.”]
Gravaity Form ID X Shortcode Here
[/time-restrict-repeat]
My concerns are;
a) the end of year overlap,
b) the February leap year issue for ‘offdate’ attribute (could be 28th or 29th), and
c) will the ‘else’ text display twice when the date falls outside both active time periods?
I’d rather you run your eye over this than wait for it to appear wrong on the live site! Is there a neat way to test such scheduling by ‘tricking’ a webserver or website into thinking it is actually a different date/time? Would love this ability occasionally.
Appreciate your confirmation or tweaks.
]]>Hi Dave, love your plugin, it’s been working for some time but copied the exact code and it’s no longer working on a new page. Could ELEMENTOR break the code by any chance?
Just not sure what I’m doing wrong.
Thanks. Jim
]]>Hello. I have difficulty with the plugin. I want to make two views by time:
09:00 am / 17:00 pm – TEXT 1
17:01 pm / 08:59 am – TEXT 2
Saturday and Sunday TEXT 2 anytime
What does shortcode look like?
Thank you.
]]>You may consider naming the plugin the same for when it shows up in the plugin search and when it’s installed and shows up in the plugin list.
In the search it is “Show/Hide Content at Set Time” – but in the plugin list it is “Shortcodes to show or hide content” which can be confusing for the end user.
Thanks.
]]>Hi Dave
I have this code to display a pop up and sems to be working oK now
[time-restrict-repeat type=”daily” ontime=”09:30:00″ offtime=”16:50:00″]
[time-restrict-repeat-2 type=”weekly” onday=”Monday” offday=”Saturday”]
[sg_popup id=2435]
[/time-restrict-repeat-2]
[/time-restrict-repeat]
However the client wants it to not appear on bank & public holidays. So for example it does not show on the 1st of january, 17 Mar, 22 Apr and so on, but does every other day.
Is this possible? I tried a few solutions but it stopped the pop up showing every day
]]>Hi I cant seem to get this to work to NOT display on a certain day. I have tried a few variations on the logic, at the moment:
[time-restrict-repeat type=”weekly” onday=”Monday” offday=”Sunday”]
[time-restrict-repeat-2 type=”daily” ontime=”09:30:00″ offtime=”16:50:00″]
[sg_popup id=2435]
[/time-restrict-repeat-2]
[/time-restrict-repeat]
I also tried a seperate Shortcode setting it at to only display on Sunday, but this ALWAYS displayed
THANKS!
]]>Hi!
Thanks for this plugin, I use it as an important part on some of my websites.
I see there hasn’t been an update for the last three years. Is this plugin still maintained? And can we expect updates for future compatibility?
Hope to hear from you! ??
]]>I use this code:
[time-restrict-repeat type=”daily” ontime=”08:00:00″ offtime=”15:00:00″ else=”Closed – Opens at. 08″]
[time-restrict-repeat-2 type=”weekly” onday=”Monday” offday=”Friday” else=”Closed – Opens at. 08 Monday”]
Open – Closes at. 15
[/time-restrict-repeat-2]
[/time-restrict-repeat]
This is for my site with Business directories (under construction).
I want to add multiplied closed times for holidays and other, what do you recommend? I have at least 8 holidays +/-…
As for now, I have added a line under the open/closed text, with static information:
**Does not take holidays in consideration.**
Best
Taulant Shamolli
Hi Dave,
I have the problem that the presentation as logged in user is always up-to-date, but for a “normal” website visitor the text is dependent on the time of the last page refresh.
The shortcodes are created as text in the layer slider. Cache plugins are not (anymore) installed. On the server side, no cache should be set up, PHP is ver. 7.1.x.
Thanks in advance
Christian
Hi Dave, sorry to ask but i struggle with the shortcode for Show/Hide Content….
i try to set the shortcode for opening and closing times of a friend′s pizzeria….
in the past every day was the same open from 11:00 until 23:00
i used the shortcode:
[time-restrict-repeat type=”daily” ontime=”11:00:00″ offtime=”23:00:00″] OPEN IMAGE [/time-restrict-repeat]
[time-restrict-repeat type=”daily” ontime=”23:00:00″ offtime=”11:00:00″] CLOSE IMAGE [/time-restrict-repeat]
But he wants to change te times…
monday until thursday open 11:00 until 15:00 close from 15:00 until 17:00 reopen from 17:00 until 22:00 and close from 22:00 until 11:00
and fryday until sunday open from 11:00 until 22:00 closed fromm 22:00 until 11:00 ….
how many shortcodes i have to make?
Please help me
Patrick
]]>