But when I do that, the navigation no longer works. If I have links to the Google ajax libraries in both places it works fine. Why does it matter where I put the link?
where is your wp_head(); function located? Try moving that to just before the closing head element if it's not already there. WP loads up a ton of stuff, sometimes extra junk, with that one function.
I'm adding this responsive nav script to my theme. It requires putting this into the code:
http://codepen.io/anon/pen/ACwjc
But I'd prefer to stick the jQuery link in functions.php, like this -
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js', null, '1.7.2', false);
But when I do that, the navigation no longer works. If I have links to the Google ajax libraries in both places it works fine. Why does it matter where I put the link?
To clarify, this is what's in the header:
http://codepen.io/anon/pen/lnpJE
If I remove the second reference to the Google ajax library, the navigation fails.
Im assuming that you are using wordpress. Chris Coyier posted a nice little function to include inside your functions.php.
This is the one i use and never have any problems:
Here is the article.
Thanks John. For some reason that doesn't fix it.
This code is what functions.php generates, but doesn't help the nav work -
Hard-coding this is the only thing that works -
where is your wp_head(); function located? Try moving that to just before the closing head element if it's not already there. WP loads up a ton of stuff, sometimes extra junk, with that one function.
Do you have a live site? Would make it easier to see what's going on.
I'm developing this theme locally, but my functions.php section looks like this -
http://d.pr/i/VwBp
And the head stuff looks like this -
http://d.pr/i/owzq