FAO Cliff – Continuing Previous thread

Home Forums Calendar Products Events Calendar PRO FAO Cliff – Continuing Previous thread

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1204643
    Greg
    Participant

    Hi Cliff,

    Picking up where we left off here:

    Page titles on calendar views

    Now our site is live we were able to show the folks over at Avada support.

    They narrowed it down to something in the child theme – when using the Parent theme it works fine.

    I’ve now narrowed it down to

    /tribe-events/list/content.php

    Which was customised with Tribe’s help

    If I disable this file by renaming the folder in the child theme temporarily (and therefore disabling the associated customisation), the page titles change to “Past Events” as they should.

    Common sense (and markup notes!) would tell me it might something to do with this section, but I’m not sure what?

    <!– List Header –>
    <?php do_action( ‘tribe_events_before_header’ ); ?>
    <div id=”tribe-events-header” <?php tribe_events_the_header_attributes() ?>>

    <!– Header Navigation –>
    <?php do_action( ‘tribe_events_before_header_nav’ ); ?>
    <?php tribe_get_template_part( ‘list/nav’, ‘header’ ); ?>
    <?php do_action( ‘tribe_events_after_header_nav’ ); ?>

    </div>
    <!– #tribe-events-header –>

    Below is the full code found in content.php.

    Thanks for your help

    =======

    <?php
    /**
    * Modified List View Content Template
    * The content template for the list view. This template is also used for
    * the response that is returned on list view ajax requests.
    *
    * Override this template in your own theme by creating a file at [your-theme]/tribe-events/list/content.php
    *
    * @package TribeEventsCalendar
    *
    */

    if ( ! defined( ‘ABSPATH’ ) ) {
    die( ‘-1’ );
    } ?>

    <div id=”tribe-events-content” class=”tribe-events-list”>
    <div id=”tribe-events-footer”>

    <!– Footer Navigation –>
    <?php do_action( ‘tribe_events_before_footer_nav’ ); ?>
    <?php tribe_get_template_part( ‘list/nav’, ‘footer’ ); ?>
    <?php do_action( ‘tribe_events_after_footer_nav’ ); ?>

    </div>

    <!– Notices –>
    <?php tribe_the_notices() ?>

    <!– List Header –>
    <?php do_action( ‘tribe_events_before_header’ ); ?>
    <div id=”tribe-events-header” <?php tribe_events_the_header_attributes() ?>>

    <!– Header Navigation –>
    <?php do_action( ‘tribe_events_before_header_nav’ ); ?>
    <?php tribe_get_template_part( ‘list/nav’, ‘header’ ); ?>
    <?php do_action( ‘tribe_events_after_header_nav’ ); ?>

    </div>
    <!– #tribe-events-header –>
    <?php do_action( ‘tribe_events_after_header’ ); ?>

    <!– Events Loop –>
    <?php if ( have_posts() ) : ?>
    <?php do_action( ‘tribe_events_before_loop’ ); ?>
    <?php tribe_get_template_part( ‘list/loop’ ) ?>
    <?php do_action( ‘tribe_events_after_loop’ ); ?>
    <?php endif; ?>

    <!– List Footer –>
    <?php do_action( ‘tribe_events_before_footer’ ); ?>
    <div id=”tribe-events-footer”>

    <!– Footer Navigation –>
    <?php do_action( ‘tribe_events_before_footer_nav’ ); ?>
    <?php tribe_get_template_part( ‘list/nav’, ‘footer’ ); ?>
    <?php do_action( ‘tribe_events_after_footer_nav’ ); ?>

    </div>
    <!– #tribe-events-footer –>
    <?php do_action( ‘tribe_events_after_footer’ ) ?>

    </div><!– #tribe-events-content –>

    #1204897
    Cliff
    Member

    Hi again, Greg.

    Did you provide the content from /tribe-events/list/content.php in your parent theme?

    If yes, please provide the /tribe-events/list/content.php from your child theme to compare.

    #1206414
    Greg
    Participant

    Hi Cliff

    /tribe-events/list/content.php

    doesn’t exist in the parent theme Avada

    there is only

    meta.php
    single-event.php

    in folder
    /themes/Avada/tribe-events/list/

    #1206556
    Cliff
    Member

     

    So the file contents you shared is from /wp-content/themes/your-avada-child-theme/tribe-events/list/content.php ?

    #1207000
    Greg
    Participant

    Hi Cliff,

    That’s correct.

    Thanks

    Greg

    #1207578
    Cliff
    Member

    Okay, so you’re saying /wp-content/themes/your-avada-child-theme/tribe-events/list/content.php was customized with our help–how, in what way?

    Regardless, I visited http://cpmr.org/events/past/ — which redirects to http://cpmr.org/events/list/?tribe_event_display=past, as it’s supposed to — and it loaded just fine for me. I also didn’t see “Upcoming Events” anywhere at that URL. I only saw “Past Events”, as it should: https://cl.ly/3C3S1B0G0q2a

    Please let me know if you still need help with this issue.

    #1207635
    Greg
    Participant

    Hi Cliff,

    Thanks for looking. Here’s some of the threads related to the list view customisation that you guys kindly helped with:

    Previous Events page – Change d order

    Customising List View php

    List View – Months

    You’re actually quite right, I see too that when you navigate directly to

    http://cpmr.org/events/past/

    It works perfectly well. In fact, if I go to /events/ and then click on the “< Previous Events” text and OPEN IN NEW TAB, it also works… as it’s creating a fresh new page.

    The problem is if you are at /events/ and click on “< Previous Events” like a person normally would, it loads the new portion of the page below the Tribe bar, but doesn’t refresh the Page Title Bar. That still says Upcoming Events.

    Thanks

    Greg

    #1208003
    Cliff
    Member

    I see.

    Here’s a video of how it works for Twenty Seventeen theme: https://cl.ly/2U3H1V191h2A

    Since this issue is specific to Avada’s theme, you’ll need to discuss the issue with them.

    I did notice that your “Upcoming Events” page title doesn’t have the same classes as the title from my video. I’m guessing Avada’s title isn’t setup for getting updated via the Ajax call that happens when someone clicks Previous Events.

    I hope this information helps.

    #1208074
    Greg
    Participant

    This reply is private.

    #1208140
    Cliff
    Member

    This reply is private.

    #1216571
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘FAO Cliff – Continuing Previous thread’ is closed to new replies.