• Resolved outpost33

    (@outpost33)


    Hi,

    I have a Global Block on this site:

    wiperstimesplay.co.uk

    The block is the UK Tour Dates section. Originally this was integrated into the Tickets section (#x-section-3).

    I then found that Global Blocks breaks one-page functionality: the next menu item GALLERY was going to the top of the Global Block instead of the Gallery section, even though the menus were set correctly.

    As an attempted fix, I created a new dedicated section for the Global Block, and changed the GALLERY and TEAM sections so that they now point to #x-section-5 and #x-section-6 respectively.

    However, the one-page functionality is still broken!

    Thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter outpost33

    (@outpost33)

    Update: I solved the problem by changing the menu to #x-section-6 and #x-section-7. Global Blocks seems to do something to the sections – maybe it adds its own section by default, pushing the numbers up by 1?

    Plugin Author Michael Bourne

    (@michaelbourne)

    Hi Michael,

    This is an expected behaviour with Cornerstone. The recommended way to implement a one page navigation is to give each section a unique ID, then use that new ID in the nav.

    When Cornerstone shortcodes get executed by WordPress, the “x-section-1” IDs are generated dynamically. Since inserting a global block adds more sections to the page, they are included in the numbering sequence. As this is a default CS behaviour, there is nothing we can do about it on our end. You might possibly get around it by giving your Global Block sections a unique ID as well.

    Hope that helps!

    Thread Starter outpost33

    (@outpost33)

    Thanks for clarifying – I thought it must be something along those lines.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Global Blocks breaks one-page navigation’ is closed to new replies.