• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Remove specific page content area for neater slider display

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove specific page content area for neater slider display

This topic is: not resolved

Tagged: reduce page content area size, remove page content area

  • This topic has 10 replies, 2 voices, and was last updated 11 years, 5 months ago by emasai.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • May 13, 2015 at 9:34 am #152005
    jonathonfowler
    Participant

    Hi,

    Would anyone be able to advise how to remove the white page background/content area that would normally be filled with text?

    I have a few pages currently displaying sliders, but I don't like the white page background areas protruding from the top and bottom of the slider.

    See an example here:

    Either how to reduce the size of the white content area so tha it disappears behind the slider, or alternatively how to completely remove the content area, I can then use Simple Hooks plugin to add code for the slider just below the menu area - and how to only apply this to the slider pages, not all pages?

    Thank you!


    Award-winning wedding photographer in Scotland

    http://www.jonathon.co/pre-wedding-photo-shoot-engagement-photos/
    May 13, 2015 at 12:40 pm #152035
    emasai
    Participant

    To find a specific page id, you need to use a web inspector and view the html output. The page id will be at the top and look something like this:
    <body class="page page-id-86951 page-template-default custom-background header-full-width full-width-content" itemscope="itemscope" itemtype="http://schema.org/WebPage" cz-shortcut-listen="true">

    Next with your web inspector you need to find which tag is outputting the white background, in your case
    .content .entry{
    background-color: #fff;
    }

    Next in your css file add each page id and tag and remove the background:
    .page-id-86951 .content .entry{
    background-color: transparent;
    }

    For several pages, you need to state the full tag and separate with a comma except for the last one:
    .page-id-86951 .content .entry,
    .page-id-87314 .content .entry,
    .page-id-87268 .content .entry{
    background-color: transparent;
    }

    A simpler way would be to give each of this type of page a body class e.g. photography, and use that instead.
    .photography .content .entry{
    background-color: transparent;
    }

    The body class can be added to each page below the text editor, under Layout Settings > Custom Body Class. If this is not visible on your posts/pages go to the top of the page and click on Screen Options (top right corner) and check Layout Settings.

    Scots Wha Hae!


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    May 13, 2015 at 2:24 pm #152063
    jonathonfowler
    Participant

    Hi Lynne,

    Thank you very much for this information, I appreciate it and I'll put it to use in a wee while!

    How would I then reduce the padding above and below the slider, how would I reduce the size of the content area so the top of the slider sits up against the bottom of the menu area, and the bottom of the slider sits level with the footer area?

    Thanks again for your reply!

    Regards,

    Jonathon.


    Award-winning wedding photographer in Scotland

    May 13, 2015 at 3:25 pm #152073
    jonathonfowler
    Participant

    I tried your suggestion above but it's not had the desired effect - nothing has happened 🙁


    Award-winning wedding photographer in Scotland

    May 14, 2015 at 2:19 am #152133
    jonathonfowler
    Participant

    Fixed! I changed a setting on the slider and now the white content area has been made transparent. thank you!

    Now if I can reduce the height of the content area on the slider pages only, as noted above, the slider pages will look much neater and more compact.

    I appreciate your assistance, thank you again!


    Award-winning wedding photographer in Scotland

    May 14, 2015 at 7:43 am #152176
    jonathonfowler
    Participant

    What I want is the slider to work the same way as supersized: http://buildinternet.com/project/supersized/slideshow/3.2/demo.html is it possible?


    Award-winning wedding photographer in Scotland

    May 15, 2015 at 12:48 pm #152330
    emasai
    Participant

    Sorry for the delay, caught up in work.

    To just show the full width slide show, you need a specific page template to show your full width slider show without the background. For the moment I can replicate what you want in the browser, but it means that you are loading both the content with the background image and the slider on top. This will use up a lot bandwidth, not a good fix.

    BTW, I can still see the white band above and below the slider.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    May 15, 2015 at 12:51 pm #152331
    jonathonfowler
    Participant

    Thanks Lynne, I appreciate your help. I can easily remove the background image, leaving just the slider in place. That's strange about the white bars, I can;t see them when logged in as admin, but I can see them logged out.


    Award-winning wedding photographer in Scotland

    May 15, 2015 at 12:57 pm #152334
    emasai
    Participant

    My suggestion of giving each slider page a custom body class would help you organize all this. So you are only targeting the pages that have a class of say "superslider" then you can remove all the extraneous elements that you do not require on those pages.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

    May 15, 2015 at 1:09 pm #152337
    jonathonfowler
    Participant

    OK, thanks Lynne. Which extraneous elements would need to be removed, and how do i remove elements using CSS?


    Award-winning wedding photographer in Scotland

    May 15, 2015 at 1:29 pm #152342
    emasai
    Participant

    You will need to install a web inspector on your browser, then you can view your site and see which elements need changing in the css and view the effect it will have directly in your browser. It will also give you the line numbers. Best to make a back up copy of your css file first and then modify the original, in case you mess up and need to go back. Hopefully you are familiar with FTP as this is the best way to modify your files. If you use the WordPress editor, you will not see the line numbers and in the case of a functions file, can crash your site.


    Need Website Customization or a Responsive CSS fix? Contact Me
    Lynne emasai.com

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble