Home › Forums › Calendar Products › Events Calendar PRO › Mobile view
- This topic has 8 replies, 3 voices, and was last updated 9 years, 8 months ago by
Cliff.
-
AuthorPosts
-
August 4, 2016 at 6:42 pm #1147920
mountmadonnaschool
ParticipantI’m trying to update the functions.php file like this article says to:
https://theeventscalendar.com/knowledgebase/month-view-displays-in-mobile-view/I don’t want the mobile view to be enabled, I just want the event text to always show.
But when I put this code in I get this at the top of my page:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘customize_tribe_events_breakpoint’ not found or invalid function name in /srv/bindings/8966cff8aeb044dab7fe9551864e9c8c/code/wp-includes/plugin.php on line 235 Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘customize_tribe_events_breakpoint’ not found or invalid function name in /srv/bindings/8966cff8aeb044dab7fe9551864e9c8c/code/wp-includes/plugin.php on line 235
August 4, 2016 at 9:22 pm #1147956Cliff
MemberHi.
If I’m understanding your request accurately, you can accomplish what you’re wanting by adding this code to your theme’s functions.php file:
add_filter( 'tribe_events_kill_responsive', '__return_true');Please let me know if this is what you were wanting. If not, please specify the breakpoint you did want to target if not 600px width.
August 5, 2016 at 9:18 am #1148203mountmadonnaschool
ParticipantI added that line but it is still not loading the text of the events in the calendar, just the little dots when the screen gets small:
https://dev-mountmadonnaschool.pantheonsite.io/events/August 5, 2016 at 4:33 pm #1148486Cliff
MemberThe responsive nature of the plugins can be removed by using the tribe_events_kill_responsive filter.
Setting tribe_events_kill_responsive to true just sets tribe_events_mobile_breakpoint to zero. By default, it’s set to 768.
If things aren’t working as expected for you, please follow our recommended troubleshooting steps:
There might be some new updates available. Could you please make sure all your Modern Tribe plugins (and WordPress core) are at their latest versions?
Once you verify you’re on the latest versions, please test to see if the issue is still happening for you.
If it is, please follow our Testing for Conflicts Guide (basically switch to TwentySixteen theme and deactivate all plugins and custom code other than Modern Tribe plugins) and see if that helps narrow down the cause of this.
If it doesn’t, please enable WP_DEBUG and WP_DEBUG_LOG and share any PHP errors you see while changing tickets quantity, navigating your site’s home page, events page, single-event pages, and any other of your site’s pages relevant to this ticket.
Then, please share your System Information (while in Testing for Conflicts mode).
You might also see if you can spot any console errors at your site. (If needed, you may reference our KB article Using Google Chrome Developer Tools.)
Let us know what you find out.
Thanks.
August 10, 2016 at 5:34 pm #1150301mountmadonnaschool
ParticipantI made sure everything was updated. When I put:
function customize_tribe_events_breakpoint() { return 100; } add_filter( 'tribe_events_mobile_breakpoint', 'customize_tribe_events_breakpoint' );in functions.php, it works how i’d like it to except I still get this code at the top of the page:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'customize_tribe_events_breakpoint' not found or invalid function name in /srv/bindings/8966cff8aeb044dab7fe9551864e9c8c/code/wp-includes/plugin.php on line 235 Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'customize_tribe_events_breakpoint' not found or invalid function name in /srv/bindings/8966cff8aeb044dab7fe9551864e9c8c/code/wp-includes/plugin.php on line 235Does that look like a plugin conflict? I’m relatively new to this area of wordpress. I’m not very comfortable switching themes, uninstalling, etc when we have so many customizations and we don’t really have the $$ to pay developers tons to troubleshoot this 🙁
August 10, 2016 at 9:32 pm #1150340Cliff
MemberThat’s an odd error. I can’t tell if it’s a plugin conflict, but it could be.
Those steps are recommended troubleshooting because it could be any one of those things.
If you’re reluctant to try them all, though, I’d go with the WP_DEBUG ones because that’s WordPress telling you if one of your plugins or theme is doing something incorrectly.
August 11, 2016 at 9:41 am #1150614mountmadonnaschool
ParticipantAh! There’s another functions file in our theme (root-functions.php). When
I put the php in that file, it worked and didn’t throw that error.Phew!
Thanks for your help!
August 11, 2016 at 10:08 am #1150636Cliff
MemberGood find. I’m glad you were able to fix it!
-
AuthorPosts
- The topic ‘Mobile view’ is closed to new replies.
