Contact Form 7 and Hash Links

Posted in: Newsmag
Post count: 2

Hello,
I am experiencing a problem where hash links: a href=”#” (used throughout the site for things like the search box drop down, and ajax pagination) are causing the page to scroll to a Contact Form 7 instance on the page. The problem is present in the demo theme at http://demo.tagdiv.com/newsmag/contact/.

(To replicate, simply click the search icon while on the contact page: the page will scroll to the contact form.)

This problem on the demo doesn’t have a large impact on usability because the only page with a contact form is the contact page. On our site, we have an email subscription contact form located in the footer so whenever a hash link is clicked, the page scrolls all the way to the bottom.

I’m not sure what is causing this scrolling behavior on hash click but if we can turn that off, that would be fantastic.

Thanks,
Josh

  • This topic was modified 11 years by jnbgsu.
Post count: 6600

Hi,

Not sure how this can be turned off but you could try to remove this function: http://screencast.com/t/uummrxwT
I have also added this on our issue tracker list and we take a look at it and fix it as soon as possible.
Sorry for the inconvenience!

Thanks for reporting this!

Post count: 2

Lucian,
that solved the scrolling issue. Hopefully it won’t cause any side effect issues.

Thanks a ton for the help,
Josh

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newsmag’ is closed to new topics and replies.