One page menu-item keeps highlighted until i click on another one

3 replies · opened Oct 4, 2021

AAutoskolaRZGroupOct 4, 2021

Hello,

I am using f.e. this code:


- [Úvod](#about)

Smooth scrolling works, it gets where it needs to be, so everything from this point is fine.

However I don't like that those menu-items keep their "highlight/hover" color until i click on another one in menu. I would like them to "deselect" to their normal color after I click on them, so they wouldn't be highlighted when user has f.e.: clicked on one and then proceeded to scroll the site.
Is there any way to do it?

Don't have live site yet so at least posting screenshot somewhat describing what i mean.
Thank you in advance!

SSemicolon WebSTAFFOct 5, 2021

Hello,

The One-Page functionality is made in a way that while the Page is Scrolling and Menu Item data-href matches with the Page Section ID, it will be kept active and if while scrolling you move to the different Page Section, the active Section will be highlighted in the Menu. You can remove this functionality by simply removing the .page-section Class from the Scrolling Section. You can also consider keeping a smaller height DIV with the id Attribute for the Page Section you are scrolling to. This will remove the Highlighting from the Menu Item quickly while you scroll further down.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

AAutoskolaRZGroupOct 5, 2021

Thank you for reply.

I have the navigation code setup this way:

		
		
			
				
					

						
						
							
![attachment](images/webimages/logo.png)

						

						
							

						

						
						

							
								
- [O nás](#about)
								
- [Naše služby](#services)
								
- [Ceník](#pricing)
							

						

						

							
								
- [Přihláška](#form)
								
- [Galerie](#gallery)
								
- [Kontakt](#contact)
							

						

					
				
			
			
		

So the second half works as intended, but first remains selected if clicked and even when scrolling the whole page.
Also my last section of page is rather thin and navbar doesn't keep it highlighted even when page is scrolled whole way to the bottom.

So I would prefer if there was a chance to only highlight selected section on hover. So after clicking on it it would go immediately back to non-highlighted. It would be preferable for me because now half of my navigation doesn't work properly and second half has that troublesome thin section.

Thank you!

SSemicolon WebSTAFFOct 6, 2021

Hello,

We understand. We have tried tweaking the codes a bit for you. Can you consider using the updated js/plugins.min.js File attached to this reply and let us know if this works for you. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard