Jump to content

Code Doesn't Work on Mentor Template

Recommended Posts

Site URL: https://cavaliers.org/staff-bod

Not one code is seeming to work on my website.

I've added this:

#header {
position: fixed;
width: 100%;
z-index: 4;
}

as a Custom CSS to make fixed my website header so that's it's always showing, but it's not working.

And I've tried this:

<style>
      .date {
        display: none;
    }
    </style>

AND this:

<style>
.tweak-blog-item-show-date .blog-item-wrapper .blog-meta-item--date {
    display: none;
}
 time.blog-date {
    display: none !important;
  }
</style>

in specific blog collections to hide the published dates and neither worked!

 

In a previous template I used this:

<style>
 p.date.entry-author {display: none !important}
 .collection-type-blog article .date {display: none;}
 </style>

to hide author and publish dates which worked perfectly fine, but since switching to the template there was already a feature to disable both. I've disabled the authors name (which I needed site wide so great!) but I don't need to disable publish dates site wide.

 

Does anyone know another solution? Who can help me out? This is for the Mentor template.

Thanks!

Edited by 1948-23
Add some more detail.
Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Q1. Add to Design > Custom CSS

header.Header--top {
    position: fixed !important;
    top: 20px !important;
    left: 0;
    z-index: 999;
    width: 100%;
}
.Site-inner {
    margin-top: 162px;
}

Q2. It looks you solved?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
9 hours ago, 1948-23 said:

No, Q2 is not solved. The code for Q1 works - thanks! - but there's an odd gap at the top.

As for Q2, I don't want the dates with these biographies. They're under the url cavaliers.org/staff-bod

 

website header gap.png

websiteDate.png

websiteDate2.png

Q1. edit 20px to 0px

Q2. Add to Design > Custom CSS

/* Staff bold hide date */
body#collection-58805ada15d5db76abd8ab74 time {
    display: none;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 2 weeks later...
On 3/11/2021 at 9:20 AM, 1948-23 said:

This doesn't remove the code within the articles though.

Thanks!

websiteDate.png

You mean date on list page or blog post detail?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.