Menu Going To Specific Section of A PAge

Hi Guys,

Ok so here is my site…

http://flvr.ca/charlene/

Now if you go to the Music section and click on one of the image covers it takes you to a new page for info on that thing right now just this page…

http://flvr.ca/charlene/makeithappen.html

Now when you click the menu icon in top left corner I want it so you can click on a item and it will take you back to homepage and that specific spot on the page, I thought what I had would work but I must be missing something.

Thanks,

Mike

Something about your Javascript is preventing the link from doing the default action. Probably some preventDefault() in place. I’m moving this to the Javascript forum for them to evaluate.

I can tell it’s Javascript because if I disable it, then the link loads properly. RIght now though, it isn’t even attempting to load the new URL.

Ive a similar problem where a prevent default is stopping my menu resetting on width change. I never really found an answer, so have left it aside for now. Had a gander at yours, but the JS for your menu is 7000+ lines!

Have you tried removing the ‘scroll-to’ class from than anchor on all pages apart from the home page where you want it to scroll?

Otherwise this script kicks in and stops the default action of the links.

$('.scroll-to').click(function(e) {
		e.preventDefault();
		$.scrollTo($(this).attr('href'), 800, {axis:'y'});
	});

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.