Set onpage menu link item as current

1 reply · opened Jul 14, 2020

Ddr770Jul 14, 2020

Hi,

How can be class of menu item changed by click on it to "current" and removed from current "current" item?
Example: https://immoplus.ml/#services: Menu item SERVICES should be "current" and HOME not.
Same from homepage and other pages.

Many thanks

SSemicolon WebSTAFFJul 14, 2020

Hello,

For the One Page Functionality to work. Consider using the .one-page-menu Element's Codes from the op-index.html Template, by using data-href instead of the data-scrollto Attribute. Example:


	
		
- 
			[Home](#wrapper)
		
		
- 
			[About](#section-about)
		
		
- 
			[Works](#section-works)
		
		
- 
			[Services](#section-services)
		
		
- 
			[Blog](#section-blog)
		
		
- 
			[Contact](#section-contact)
		
	

and add the .page-section Class to the #service DIV.

This will definitely work fine. Hope this Helps!

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

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