Home › Forums › Calendar Products › Events Calendar PRO › Header and Footer Nav in List View
- This topic has 2 replies, 3 voices, and was last updated 10 years, 8 months ago by
Support Droid.
-
AuthorPosts
-
August 30, 2015 at 4:41 am #1000281
Geoff
ParticipantHi,
I’m trying to add navigation in the list view but I’m running into problems. In the child version of my theme, I have created a tribe-events folder, and created the copies of the files I want to customise. Looking in childtheme/tribe-events/list/content.php I’ve added:
<?php if ( tribe_has_previous_event() ) : ?> <a href="/events/list/?action=tribe_list&tribe_paged=1&tribe_event_display=past" rel="prev"><span>«</span> Past Events</a> <?php endif; ?>However, I’m pretty sure this will only ever show the first page of previous events rather than a proper paged version.
I’ve also tried copying the block of code from the nav.php template, which seems to only really work for the footer, but even when it does show in the footer, the link to previous events comes up as http://www.eema.org/events/list/ – which doesn’t exist.
What I’d like to be able to do is have a repeated navigation at the top and the bottom of the list results page which is dynamic and checks for the existence of previous or future events.
Is this possible?
Thanks
Geoff
August 31, 2015 at 8:03 am #1000490Brian
MemberHi Geoff,
Thanks for using our plugins. I can help out here.
The list view does have a header nav hidden by css.
Try adding this css to make it appear:
.tribe-events-list #tribe-events-header .tribe-events-sub-nav .tribe-events-nav-next a, .tribe-events-list #tribe-events-header .tribe-events-sub-nav li {
display: block;
}
Add that css to your theme’s stylesheet or through a plugin such as Simple Custom CSS.
I do notice though that when I click on the new link that shows I get “TypeError: h is null” on your site. I tested on my site and it works for me. So can you please run through our testing for conflicts guide and see if that finds the issue here.
Let me know what you find out.
Thanks
September 15, 2015 at 7:05 am #1005242Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Header and Footer Nav in List View’ is closed to new replies.
