Jump to content

Sandie

Circle Member
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Sandie's Achievements

Single Status Update

See all updates by Sandie

  1. Hi there,

    I hope it is OK to message your page. I am using an Events page to display job listings, which, by default, includes a start date and an end date.

    • Wed, 29 Sep 2021  - Fri, 29 Oct 2021

    I only want to show the Start date, but both are list items and share the same class, so it seems impossible to target them separately using css. For now, I have just hidden both dates:

    .eventlist-meta-item.eventlist-meta-date.event-meta-item {
       display: none;
    }

    - Firstly I thought about using the :nth-child selector -

    .eventlist-meta-item.eventlist-meta-date.event-meta-item:nth-child(2) {
      display: none;

    But there is only 1 child in the <li> so that failed.

    - Is it somehow possible with css to target the element after the "-" (span.event-datetime-divider) ?

    - Or maybe there is a way to use jQuery to get the "startDate" from the original Event listing and display that at the top of each event? 

    I think this may be impossible, but thanks for any help you might be able to offer.

    https://www.totalrecruitment.co.nz/job-vacancies

    1. Beyondspace

      Beyondspace

      Could you create new topic and tag me there

    2. Beyondspace

      Beyondspace

      You can try adding to Home > Design > Custom Css

      .event-datetime-divider + time,.event-datetime-divider {
        display:none;
      }

       

    3. Sandie

      Sandie

      You're a genius! That worked perfectly. Thank you so much!😍

×
×
  • 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.