• Hello everybody,

    I am trying to put anchor links (lets call “jump links”) and I want to go to the jump link from another page, and it is not possible. I explain it with the real example:

    – I create inside a page moamoa.es/moamoa-tiene-para-ti/ a jump link:
    <h2><a name="regalabelleza">Regala Belleza.....</h2>

    – When I am in the same page, and I put in the browser: moamoa.es/moamoa-tiene-para-ti/#regalabelleza, it works perfectly.

    – When I am in other page and I make a link or even if I put it in the browser, it rewrites it to “moamoa.es/moamoa-tiene-para-ti/#”.

    Somebody understand why?

Viewing 12 replies - 1 through 12 (of 12 total)
  • It could be your theme that is causing the issue. Try switching to the default Twenty Fifteen or Twenty Fourteen theme to see if the problem still occurs.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Use the ID attribute, the name attribute is deprecated.

    Thread Starter Fernando Díaz Gascón

    (@ferchup)

    I change the theme to twenty fourteen and same result. It looks it is not because of the theme.

    I put:

    <h2 id="regalabelleza">Regala Belleza.....</h2>

    and same result.

    I have another clue: In Mozilla Firefox it works properly, but in Chrome or Microsoft Edge, it does not work.

    Some idea?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you clear your cache and try again?

    Can we have a link to a page that demonstrates this problem?

    Thread Starter Fernando Díaz Gascón

    (@ferchup)

    Andrew, does the link work in your Chrome? I dont understand anything.

    I have checked in different computers, in different mobiles, and the link goes to the beginning of the page instead to the section “Regala belleza”. Once I am in the page, it goes to the section, but not from outside. I tried clearing the cache and in other computers where the web never was loaded before.

    ESMI, the demonstration problem is easy:
    1- open your chrome
    2- insert the url: https://moamoa.es/moamoa-tiene-para-ti/#regalabelleza

    If it goes to the beginning of the page, the jump link inserted is not working.
    In all my tests it is not working in Chrome.

    Thanks in advance.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Oh right, so this doesn’t actually work for me:

    1- open your chrome
    2- insert the url: https://moamoa.es/moamoa-tiene-para-ti/#regalabelleza

    But this does work:

    1- open your chrome
    2- insert the url: https://moamoa.es/moamoa-tiene-para-ti/
    3- Append this on the end of the url: #regalabelleza

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which jump link has the issue?

    Thread Starter Fernando Díaz Gascón

    (@ferchup)

    If you press the link I inserted in the home (moamoa.es), in the picture that appears a lemon that says “Lee lo que dicen de nuestros productos”, it should go to the “regala belleza” section.

    I included the anchor in Regala Belleza section this way: <h2 id="regalabelleza">Regala Belleza.....</h2>

    I dont know how to get it.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Because it’s written in another language, I’m still struggling to understand what I have to click on to see the issue.

    It’s definitely this page: https://moamoa.es/moamoa-tiene-para-ti/ ?
    What is the text of the jump link?

    Thread Starter Fernando Díaz Gascón

    (@ferchup)

    Some news:

    I have deactivating all plugins and activate again and I have found something very strange:

    – I have a plugin called: Advanced AJAX Product Filters for WooCommerce.
    – When I include in the shop sidebar the widget of this plugin the jump links does not work.
    – When I remove in the shop sidebar the widget of this plugin, the jump links works.

    It seems really weird, I dont understand the relation, but it is a fact. I am going to talk with the plugin support to understand this strange issue. Maybe because of the ajax?

    ANDREW, although it seems I have detected the problem, just to answer you:
    – The text I want to go when you press in the link is: “Regala belleza…” with h2 format. It is the 5th paragraph title of the page moamoa.es/moamoa-tiene-para-ti/

    I am going to talk with the plugin support and if I have answer that solve the issue, I put the answer in this topic.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Jump links not working’ is closed to new replies.