Adding link to Classic Feature box

I’ve read up on some of the techniques to let the image or other elements within a feature box become clickable. I have quite a few of these boxes on the page, all of which have different links to open the referenced site. I’ve added the javascript, and sort of get the concept around creating a unique ID and hard coding the url.

The page is at http://dev.open-nys.org/adopt/ and should be pretty easy to parse, I can give admin access if needed.

Still, this method seems counterintuitive, how is the box supposed to work? Why provide a URL link in the setup that doesn’t seem to function? Is there a newer component in X I should be using?

if someone could give me a pointer in the right direction, it would be appreciated.

Hi there,

Natively, the featured box element’s link requires a link text where the link could be attached. This is feature works if you try it and will be something like this:

Perhaps, the threads that you have seen are for having the link set to the entire box or the image or icon of the featured box. Javascript and other customization are needed for this because this is not how the element functions natively,

If you want to stick to the native functionality of the Featured Box element, you may just add the text link then the URL and it should be visible to the element.

If you require to change the native functionality, you will have to maintain the custom code yourself as this goes beyond the scope of our support.

Hope this explains it.

Indeed, that makes sense now. Thanks! I think the trick is whenever an image is used, the affordance is that that image is clickable. It doesn’t feel the same for an icon. is there a better container to use for a clickable image/text? Or to use this technique does each need a custom id to connect to a javascript with a URL handler?

Hi There,

Thanks for writing in!
Custom ID with JS would work better.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.