Jump to content

remove site footer from individual blog post

Go to solution Solved by creedon,

Recommended Posts

I can remove the site footer from the whole website by using footer {display:none} but I only want the footer on the home page.  there is no option to target the individual post unless I target the item number but I would end up with hundreds of css codes.  Is there a way to target the footer on an individual blog post?  I tried the main collection page which works but it doesn't transfer over to the individual post.  Thanks.

Link to comment

As you've noted you can do it with CSS but it is tedious.

I know of no code that currently does the following. My general approach to such a problem would be to use tags to indicate to some code which posts should have their footer hidden. Then the code adds a class to the page so that CSS would know to hide the footer. There are a couple of ways you could slice this problem but the end effect would visually be the same.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
Posted (edited)

@creedon.  You are not going to believe this but this actually works.

/* remove footer */
body[class*="type-blog"].view-list footer.sections {
display: none;
If this ever does not work I will take in your suggestion about tagging but I cannot believe it that this works.
thank you for responding.  I appreciate it.
Edited by MoeTalks
changed font size
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.