Jump to content

Remove Page Description from All Pages but Homepage

Recommended Posts

Posted

Hello!

I am using the York template.

I am trying to remove the page description from every page on my site except for the homepage. The homepage's page description places copy over our intro banner video, which I need, but this feature also places divs for copy at the top of *every* page, and I would like to remove the page description copy and its div space on those pages.

Is there an if/then loop that can identify the homepage from all other pages and remove the page description block from all pages but the home page?

Thank you!

  • Replies 4
  • Views 417
  • Created
  • Last Reply
Posted

Update:

I was able to remove page descriptions from every page but the homepage, but the following code also removes the necessary padding from the description on the homepage. I countered this fix (poorly) by adding extra blank lines of spaces above the page description text to move it roughly into a vertically centered position in its div, but have not found a proper solution yet.

 

/* Removing page descriptions from every page but the Home Page */

:not(.collection-5dbb168dd36ae56a609c8da0).page-text-wrapper.clearfix.sqs-frontend-overlay-editor-widget-host {
visibility:collapse !important;
margin-top: 0px !important;
margin-bottom: 0px !important;
}

 

Posted
3 hours ago, AlexParker said:

Update:

I was able to remove page descriptions from every page but the homepage, but the following code also removes the necessary padding from the description on the homepage. I countered this fix (poorly) by adding extra blank lines of spaces above the page description text to move it roughly into a vertically centered position in its div, but have not found a proper solution yet.

 


/* Removing page descriptions from every page but the Home Page */

:not(.collection-5dbb168dd36ae56a609c8da0).page-text-wrapper.clearfix.sqs-frontend-overlay-editor-widget-host {
visibility:collapse !important;
margin-top: 0px !important;
margin-bottom: 0px !important;
}

 

try visibility:hidden;

or

display:none;

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted

@tuanphan Unfortunately those options didn't change anything, but what I'm seeing now is that the 'page description' div is gone (yay!) in the developer view, but on the live site, the empty div remains at the top of pages. Is there a reason for developer view and live view being different?

Archived

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.