Jump to content

How can I edit the style settings on one page only?

Recommended Posts

Essentially I want to have one page, my home page, different to the rest. Is there anyway to do this?

I don't mean change the layout or what have you, I simply want this page to have all its aspects transparent. Such as Content Background, Headings Colour, Body Text Colour, so you can just see the background image and it acts like a home page. I want to be able to change the aspects of the page without influencing or changing the whole site...

I am using the Momentum template.


Link to comment
  • Replies 8
  • Views 34.2k
  • Created
  • Last Reply

Yes, you can affect just a single page by using either the 'collection id' for that page with the 'Custom CSS' section, or by using the 'Page Header Code Injection' section for the particular page, in conjunction with some custom CSS and the various selectors.

To use the collection ID / custom CSS section you would go to the page in question, and then click the 'Manage Site' (gear icon) and then look in the URL for that page, it should look something like:


The bold part is the number you need to copy. Then you would go to the Custom CSS section -- 'Change Style' (paintbrush) > 'CSS' which pops open a window. You would add the collection ID before the selector you want to work with, something like this (replacing the collection ID with your own):

#collection-516240dfe4b0b72af94f9ff5 #canvas-wrapper { background-image: none; }
#collection-516240dfe4b0b72af94f9ff5 #horizontal-navigation-bar { display: none; }

If you were to use the 'Page Header Code Injection', you would instead go to the page you want to apply these changes to, then go 'Manage Site' (gear icon) > 'Page Settings' > 'Advanced' and paste this into the 'Page Header Code Injection':

   body { background-image: none; }
   #horizontal-navigation-bar { display: none; }

But in order for this to work, you need to find the various the selectors you want to hide. This can be done using the 'Inspect Element' found in Chrome and Safari, or by using the add-on 'Firebug' for Firefox. Different templates use different selector names so there's not really any way to provide the selectors without that basic information.

Link to comment

what you're saying makes sense, but I am struggling to carry it though.. my page's url is just /home so does make the first thing I put in need to be #collection-home ?

after that I am very lost. I have inspected element with chrome, but really do not know how to decipher the coding to find what right words to put in.

I simply want to make the content all disappear so you can just see the background image. Apologies, very new to this. Thanks again

Link to comment

No, you need to find the collection ID number and use that, as I described above. You can use the 2nd method, however, if you want to avoid collection id's altogether.

It can be tricky finding all of the elements on a page, so if you post a link to the page on your site you want to remove all of the elements, I can provide the appropriate CSS.

Link to comment

@leather0294 - The CSS you would need to paste into the custom CSS section on your site is this:

#collection-5196d546e4b0a0fe04e906ab #mainContent { display: none; } 


If you decided to use the 'Page Header Code Injection' section for that particular page instead, you would paste this into the the 'Page Header Code Injection':

  #mainContent { display: none; } 

Link to comment
  • 6 months later...


This topic is now archived and is closed to further replies.

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