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

how to build the project where the pages is active individually #89

Open
edwinencomienda opened this issue Sep 17, 2021 · 5 comments
Open

Comments

@edwinencomienda
Copy link

so like
dashboard.html - sidebar is active for dashboard
settings.html - sidebar is active for settings

@johndavemanuel
Copy link
Owner

@edwinencomienda

What do you mean by active?

@edwinencomienda
Copy link
Author

active means in the sidebar menu like
dashboard - active state would be color red and underlined
settings
users

@johndavemanuel
Copy link
Owner

let me run some demo so I can see the issue

@edwinencomienda
Copy link
Author

actually this is not an issue just want to ask how can you implement this way?

@johndavemanuel
Copy link
Owner

ahh yes, not an actual issue.

it can be implemented in many ways but you can try this approach

https://css-tricks.com/snippets/jquery/add-active-navigation-class-based-on-url/

using JS

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