I am trying to get the event table to show on phones, tablets, etc, and the calendar to show on computers. I found topics that indicate it can be done, but how do I know what to use in the css to hide one or the other?
I added the shortcodes for both to the calendar, and the both show up.
I temporarily changed the style.css for the theme to add this:
/* Desktop */
@media screen and (min-width: 768px) {
.mobile-event-list{
display:none;
}
}
/* Mobile */
@media screen and (max-width: 767px) {
.desktop-event-calendar{
display:none;
}
}
But that did not work. What do i need to enter for the .mobile-event-list and .desktop-event-calendar to get this to work?
EE does not output either of those classes, where did you find those?
You could add a Div around the shortcodes with those classess assigned to it however you may as well just use the main class/id for each output.
For example the Calendar is wrapped within #espresso_calendar so you could target that in place of .desktop-event-calendar
Can you link us to the page so we can view what you are doing please?
Viewing 2 reply threads
The support post ‘Show table list on mobile, calendar on desktop’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.