tuanphan Posted September 19 Share Posted September 19 To remove End Time of event in Event Summary You can use this code to Website Tools > Code Injection > Footer. If it doesn't work, you can send link to page where you have problem, I will check it again. <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> Result 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