Header and Footer Nav in List View

Home Forums Calendar Products Events Calendar PRO Header and Footer Nav in List View

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1000281
    Geoff
    Participant

    Hi,

    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

    #1000490
    Brian
    Member

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

    Testing Conflicts With Themes and Other Plugins

    Let me know what you find out.

    Thanks

    #1005242
    Support Droid
    Keymaster

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Header and Footer Nav in List View’ is closed to new replies.