Home › Forums › Calendar Products › Events Calendar PRO › Not allow list view but still show list view in mobile format
- This topic has 9 replies, 2 voices, and was last updated 7 years, 11 months ago by
Andrew Bruske.
-
AuthorPosts
-
April 25, 2018 at 1:45 am #1515526
Andrew Bruske
ParticipantHi
I am trying to see if its possible to disable the user from choosing list view as an option, but I still want the calendar to change to list view if the screen is changed to mobile mode. If I disable list view as an option it then disappears from the next line for default mobile view in the settings. Is there another way around preventing the user from changing the calendar into list view but still forcing the calendar into list view when the screen is in mobile mode? Ive found that the actual list view in full screen mode is slightly different from when the calendar changes to list view in mobile mode…
Thanks
AndrewApril 26, 2018 at 6:06 am #1516723Jaime Marchwinski
KeymasterHi Andrew,
Thanks so much for reaching out!
You can try hiding the List View selection with some CSS so that users cannot select it in desktop view. You can try adding something like the following to your WordPress Customizer or to your theme’s stylesheet:
span.tribe-icon-list {
display:none;
}Let me know if that helps!
Thanks,
Jaime
April 27, 2018 at 2:53 am #1517631Andrew Bruske
ParticipantThanks Jaime
Ive added that into the additional CSS customiser but I’m still seeing the option to view in list mode and it still changes if it click it?
April 27, 2018 at 4:05 am #1517668Jaime Marchwinski
KeymasterHi Andrew,
Without disabling that view completely, it will still be available to view. The CSS can hide the view, but it cannot disable it. Did the code I provide you with hide the List View?
If not, can you provide me with a link to your main calendar page?
Let me know if you have any other quetions in the meantime!
Thanks,
Jaime
April 27, 2018 at 4:13 am #1517679Andrew Bruske
ParticipantThis reply is private.
April 27, 2018 at 10:54 am #1518043Jaime Marchwinski
KeymasterHi Andrew,
You can hide the whole View As section so that users won’t be able to select an option, and they will only be able to see Week View (since that is the only other option). Try something like this:
.tribe-bar-views-inner .tribe-clearfix {
display:none;
}Let me know if that helps!
Thanks,
Jaime
April 28, 2018 at 12:41 am #1518331Andrew Bruske
ParticipantIve used that code you’ve sent but I’m still seeing the “view as” box. Is it just in the “additional CSS” section within wordpress that I put that code?
April 30, 2018 at 4:15 am #1518976Jaime Marchwinski
KeymasterHi Andrew,
You can either add it to the Additional CSS section of your WordPress Customizer or you can add it to your theme’s (or child theme’s) stylesheet.
Let me know if that helps!
Thanks,
Jaime
April 30, 2018 at 8:17 pm #1519770Andrew Bruske
ParticipantThat last code doesnt hide the list view. I can still see the view as section and can still change the view to list.
May 1, 2018 at 5:27 am #1519974Jaime Marchwinski
KeymasterHm, okay, try this:
div.tribe-bar-views-inner.tribe-clearfix {
display:none;
}Let me know if that helps!
Thanks,
Jaime
May 23, 2018 at 9:35 am #1537140Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Not allow list view but still show list view in mobile format’ is closed to new replies.
