Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Does it work on wordpress? #155

Open
orso081980 opened this issue Aug 2, 2016 · 3 comments
Open

Does it work on wordpress? #155

orso081980 opened this issue Aug 2, 2016 · 3 comments

Comments

@orso081980
Copy link

I'm using your tool, which is fantastic, in a few of my websites. So far so good, but now I'm building a website on wordpress and I ran into some issues:
Here's my code so far:

header.php

footer.php

<script src="/js/snap.svg-min.js"></script> <script type="text/javascript" src="/js/bootstrap.min.js"></script> <script type="text/javascript" src="/js/jquerynav.js"></script> <script type="text/javascript" src="/js/main.js"></script>

main.php

Think it. Build it. Market.

</div>
<div class="container video" id="video">
    <p>We are a full service agency located in Barrie, ON...</p>
</div> ... ...

main.js

$( document ).ready(function() {
$('#nav').onePageNav();
}

style.css

nav .current a {

color: #D54D38;
}

My problem is that the first link is skipped. The smooth navigation works, but only if I won't scroll the down the page. I'm using my own bar, in order to use the plugin I didn't use php to build my navigation bar.

Thank you in advance for your help

@davist11
Copy link
Owner

davist11 commented Aug 3, 2016

Sorry, but it's really hard to tell what is going on from what you posted above. Do you have a link?

@dmbostan
Copy link

@orso081980 I think you have a typo: /js/jquerynav.js. should be /js/jquery.nav.js

Also, make sure you load the script after jQuery.

@dmbostan
Copy link

Oh, the date ...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants