Jump to content

Adding header on Access Denied screen

Go to solution Solved by tuanphan,

Recommended Posts

We have a member area, however the Access Denied screen is missing the header.

Due to the styling of the overall website, the header is transparent, which of course applies to the Access Denied screen.

Is there a way to get this back, just on this page?

Link to comment
  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

16 hours ago, lh-cl-2021 said:

Hi Tuan!

Thank you - it's this link below
https://www.absolutecp.co.uk/kaspas

The issue I have is I can add a header via the system page, but it also affects all system pages - I only need it to affect this one page.

Change nav items color or change header color?

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
On 6/28/2023 at 10:51 PM, lh-cl-2021 said:

Just the header colour - the nav is in white, as is part of the logo, which is why it's not visible.

You try adding this code into Page Header

<style>
  header#header {
    background-color: #f1f !important;
}
</style>

 

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
On 6/30/2023 at 8:52 AM, tuanphan said:

You try adding this code into Page Header

<style>
  header#header {
    background-color: #f1f !important;
}
</style>

 

This works great but it places it on all pages - is there a way to have it just on the Access Denied page?

Link to comment
  • Solution

Remove that code

Add this to Last Line in Settings > Developer Tools > Code Injection > Footer

<script>
  $(document).ready(function() {
  $('#sqs-member-access-page-root').parents('body').addClass('ss-deny');
});
</script>
<style>
  body.ss-deny header#header {
    background-color: #f1f !important;
}
</style>

 

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
On 7/5/2023 at 9:32 AM, tuanphan said:

Remove that code

Add this to Last Line in Settings > Developer Tools > Code Injection > Footer

<script>
  $(document).ready(function() {
  $('#sqs-member-access-page-root').parents('body').addClass('ss-deny');
});
</script>
<style>
  body.ss-deny header#header {
    background-color: #f1f !important;
}
</style>

 

You are AMAZING!! Thank you so much!! ☺️

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.