0
Answered

Koru link button

awardstudios 2 years ago updated by Vitaly Ovchinnikov 2 years ago 1

Hi Vitaly, can i create a link button on koru where go to another page?

Thanks

Stefano Di Lorenzi
Answered

Hello Stefano,

You can do this by modifying the HTML this way:

<div class="parent">
  <div class="koru-viewport">
    <a href="https://boxshot.com" style="z-index:10;position:absolute;bottom:10px;right:10px;">hello</a>
  </div>
</div>

See the <a> tag in the middle. As Koru adds more elements to .koru-viewport block, we need z-index style to place the button on top. The rest puts the button to the bottom right corner.

For one-off job you can leave it like that, but if you need to do it often, I would make a template instead. It is also a good idea to move the CSS rules into the designated style block instead of inlining.

Cheers!