• Dear all,

    I’m currently working on a single page website, where custom links in the nav menu jump to anchors on the page. So basically the whole aktion takes place on this one page. However, I want to intregate a blog which proved difficult to realize so I decided to put it on a separate page, which 2 or 3 Blogposts on the “Front Page”. Problem with this is, that, once on the “Blog Page” the Links in the Navbar do not work anymore.

    In the Backend’s Menu Configuration I add rhe link as:

    https://#service

    which works fine and outputs:

    https://www.exaample.com/#/service

    Now on the Blogwebsite it appends it to the category, e.g.

    `https://www.example.com/hello-world/#/service′

    so what I’d need would be inserting the link in the Menu Config such as:

    https://<?php echo site_url() ?>/#service

    which unfortunately doesn’t work.

    Then I found an approach tweaking the menu here:
    Topic: Jump to page anchor, Page 2

    But didn’t do the trick for me.

    Any suggestions are greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • try with no http protocol declaration and make sure the url starts with /

    /#service
    /#section2
    /#section3

    Thread Starter gfaw

    (@gfaw)

    Sorry this is not working either. It still puts the slug of the blogpost inbetween.

    What are you trying to achieve?
    Dynamic creation of links on a posts page or a static reference to home page with navigation to its sections?

    Thread Starter gfaw

    (@gfaw)

    A static reference to home page with navigation to its sections.

    BTW: I am using the roots theme should this matter.

    There is a similar problem posted in the
    Roots Theme Google Group, but that doesn’t help as when on the Blog Page the slug is still inserted (for some reason).

    What I need would be a static reference such as https://www.example.com/#menu-item , but I don’t want to hardcode it that way, as it doesn’t make sense to query a nameserver to find an internal resource.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Jump to page anchor from any page’ is closed to new replies.