WildGoose Posted August 26 Share Posted August 26 Hello, I do not want to display the end times on my Event Summary Block: https://wildgoosenyc.com/ Any help would be appreciated! Link to comment
tuanphan Posted August 27 Share Posted August 27 You mean remove this time? 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
WildGoose Posted Monday at 07:53 PM Author Share Posted Monday at 07:53 PM Yes, that is what I want. Link to comment
Solution tuanphan Posted Tuesday at 11:13 PM Solution Share Posted Tuesday at 11:13 PM You can use this code to Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $(".event-time-localized").each(function() { console.log($(this).text()) var currentText = $(this).text(); var currentTextArr = currentText.split("–") if(currentTextArr.length == 2) { $(this).text(currentTextArr[0]) } }); }) </script> 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment