jacoplane
Forum Replies Created
Viewing 5 replies - 1 through 5 (of 5 total)
-
Forum: Plugins
In reply to: [Events Calendar Made Simple – Pie Calendar] 24 hour clock formatOhh right, that’s working, thanks. I also had to change the code that’s used to reformat the meta fields in query loops as described in this article:
https://docs.piecalendar.com/article/35-reformat-meta-fields-in-query-loops
<script> document.addEventListener('DOMContentLoaded', function() { // Find all elements with the class 'pc-event-time' var eventTimes = document.querySelectorAll('.pc-event-time'); eventTimes.forEach(function(element) { // Check if the element has child nodes var targetElement = element.childElementCount > 0 ? element.children[0] : element; // Parse the ISO date string var date = new Date(targetElement.textContent); // Format the date and time var formattedDate = (date.getMonth() + 1) + '/' + // months are 0-based date.getDate() + '/' + date.getFullYear() + ', '; // Get the hours, minutes var hours = date.getHours(); var minutes = date.getMinutes(); // Format the time var formattedTime = hours + ':' + minutes; // Update the text content targetElement.textContent = formattedDate + formattedTime; }); }); </script>
Forum: Plugins
In reply to: [VS Event List] Translation waitingHi Guido,
I’ll have a look, thanks!
Jaap
Forum: Plugins
In reply to: [Events Shortcodes For The Events Calendar] HTML comment showing on mobileAwesome, that worked, thanks a lot!
In case anyone else is having this issue, I gave up on trying to get it to work with Local. I’m using Laragon now, works perfectly.
Forum: Themes and Templates
In reply to: [Skatepark] Disable Duotone on imagesHi @kokkieh,
Great, that worked! In case anyone else is reading this, with FSE themes you can visit the customizer by manually going to wp-admin/customize.php … There’s no link in the dashboard any more I think, that confused me a little.
Thanks for your help!
Viewing 5 replies - 1 through 5 (of 5 total)