data-href in navigation dont work for me

3 replies · opened Dec 17, 2018

DDeluxe23Dec 17, 2018

hi

i use some data-href for a landingpage

						
							
- [Home](#)
							
- [Blog](#)
							
- [Leistungen](#section-leistungen)
								
									
- [Ästhetik / Zahnersatz](#)
									
- [Parodontologie](#)
									
- [Implantologie](#)
									
- [Wurzelbehandlung](#)
									
- [Zahnaufhellung](#)
									
- [Zahnreinigung](#)
									
- [Kinderbehandlung](#)
								
							
							
- [Praxis](#section-praxis)
							
- [Team](#section-team)
							
- [Kontakt](#)
						

if i click a nav-item like "Team" it dont scroll to


 ....

and its not marked as "current", what did i wrong ?

DDeluxe23Dec 17, 2018

i must say it jumps to "section-team" but no smooth-scroll, and the nav button isn't "highlighted"

DDeluxe23Dec 17, 2018

I've fixed it. i forget class="one-page-menu" in the tag.
is the <section id="content"> needed ?
or can i do some sections like <section id="home"> , <section id="aboutus"> etc.

sorry for my poor english

SSemicolon WebSTAFFDec 17, 2018

Hello,

You will need to add the .one-page-menu Class to the <ul> Element that holds the data-href items. Example:


	
- [About](#section-about)
	....

This will definitely fix the issue. 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