Posted: November 11, 2019 at 12:11 pm
|
You gave me an edit for something similar for the desktop, customer needs the date and time to appear on the mobile version for privet parties. Thank you, |
Hi, Can you explain a bit more and provide some context? I’m not sure whom gave you what exactly. |
|
|
The customer would like the date and time to appear on the privet parties on the mobile site. If you look at the the calendar on the desktop version you will see that there is the description and the time of the event. they would like this on the mobile site. I was provided code in another ticket to make this change to privet parties on the desktop site. You can see this in another ticket i have. Thank you, |
May I ask which ticket is the other ticket you have? |
|
|
Popup box when hovering on calendar |
Can you explain exactly what’s being served on what you call the mobile site? I might assume that you’ve got the Calendar page set up with one shortcode for desktop, and another shortcode for small screen (or mobile) devices. If that’s a correct assumption, what’s the shortcode being used to serve content to the small screen devices? |
|
|
This is the code on the home screen, small calendar… [wonderplugin_cond deviceexclude=”iPhone,iPod,Android”] From the calendar page… [wonderplugin_cond deviceinclude=”iPhone,iPod,Android”] [wonderplugin_cond deviceexclude=”iPhone,iPod,Android”] |
On the home screen, where you have the ESPRESSO_EVENTS_TABLE_TEMPLATE showing a list of events to the mobile devices, that page is showing the dates & times for private events. Is that correct? |
|
|
Yes, that is a different code, Tables i think. so they are talking about the calendar page under Register in the top nav. |
Thanks for letting me know that detail. So for that page, and where ever else you’re the [ESPRESSO_EVENTS] shortcode, you can add some code to your site so dates are displayed for protected posts. Here’s the code:
You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file. |
|
|
i have added code for it to show on the desktop site, will this new code be for the mobile site? |
The code hooks in to where ever you’re using the [ESPRESSO_EVENTS] shortcode. In one of your previous replies here, you shared this:
So yes, it will. Please note though, if you’re using the [ESPRESSO_EVENTS] shortcode in other places on your website, the code will also have an effect there too. |
|
|
Here is what i have as a plugin for the code for the desktop to show the information, } Can i add the above code? or is this something different. Sorry for all the questions just want to make sure i do this correctly. Thank you, |
That’s the best place to add more code to your site, in that little plugin you’ve already set up. |
|
|
Thank you! This worked, I added it to the existing plugin. |
The support post ‘Date and time on private events Mobile’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.