Developer forum

Forum » Rapido » Make button scroll to class not working in Rapido?

Make button scroll to class not working in Rapido?

Axel Marijt
Axel Marijt
Reply

I'm trying to link a button to a class on the same page, so it scrolls to a specific element on that page. However it doesn't seem to be working properly. Is anybody having the same problem or does anybody know the solution to this problem? The buttons location is in the header of the homepage.

Schermafbeelding_2019-07-17_om_16.07.40.png

Replies

 
Konstantin Landyshev
Reply

Hi

You cannot link button to a class. Only to ID. ID must start with a letter. 

For example:

You create some element with ID "test"

<h1 id="test">Try to be the best</h1>

Next step is creating link to this 'anchor':

<a href="/documentation-8/content/items/item-publisher#test" title="Test link">Test link</a>


Best regards

 

You must be logged in to post in the forum