Jump to content

How do I include a button on the header only on the Home Page?

Recommended Posts

Site URL: https://qrm-inc.com

I'm new to squarespace, and I'm trying to have a "Careers" link button on my homepage in the top right of the header for aesthetic reasons, but I don't want this button to appear on the header for other pages. I figure this would involve either a CSS that assigns a custom header or one that hides this element on the header of other pages. Is this possible and does anyone have suggestions?

Link to comment
1 hour ago, davidgII said:

Site URL: https://qrm-inc.com

I'm new to squarespace, and I'm trying to have a "Careers" link button on my homepage in the top right of the header for aesthetic reasons, but I don't want this button to appear on the header for other pages. I figure this would involve either a CSS that assigns a custom header or one that hides this element on the header of other pages. Is this possible and does anyone have suggestions?

try

body:not(.homepage) .header-actions-action,
body:not(.homepage) .header-menu-cta {
  display: none;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
2 hours ago, WordsByHermes said:

Hey I'm looking to do this but in the opposite sense: I want to hide the CTA button in the header on only ONE page. Is there a way to do that? 🙂

Find the page id using this

Chrome Web Store - Extensions (google.com)

and replace with collection-id-placeholder 

collection-id-placeholer .header-actions-action,
collection-id-placeholer .header-menu-cta {
  display: none;
}

 

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 3/11/2021 at 8:13 PM, WordsByHermes said:

Hey, 

Thanks for the code. I think I must be doing it wrong because when I put it into the 'header' inject code for the page, it's not working. It just shows up as text. 

(see attached photos for reference)

Any suggestions?

Screen Shot 2021-03-11 at 2.12.59 pm.png

Screen Shot 2021-03-11 at 2.13.08 pm.png

Add the code Design->Custom css

Or wrap it inside style tag like so and replace in your screenshot

<style>

the-code-here

</style>

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.