flickity icon indicating copy to clipboard operation
flickity copied to clipboard

Request demo for including clickable links

Open s-canchi opened this issue 6 years ago • 1 comments

Hi,

Flickity is awesome! I am relatively inexperienced in all things websites (html, css, javascript) but thanks to the detailed demos and snippets, I was able to incorporate Flickity into my organization's website which uses Material Theme for MkDocs and hosted on Read the Docs. However, there is a requirement to make the included images clickable and linked to existing website content. I couldn't find any closed or open issues that addressed this point. I implemented a widely suggested solution of adding anchor tags but that did not resolve it as I get a 404 error.

<div class="carousel-cell"
     <a class="carousel-cell" href='./path_to_webiste_link''><img class="carousel-cell-image" data-flickity-lazyload="./images/carousel-images/carousel-images.002.jpeg" alt="grapes" /></a>
 </div>  

Any demo code or suggestion for how I would achieve the linkable image slider is greatly appreciated! Please let me know if I should submit any additional context or code.

s-canchi avatar Oct 13 '20 23:10 s-canchi

This isn't to do with Flickity.

Change:

<a class="carousel-cell" href='./path_to_webiste_link''>

to

<a class="carousel-cell" href="/path_to_webiste_link">

CHEWX avatar Oct 21 '20 09:10 CHEWX