Jump to content

[Share] (Event Detail) Add custom info

Recommended Posts

Posted

You can follow these to add custom info to Event Detail Left Column. Something like this (Nick H. 17 September 2024)

image.png.dc1d7884e683b45abb9445bb9cac3a67.png

If you can't make it work, you can comment below with site url or message me, I can check easier.

#1. Edit each Event > Add a Code Block

image.png.67804e988e7bf265aacbbc2b5528802a.png

image.png.bb5a60d3c99138aeb158d7f7b4d1acc2.png

#2. Enter this code format to Code Block

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

image.png.0470bc129042c21b60a1abe93f715c9e.png

#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>

image.png.8e119dc76455333168a9dc0fd408a929.png

#4. Result

image.png.9d6d7f983f242f9b2ee23241ca18d6e7.png

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

<style>
  ul.eventitem-meta.event-meta.event-meta-date-time-container {
    display: none;
}
</style>

image.png.8449d60a4fdc77cfc649dc6d21684c14.png

result

image.png.36c27b5563e646e7c8a45a4421521541.png

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!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.