Jump to content

Main Events Section & Event Description Pages Formatting

Go to solution Solved by ChrisVL,

Recommended Posts

Hello! Looking for some big help with event pages.

Having trouble making both the main Events page and individual events pages look fit for purpose and not clunky and confusing.

Using Summary Blocks as a bypass isn't an option as I need all events visible, rather than restricted to a set number.

URL: https://greyhound-fiddle-c5hb.squarespace.com

(pass: bogeyman)

Things I'm hoping for...

1a. Hide End Date on all reference points (date tag on image, description in event) (ideally event End Time will still display)

1b. Event Date to list as SAT DD/MM (shortened Day and no year)

2. List events on Event page as a grid

3. Remove all other information / buttons etc on the Event main page so it's only the event image

4. In the individual events, have the Featured Image in a left column with all other info and text on the right (as below):

image.png.1a66993de9ed9d51fee09c13144cc20b.png

Appreciate the help!

Link to comment

#1. Do it on this page: https://greyhound-fiddle-c5hb.squarespace.com/whats-on/2024/1/20/psychedelic-odyssey-wfmnj

or https://greyhound-fiddle-c5hb.squarespace.com/

?

If list page, add this code to Website Tools (under Not Linked) > Custom CSS to remove Date over image

/* remove date over image */
.eventlist-datetag {
    display: none !important;
}
/* remove event description */
div.eventlist-description {
    display: none;
}

#2. Grid like this or?

image.thumb.png.52a88b48d6aed500d1276fa364bb0cd7.png

#3. Use this CSS code

/* remove date over image */
.eventlist-datetag {
    display: none !important;
}
/* remove event description */
div.eventlist-description {
    display: none;
}
div.eventlist-column-info {
    display: none;
}

#4. This will require JS code. Which plan do/will you use?

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

Thanks! This is a great start!

1. On all pages

2. Yes, having a grid of the images would be amazing, so like what you suggest

3. Perfect TY!...although is there a way to set up the Event Name to appear over the image on hover? I've done this before on another site but can't remember how!

4. will be on business plan so JS should be fine?

Again, thanks!

Link to comment

#1. Use this CSS code

/* Hide date on event list */
.eventlist-datetag {
    display: none !important;
}
/* Hide date on event detail */
li.eventitem-meta-item.eventitem-meta-date.event-meta-item {
    display: none;
}

#1b. Date format, you can see this thread

#2. Add this code to Custom CSS

/* Event list to grid */
@media screen and (min-width:768px) {
div.eventlist {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 10px 10px;
}

div.eventlist article {
    margin: 0 !important;
    width: 100% !important;
    flex-direction: column;
}

div.eventlist article>* {
    width: 100% !important;
}

.eventlist-column-thumbnail {
    padding: unset !important;
    height: auto !important;
}

.eventlist-column-thumbnail img {
    position: static !important;
}}

#4. So

Left side: Image

Right side: Back to Link, Title, Description?

image.thumb.png.849b25635beb523a20db84abcf02424d.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!)

Link to comment

Add this to Last Line in Code Injection > Footer

<script>
  $(document).ready(function(){
    $('h1.eventitem-title').insertBefore('div.eventitem-column-content .button-block');
    $('li.eventitem-meta-item.eventitem-meta-date.event-meta-item').insertAfter('h1.eventitem-title');
});
</script>
<style>
  li.eventitem-meta-item.eventitem-meta-date.event-meta-item {
    list-style: none;
}
</style>

 

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
  • 3 months later...
On 1/23/2024 at 8:20 AM, tuanphan said:

#1. Use this CSS code

/* Hide date on event list */
.eventlist-datetag {
    display: none !important;
}
/* Hide date on event detail */
li.eventitem-meta-item.eventitem-meta-date.event-meta-item {
    display: none;
}

#1b. Date format, you can see this thread

#2. Add this code to Custom CSS

/* Event list to grid */
@media screen and (min-width:768px) {
div.eventlist {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 10px 10px;
}

div.eventlist article {
    margin: 0 !important;
    width: 100% !important;
    flex-direction: column;
}

div.eventlist article>* {
    width: 100% !important;
}

.eventlist-column-thumbnail {
    padding: unset !important;
    height: auto !important;
}

.eventlist-column-thumbnail img {
    position: static !important;
}}

#4. So

Left side: Image

Right side: Back to Link, Title, Description?

image.thumb.png.849b25635beb523a20db84abcf02424d.png

Hi, 

Thank you for sharing these codes! with #2 I was able to have my event listing come in grid format. I removed the event decription as well. However I still needed the event column-info to appear. 
Please help with code to align the info to the left edge of the event pic. 

Thank you very much!

image.png.735c93ffd28b3d093d1e82f9cc2438ef.png

Link to comment
18 hours ago, Naoms said:

Hi, 

Thank you for sharing these codes! with #2 I was able to have my event listing come in grid format. I removed the event decription as well. However I still needed the event column-info to appear. 
Please help with code to align the info to the left edge of the event pic. 

Thank you very much!

image.png.735c93ffd28b3d093d1e82f9cc2438ef.png

You can use this new code

/* Event list to grid */
@media screen and (min-width:768px) {
div.eventlist {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 10px 10px;
}

div.eventlist article {
    margin: 0 !important;
    width: 100% !important;
    flex-direction: column;
}

div.eventlist article>* {
    width: 100% !important;
}

.eventlist-column-thumbnail {
    padding: unset !important;
    height: auto !important;
}

.eventlist-column-thumbnail img {
    position: static !important;
}
.eventlist-column-info {
    padding-left: 0px !important;
}
}

 

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
9 hours ago, tuanphan said:

You can use this new code

/* Event list to grid */
@media screen and (min-width:768px) {
div.eventlist {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 10px 10px;
}

div.eventlist article {
    margin: 0 !important;
    width: 100% !important;
    flex-direction: column;
}

div.eventlist article>* {
    width: 100% !important;
}

.eventlist-column-thumbnail {
    padding: unset !important;
    height: auto !important;
}

.eventlist-column-thumbnail img {
    position: static !important;
}
.eventlist-column-info {
    padding-left: 0px !important;
}
}

 

Thank you so much! This worked 😄

Link to comment

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.