We have a conflict somewhere on the Events calendar mobile view which prevents clicking on events in the month mobile view.
In the mean time I found the php code to change the view from month to list when mobile is detected from Modern Tribe.
add_action( 'template_redirect', 'tec_mobile_template_redirect' );
function tec_mobile_template_redirect() {
if( tribe_is_month() && wp_is_mobile() ) {
wp_redirect( tribe_get_listview_link() );
exit();
}
One solution proposed was to do this but change to List view when a screen is at tablet and mobile size as well besides just when it detects its viewed on a device. So we need to find a way to make it switch at media queries/breakpoints somehow.
Can anyone help me out with this?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire