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

Remove Page Description from All Pages but Homepage


AlexParker

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!

Link to comment
  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

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

 

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

Email me if you have need any help (free, of course.). Answer within 24 hours.

How to: Setup password & share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care - Learn CSS - Custom Popup - Testimonial Slider

I'm Tuan, blogger/owner of a free library for children in Vietnam. Helping the community is a hobby. Contact me via email.

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