Bottom navigation on click jumps to top of the page

Home Forums Calendar Products Events Calendar PRO Bottom navigation on click jumps to top of the page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1232806
    Tristan
    Participant

    Hi All,

    We added the top navigation links to our calendar which to us make a more logical place to have them however now when you click the bottom set they do not work and the page jumps to the top.

    Does anyone have any ideas what maybe causing the problem?

    Our calendar is here https://thewhiteisle.co.uk/ibiza-clubbing-calendar/2017-08/

    Many thanks

    Tristan

    #1234003
    Nico
    Member

    Hi there Tristan,

    Thanks for getting in touch with us! I can help you here ๐Ÿ™‚

    Can you please let me know how you added those? Seems like top and bottom navigation are not working. Was it working before you added top navigation?

    Please let me know about it,
    Best,
    Nico

    #1234035
    Tristan
    Participant

    Hi Nico,

    I can confirm the top links work perfectly.

    We added them with this piece of CSS as found in the knowledgebase.

    .tribe-events-month #tribe-events-header .tribe-events-sub-nav .tribe-events-nav-next a, .tribe-events-month #tribe-events-header .tribe-events-sub-nav li {
    display: block;
    }

    I have just removed this code and the bottom links do not work at all.

    Not sure that was very helpful sorry.

    Tristan

    #1234731
    Tristan
    Participant

    Hi all,

    After much testing we found out what the issues is.

    We used this code in our theme functions file to display an intro to just the month view on the calender.

    add_action( ‘tribe_events_before_html’, ‘custom_events_before_html’ );

    function custom_events_before_html() {

    // Check if displaying month view
    if ( tribe_is_month() ) {
    echo ‘Your text goes here!’;
    }

    }

    We have now removed this code and hard coded our into into our own theme template for the month view and both the top and bottom navigation works as should do.

    I hope this helps others

    Tristan

    #1239414
    Nico
    Member

    Hey Tristan, thanks so much for the heads-up on the resolution of the issue ๐Ÿ™‚

    Per your previous reply I figured out something else was going on as a CSS snippet cannot break the pagination that way. Good job finding the culprit!

    Iโ€™ll go ahead and close out this thread, but if you need help with anything else please donโ€™t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Bottom navigation on click jumps to top of the page’ is closed to new replies.