0

I created a shortcode on Wordpress to display a button

the html output is

<a class="button" href="/about-page">About Page</a>

However when I put /#solutions in the href tag

<a class="feedzai-button" href="/#solutions">Explore Our Solutions</a>

it only works on desktop (it takes me down to the div with id="solutions"). On mobile, it doesn't take me down to the section, it seems to just refresh the page.

Any idea why this could be happening? Thanks in advance.

Ken Ryan
  • 539
  • 1
  • 10
  • 31
  • 1
    Have you tried removing the '/'? (Just `"#solutions"` is correct for navigating to an anchor on the current page) – Tibrogargan Nov 17 '16 at 00:19
  • Shouldn't it be `/about-page#solutions`? – Barmar Nov 17 '16 at 00:20
  • I did try just #solutions and it still has the same issue. #solutions is on the same page. The first a tag example was just a demonstration of what I am doing linking to other pages instead of a div – Ken Ryan Nov 17 '16 at 00:24

0 Answers0