WildGoose Posted July 16 Share Posted July 16 I am using an Events Summary Block on my homepage. My events all start late and go into the next day. This means each event looks like it's multiple days. But it's not, it's just late. I tried changing the end time to 11:55pm, but then it looks like it ends early. Can I remove all end dates and end times from the Summary Block? Link to comment
Lesum Posted July 16 Share Posted July 16 @WildGoose Can you share your site URL for context? If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
Lesum Posted July 16 Share Posted July 16 @WildGoose First off, you can hide the end date by setting the Secondary Metadata in your summary block settings to 'None'. See the screenshot for reference. I just wrote this code solution to hide the end date. Add this code by navigating to Website > Pages > Website Tools > Code Injection > Header: <script> document.addEventListener("DOMContentLoaded", function() { const eventDate = document.querySelectorAll('time.summary-metadata-item.summary-metadata-item--date'); eventDate.forEach(element => { const dateText = element.innerHTML; const endDateIndex = dateText.indexOf('–'); if (endDateIndex !== -1) { element.innerHTML = dateText.substring(0, endDateIndex).trim(); } }); }); </script> WildGoose 1 If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. Sam Web Developer & Digital Designer ☕ Did you find my contribution helpful? Buy me a coffee? Link to comment
WildGoose Posted July 16 Author Share Posted July 16 Epic - worked perfectly. Thank you! Lesum 1 Link to comment
WildGoose Posted August 6 Author Share Posted August 6 Now end dates are appearing on my two karaoke events. Did I do something wrong here? https://wildgoosenyc.com/ 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