• I have several very long pages on my site that I’d like to improve navigation for, without breaking each one up into multiple separate pages. Ideally, I’d like to have a dropdown box that contains a list of “sections” at the top of the page. The “sections would be links to anchors on that same page so that when a visitor selects a “section” from the dropdown the browser jumps to the link further down the page (if that makes sense).

    I know how to do this with text links, but there are enough anchors (8) that it looks awkward to have them all listed across the top of the page.

    —————————————————–

    Title
    ——————-
    |Choose a section |
    ——————-
    | Section 2 |
    | Section 3 |
    | Section 4 |
    | Section 5 |
    ————–

    Section 1

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    Section 2 <anchor>

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

    Section 3 <anchor>

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
    —————————————————–

    Hope that’s clear (and that it’s possible)

    Bluez

    • This topic was modified 2 years, 12 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Topher

    (@topher1kenobe)

    If I were doing this I’d make a new WordPress menu, making Custom Links for the URLs, and then place it in your page however you’d like.

Viewing 1 replies (of 1 total)
  • The topic ‘Dropdown link to anchor’ is closed to new replies.