• Resolved Digital Splendid

    (@rajeevbagra2025)


    I need to create so-called page jump links. However, the target text will not be on the same page. Instead, target text will be included in menu.

    For instance, Partner/Affiliation will be included in menu which once clicked will take to the Partner/Affiliation section.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • That’s possible and easy: you just have to include the whole URL!

    Assuming the Partners/Affiliation section you want to jump to has the id="partners"

    If you’re linking from the SAME page, you’d use: #partners.

    But if you’re linking from a different page (eg in your menu), you’d use the full site URL, like https://example.com/some-page/#partners.

    In your specific case:

    1) Add an “HTML Anchor” (eg partners) to your “Partners/Affiliation” H2 Headline block. That’s under “Advanced” in the Headline block’s settings panel in the right of the editor.

    2) Now go to APPEARANCE => MENUS, and add a “Custom Link” to your menu. The URL will be your full anchor link explained above (eg https://www.digitalsplendid.agency/#partners)

    I hope that helps!

    Thread Starter Digital Splendid

    (@rajeevbagra2025)

    @gappiah Thanks!!!

    Thread Starter Digital Splendid

    (@rajeevbagra2025)

    @gappiah After adding the links, it seems they are not working perfectly. Is it due to faulty implementation of mine? For instance, when Hire Us clicked from the menu, for a few seconds, Hire Us does show up only to be finally taken to the top.

    Looking at your 5 menu items, 3 out of 5 work.

    Your WordPress address has the www in it.

    The 3 menu items that work have the www in their URLs, but the 2 that don’t work don’t have the www.

    I’d change that to see what happens.

    Thread Starter Digital Splendid

    (@rajeevbagra2025)

    @gappiah Thanks for the support. Added www with all the links and all of them working now. However, Hire Us apparently not working perfectly. It is showing Hire Us for the first few seconds only to be taken to the home page (Chrome browser desktop and Android smartphone).

    However, Hire Us apparently not working perfectly.

    Check the URL carefully. You’re using HTTP instead of HTTPS.

    Just note that for this to work, the origin has to be the same. See the MDN documentation on what are considered same and different origins.

    https://developer.mozilla.org/en-US/docs/Glossary/Origin

    Thread Starter Digital Splendid

    (@rajeevbagra2025)

    @gappiah Thanks so much. My apology for the lapse.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Page jump with target text in menu’ is closed to new replies.