Buy me a coffee

Event Custom Metadata

Description: I need to add a custom artist name and a custom date + time field inside “eventitem-column-meta.” The artist name should go above “eventitem-title” and date+time underneath, but they can both be underneath if that’s not possible.

#1. Edit each Event > Add a Code Block

Event Custom Metadata 01 Min

Event Custom Metadata 02 Min#2. Enter this code format to Code Block

<div class="event-custom-metadata">
<h3>Nick H.</h3>
<p>17 September 2024</p>
</div>

Event Custom Metadata 03 Min#3. Use this code to Code Injection – Footer (or Event Page Header Code Injection)

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $('.event-custom-metadata').insertAfter('h1.eventitem-title');
});
</script>
<style>
.event-custom-metadata h3 {
    margin-top: 0px;
    margin-bottom: 0px;
}
.event-custom-metadata p {
    margin-top: 2px;
    margin-bottom: 2px;
}
</style>

Event Custom Metadata 04 Min#4. Result

Event Custom Metadata 05 Min#5. If you want to remove the current Event Date/Time, use this code under

ul.eventitem-meta.event-meta.event-meta-date-time-container {
    display: none;
}

Event Custom Metadata 06 Min#6. Result

Event Custom Metadata 07 Min