Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
AlexParker

Remove Page Description from All Pages but Homepage

Question

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!

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0

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;
}

 

Share this post


Link to post
  • 0
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;

Share this post


Link to post
  • 0

@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?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...