AlexParker Posted November 11, 2019 Posted November 11, 2019 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!
AlexParker Posted November 11, 2019 Author Posted November 11, 2019 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; }
tuanphan Posted November 11, 2019 Posted November 11, 2019 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!)
AlexParker Posted November 13, 2019 Author Posted November 13, 2019 On 11/11/2019 at 6:30 PM, tuanphan said: try visibility:hidden; or display:none; Thank you, I'll give that a try!
AlexParker Posted November 14, 2019 Author Posted November 14, 2019 @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?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.