Mobile view

Home Forums Calendar Products Events Calendar PRO Mobile view

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1147920
    mountmadonnaschool
    Participant

    I’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

    #1147956
    Cliff
    Member

    Hi.

    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.

    #1148203
    mountmadonnaschool
    Participant

    I 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/

    #1148486
    Cliff
    Member

    The 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.

    #1150301
    mountmadonnaschool
    Participant

    I 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 235
    

    Does 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 🙁

    #1150340
    Cliff
    Member

    That’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.

    #1150614
    mountmadonnaschool
    Participant

    Ah! 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!

    #1150636
    Cliff
    Member

    Good find. I’m glad you were able to fix it!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Mobile view’ is closed to new replies.