Lox
Lox

Reputation: 299

Links don't work

The problem is, the links in the main menu don't work, you can hover on them and see the address that it links to, but when you click them nothing happens.

I'm assuming it's something to do with the css.

I tried deleting all the z-index to see if it's something to do with them(in case it was behind something and you couldn't actually click them), I switched positionings around, nothing works.

Here is a link to the demo site. http://tinyurl.com/nlmw2sg

Upvotes: 0

Views: 816

Answers (2)

projeqht
projeqht

Reputation: 3160

It's not the CSS.

SMINT is returning this error every time you click a link:

Uncaught TypeError: Cannot read property 'top' of null

Looking at smint.js this is the line of code it is complaining about:

var goTo = $('div.'+ id).offset().top -selectorHeight;

Which means that $('div.'+ id) is not selecting anything.

This tells me that you're not formatting your HTML the way SMINT needs you to. You need to follow their <div> and **class** structure.

Upvotes: 1

Lox
Lox

Reputation: 299

Nevermind I found the answer. I was using this script for the sticky menu http://www.outyear.co.uk/smint and I just had to delete this line

e.preventDefault();

from it so that the page will jump to where the link points to.

Upvotes: 1

Related Questions