I am creating a landing page, and I would like that the main background image (the one on top of the page) could have some clickable links on it. I added the extension “responsive image” but I am not sure it is the correct one. Can you please help me on this matter?
Hello Prakhar, thank you for your prompt reply on the subject.
I am pretty new to Drupal and I have never done website development before, so I am not sure I understood exactly your instructions. Or at least, for me this could be used if I need to add one single link to the picture, is this correct? If the picture includes different words, and the idea is to have a link for each word, how can I know where on the code I should put this link?
Is this clear? otherwise I could upload the picture I would like to use for the website so maybe it is easier to understand.
Hi - if I may, there could be a simple way to do this, if you just want words on a picture to be clickable.
Could I also just advise that from an accessibility perspective, it’s much better to use actual text that can be clicked on, rather than areas of a picture. Screen-readers (assistive technology which ‘reads aloud’ the screen for visually-impaired people, order to access content and navigate a website) can better detect and navigate through text links rather than image areas.
Hello! thank you very much for your kind reply!
The things is the words are already included in the picture. But I believe making every word of the picture clickable is probably quite complicated. I might actually follow your advice and just add a text component and add an hyperlink to it.
Without having seen the image, and as noted via Mattermost, it can be quite complex to get this sorted. However, if you have a version of the image without any text, then perhaps you could follow Cath’s suggestion above and get it sorted that way. However, do be vary of the positioning of the text across different screen sizes and browsers.
The suggestion from @noble seems to be the best and involves less of technicality and CSS integration. Having read the thread with the recent replies, I understand what you want and thus have a solution for the same.
What can be done is to use Image maps, this uses the concept of integrating links to specific points/areas or coordinates
thank you all for your reply and precious help, and apologies for the delay in replying. @pkatyaya thanks a lot for your explanation, however I am not sure I understand how to indicate in which part of the image I need to add which link. Maybe it is very complicated for my understanding of Drupal, since I only started using it.
Anyways I am sending you in attachment the image I am talking about and you can tell me what’s the best solution.
Basically I would like to have a link for every word listed on the left side.
Wishing you great start to this year. I have the image you shared, could you also please share the links that you wish to add in the image.
Once we have the links we would advance to get the image mapping sorted for you.
Happy new year to you too! @pkatyaya thanks for proposing your help in creating the image mapping. I didnt have time to work on the website lately, so the links are still not ready, but I will send them as soon as they are ready. Thank you for this!