Inkdave Posted March 25 Share Posted March 25 Hi All I have 3 sections on my homepage that use background images. Is it possible using CSS to make these clickable links? So they can link to my product category pages. Currently they link to product category pages via simple text links, which is a little clunky… Also if clickable background image is possible can you also add a hover state, such as an image overlay? url : Inkcandy.co.uk many thanks in advance. Link to comment
Inkdave Posted March 25 Author Share Posted March 25 I have seen that this is possible, but appreciate it’s perhaps not straight forward. And help would be much appreciated thanks Link to comment
Solution tuanphan Posted March 27 Solution Share Posted March 27 First, edit 3 sections > Add a Code Block > Paste this code. Change /who-we-are to link what you want. <a href="/who-we-are" class="section-clickable"></a> Here is just an example Next, use this code to Website > Website Tools > Custom CSS /* section clickable */ a.section-clickable { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 99; } .code-block { position: static !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Inkdave Posted March 27 Author Share Posted March 27 I had all but given up on this and then you come along and provide the perfect solution. Thank you so much for your help! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment