Rocio

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: Switch to list view in event category not working #1034327
    Rocio
    Participant

    Yeah! I’ve updated events calendar and events calendar pro following this steps and now categories are working as expected in our lang 🙂

    That’s great, thank you very much for your patience,

    Cheers

    Rocio
    Participant

    Hi again, thanks for your reply,

    I think the problem is I’m using a custom page template in the dropdown to display the calendar pages. If I choose default events calendar page all is working fine. But we need a custom template to use genesis layouts, sidebars, etc. (they are not working with your template)

    The custom template only have this content:

    genesis();

    If I use this custom page template, its like tribe don’t target the recurring events page as a tribe page (I’m thinking out loud, i’m not sure what is the real problem).

    I say this because the only way I can solve this is using is_single() generic conditional:

    add_filter( 'genesis_pre_get_option_content_archive', 'tribe_genesis_event_archive_full_content' );
    function tribe_genesis_event_archive_full_content() {
     
        if ( class_exists( 'Tribe__Events__Main' ) && class_exists( 'Tribe__Events__Pro__Main' ) ) {
            if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || tribe_is_map() || tribe_is_photo() || tribe_is_week() || is_single() ) {
                return 'content';
            }
        } elseif ( class_exists( 'Tribe__Events__Main' ) && !class_exists( 'Tribe__Events__Pro__Main' ) ) {
            if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() ) {
                return 'content';
            }
        }
    }

    Any other tribe conditionals are not working whith custom template page (I’m talking about /all/ page, of course), I’d try tribe_is_event() , tribe_is_event_category(), tribe_is_in_main_loop() , tribe_is_view(), ‘tribe_events’ == get_post_type() , is_singular( ‘tribe_events’ ), etc, etc, etc.

    Now it’s working, but I know is_single() is not the best solution, it’s too generic.

    Any other idea or workaround?

    Cheers,

    Rocio
    Participant

    Sorry, it is not displaying the full ticket because the gitub link and I can’t edit the post anymore. The first part of the post disapeared:

    I’m using genesis framework with content archive setting set to display post excerpt.

    I’m using this snippet to force full content in tribe events pages

    add_filter( 'genesis_pre_get_option_content_archive', 'tribe_genesis_event_archive_full_content' );
    function tribe_genesis_event_archive_full_content() {
     
        if ( class_exists( 'Tribe__Events__Main' ) && class_exists( 'Tribe__Events__Pro__Main' ) ) {
            if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() || tribe_is_map() || tribe_is_photo() || tribe_is_week() ) {
                return 'content';
            }
        } elseif ( class_exists( 'Tribe__Events__Main' ) && !class_exists( 'Tribe__Events__Pro__Main' ) ) {
            if( tribe_is_month() || tribe_is_upcoming() || tribe_is_past() || tribe_is_day() ) {
                return 'content';
            }
        }
    }
    in reply to: Switch to list view in event category not working #1033343
    Rocio
    Participant

    Hi again George,

    definitely is about translation. I’ve change the language of my wordpress instalation to english (US) and the problem is gone now, and I can switch to list view. Unfortunately, my client needs the web and the admin panel in spanish.

    Do you know how much time can take to developers to fix the bug? or if there is any temporary workaround to fix it? We need to launch the web in a month and I’m worried about this part of the website.

    Thanks!

    in reply to: Switch to list view in event category not working #1032733
    Rocio
    Participant

    Hello, this layout is done only with CSS. I only use the Skeleton Styles needed for the correct functionality of the events calendar (first option in Display tab). I only change the default template to use my own to force fullwith layout in genesis.

    Anyway, the problem still exists when I switch to twenty fourteen theme (with zero customization), and the notice is still there, so I understand the theme is not the problem.

    My permalink settings are /%postname%/

    in reply to: Switch to list view in event category not working #1032554
    Rocio
    Participant

    This reply is private.

Viewing 6 posts - 1 through 6 (of 6 total)