MoeTalks Posted April 24 Posted April 24 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.
creedon Posted April 24 Posted April 24 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. MoeTalks 1 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.
MoeTalks Posted April 24 Author Posted April 24 (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. I found it on this blog. https://summaryblock.com/squarespace-remove-footer-code/#How_to_remove_Footer_on_Individual_Blog_Posts thank you for responding. I appreciate it. Edited April 24 by MoeTalks changed font size
Solution creedon Posted April 24 Solution Posted April 24 Excellent! I misunderstood your intent. I was thinking you wanted to target specific posts not all of them. My post would apply to the later. 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.
MoeTalks Posted April 24 Author Posted April 24 I probably didn't explain it right. 😂. No worries. And thanks again. creedon 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment