Posted: February 7, 2019 at 1:32 am
I’m trying to get my schedule of events to appear more naturally to people on iphones and androids.
While I’m open to suggestions, what I really need help with – I think – is making it so that the events don’t “break”. You can check my website out on mobile and see why I am trying to fix it!
Kindly do you have any suggestions for me?
The table template isn’t suited for smaller screens, especially when you add more columns.
What you can do is install this plugin:
Then change the shortcode on the page to have these two shortcodes instead:
[wonderplugin_cond deviceinclude=”Mobile”][ESPRESSO_EVENTS_TABLE_TEMPLATE template_file=espresso-events-table-template-toggle.template.php][/wonderplugin_cond]
What that will do is serve a mobile-optimized version of the events table to small screen devices, and the regular version to everything else.
Thank you for the thorough answer.
I tried the below method, and it worked — temporarily. When I saved the page, cleared the cache, and reloaded the page on mobile… it worked for a single refresh. I clicked refresh again, and the changes reverted/disappeared for mobile.
There is no competing CSS or JS on the website as far as I am aware. There are no media queries/css in the child WordPress theme. There is no custom js in the child WordPress theme.
…Perhaps the breaks happened when I tried adding these parameters?
Potentially Useful File Sources:
“Site Plugin for RGSL.CA”
I’ve tried dozens of combinations for the shortcode… Including and/or excluding various parameters that I suspected were breaking the form on mobile. Any help at this point is much appreciated.
The big question: Why is the code getting overwritten do you think? It’s weird that it works the first time, and breaks going forward.
FYI I or anyone else without wp-admin access cannot see the code from the link you post. If you’ve made changes to that file, and you think it’s relevant to the issue here, you could post the code to http://wpbin.io/
If you temporarily remove the parameters does that fix it?