Hey, does this code work for any Sense theme? The solution above stopped working for me after a few weeks.
Topic summary
A user seeks to make multicolumn product images on their Sense theme homepage clickable, linking to product pages.
Initial Solution:
- A helper provided JavaScript code to be added above the
</body>tag intheme.liquid - This successfully made the multicolumn elements clickable initially
Ongoing Issues:
- The original solution stopped working after a few weeks due to hardcoded class references breaking when DOM elements changed
- An updated code snippet was provided to fix current issues, placed above
</head>instead - For a permanent fix that survives future edits, direct theme code access would be needed
Latest Request:
The original poster now wants:
- Ability to customize background colors for each multicolumn item (currently grey)
- Persistent clickable functionality that doesn’t break with theme updates
Another user encountered similar issues but had different site structure (multicolumn not initially visible), requiring site-specific code adjustments. The discussion remains open as the user seeks a more robust, dynamic solution.