tuanphan Posted November 29 Posted November 29 You can follow these to achieve effect "Click List item title >> Open an email Or click list item title >> Open a new page" #1. First, you need to enable Button #2. Add Email link to Button by clicking Attach Link > Choose Email and enter your email/subject/message #3. Find ID of List Simple Section In my example, it is: section[data-section-id="673db68dc3687009034aeeb9"] #4. Use this code to Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function() { function wrapImageWithLink() { const listItems = $('section[data-section-id="673db68dc3687009034aeeb9"] .list-item'); listItems.each(function() { const img = $(this).find('h2.list-item-content__title'); const link = $(this).find('.list-item-content__button-wrapper a'); if (img.length && link.length) { const newLink = $('<a>').attr('href', link.attr('href')); img.before(newLink); newLink.append(img); } }); } wrapImageWithLink(); }); </script> #5. To hide buttons, you can add this code under <style> section[data-section-id="673db68dc3687009034aeeb9"] .list-item-content__button-wrapper { display: none; } </style> 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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment