Home › Forums › Calendar Products › Events Calendar PRO › FAO Cliff – Continuing Previous thread
- This topic has 11 replies, 4 voices, and was last updated 9 years, 3 months ago by
Greg.
-
AuthorPosts
-
December 12, 2016 at 4:49 am #1204643
Greg
ParticipantHi Cliff,
Picking up where we left off here:
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 –>
December 12, 2016 at 1:36 pm #1204897Cliff
MemberHi 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.
December 15, 2016 at 7:26 am #1206414Greg
ParticipantHi Cliff
/tribe-events/list/content.php
doesn’t exist in the parent theme Avada
there is only
meta.php
single-event.phpin folder
/themes/Avada/tribe-events/list/December 15, 2016 at 10:08 am #1206556Cliff
MemberSo the file contents you shared is from /wp-content/themes/your-avada-child-theme/tribe-events/list/content.php ?
December 16, 2016 at 3:34 am #1207000Greg
ParticipantHi Cliff,
That’s correct.
Thanks
Greg
December 18, 2016 at 4:41 pm #1207578Cliff
MemberOkay, 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.
December 19, 2016 at 2:35 am #1207635Greg
ParticipantHi Cliff,
Thanks for looking. Here’s some of the threads related to the list view customisation that you guys kindly helped with:
You’re actually quite right, I see too that when you navigate directly to
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
December 19, 2016 at 9:24 pm #1208003Cliff
MemberI 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.
December 20, 2016 at 2:06 am #1208074Greg
ParticipantThis reply is private.
December 20, 2016 at 7:03 am #1208140Cliff
MemberThis reply is private.
January 11, 2017 at 8:35 am #1216571Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘FAO Cliff – Continuing Previous thread’ is closed to new replies.
