Question

I've ran into some weird problem that didn't exist before. The code is perfect, and all links are defined with <a href="http://somesite.com">LINK</a>. However, many links won't work when on an article post - on the homepage, all links works fine, as far as I can tell.

Here's a link to an article - try clicking on the four top links, for example: http://dedanseglade.no/2014/dd-anmelder-video-ingemars-de-saliges-kvarter/

This has been a problem on all the PC's we tested (and with different, modern web browsers), and it worked before with the same code. Suddenly, some links work, but some don't. I've never experienced anything like this before, and I'm quite experienced with HTML. I'm using the latest version of Wordpress, 3.9.

Was it helpful?

Solution

In your lightbox.js you've got this:

jQuery(document).on('click', 'nav a', function(e) {
    e.preventDefault();
    //some other code here
});

The links that are not working have been disabled by this lighbox.js so you need to either change the selector in your js file or change the nav element to a div element but this is just a workaround and I don't recommend it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top