• ML

    (@mlmazzara)


    I am considering using the Moesia theme; have looked at the demo and read some of the documentation. Can a menu link go to a specific place within a page? I think that is what you are doing with the “Services” link on your demo menu (Services) but it does not work unless you are already on Page B.

    Can you explain? Thanks.

Viewing 9 replies - 1 through 9 (of 9 total)
  • thebigtine

    (@josephbydesign)

    if the section of the page has a id, i.e. id=”yourID” then just link to it like so: example.com/pagename#yourID

    Thread Starter ML

    (@mlmazzara)

    Thanks. It doesn’t seem to work in the demo menu. Perhaps the link in the demo menu is wrong.

    I forgot to include this as code
    <li id="menu-item-2477" class="fa-cogs menu-item menu-item-type-custom menu-item-object-custom menu-item-2477"><a href="#services">Services</a></li>

    Might work if it had the filename?

    thebigtine

    (@josephbydesign)

    the code you have above will only work if you are already on the same page as an element with an id of “services”

    An example:

    <a href="#theID">Click Me</a> would link to a element on the same page with an id of "theID" like so: <div id="theID">some text</div>

    Where as: <a href="example.com/pagename#theID">Click Me</a> would link to the element from any page.

    Thread Starter ML

    (@mlmazzara)

    Thanks. This is the code in the Moesia sample and that must be why it doesn’t work. I appreciate your help and validation.

    thebigtine

    (@josephbydesign)

    if you give me a link I can have a look

    nice work….

    Thread Starter ML

    (@mlmazzara)

    It’s in the Services link in this example:
    https://demo.athemes.com/moesia/

    TY

    thebigtine

    (@josephbydesign)

    on the home page they are linking to something that is on the same page, but when you are on another page they are still trying to link to a section on the same page, is that your problem?

    To fix this all you would need to do is add the full url. so instead of just #services it would be: https://demo.athemes.com/moesia/#services

    Is that what you are looking for?

    Thread Starter ML

    (@mlmazzara)

    Yup. That is it. The code in the sample wasn’t working as I expected…and now I know why! ?? You have been very helpful.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Link from menu to place within a page’ is closed to new replies.