Links to open lightbox are directing to a page
-
Hi,
I’ve got a partial template set up that displays each item of a particular post type with an ‘Apply’ button next to it. The intention is that when a user clicks one of the ‘Apply’ buttons, it will open a Contact Form 7 form within a lightbox (I’ve added the code for lightbox in the page content rather than in the partial template).
However, despite the fact that the link href reads “#application_form” in the element inspector, when I click one of the buttons, it tries to take me to /apply/TheTitle.html, which then returns a 404 error.
What’s weird is that if I add a button in the page content with an href of “#application_form”, the lightbox and form opens fine.
I’ve tried disabling all plugins other than Contact Form 7 and Easy Fancybox but the problem still persists, so I guess it could be something to do with the way WordPress is handling the partial template?
Any help is much appreciated.
- The topic ‘Links to open lightbox are directing to a page’ is closed to new replies.