Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Text not Showing #11

Open
designlifestudios opened this issue Jun 19, 2014 · 1 comment
Open

Default Text not Showing #11

designlifestudios opened this issue Jun 19, 2014 · 1 comment

Comments

@designlifestudios
Copy link

I am using this plugin within the purchased wordpress theme SimpleKey.

It is a one page design and as you scroll down the page when viewing on a desktop it highlights the current section in the navbar.

unfortunately when viewing in mobile the title displays whatever section the page is loaded on (for example if you scroll down to "about" and press refresh the navbar will say "about" instead of "navigation"

I assume this has something to do with the above feature of highlighting the current section but I am not sure.

I would like it to at all times display the default text of "Navigation" since this is much more user friendly

thanks so much

@jdmstar
Copy link

jdmstar commented Jul 21, 2018

I know this is 4 years old but there is no information on Google so I hope this may help someone.

Line 60 of the updated ver 1.1

Change this:
"selected" : (this.href == window.location.href)

To:
"selected" : (this.href == settings.defaultText)

I am using PHP with mine on a custom designed CMS and the problem I kept on running into was that the default text should be "Navigate to...." but the issue is that from my home page it shows for example the 5th page that is in a submenu on my nav. And this is for every page it just defaults back to that 5th page. Though I thought maybe it has something to do with my PHP links. So I found the above line and set it to the default text option and now it just displays NAVIGATE TO... all the time which is fine.

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

No branches or pull requests

2 participants