Hey guys! Would anyone happen to know why on my events page on my website, are the buttons that say "more info" are black, but once the event has past (see a historic date at the bottom) do they turn green?
https://harpenden.thewearecommunity.co.uk/local-events
I would like them all to be green!
The only coding I have used is the below, which changes the text "event info" to "more info" but does not effect the colour!
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$(".eventlist-button").html(function() {
return $(this).html().replace("View Event", "More Info");
});
});
</script>
Thanks so much!
Katie