• 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

Showcase Pro – Home Page Transparent Header

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 › Showcase Pro – Home Page Transparent Header

This topic is: resolved

Tagged: front page, Showcase Pro, site-header

  • This topic has 2 replies, 2 voices, and was last updated 6 years, 1 month ago by bradm413.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 8, 2019 at 6:23 pm #491547
    bradm413
    Participant

    Is it possible to have the header remain transparent on the home page only if I have the following CSS changes in place?

    .site-header,
    .header-image .site-header {
    	width: 100%;
    	z-index: 999;
    	padding: 2rem 0;
    	position: relative;
    	background: #cb3309;
    }
    
    @media only screen and (min-width: 800px) {
    
    	.site-header,
    	.header-image .site-header {
    		padding: 3rem 0 2.5rem;
    		position: fixed;
    		top: 0;
    		left: 0;
    		right: 0;
    		background: #cb3309;
    	}
    }

    Sorry, I don't have a live site available of this yet, but you can see the transparent header on the theme demo page:

    https://my.studiopress.com/themes/showcase/#demo-full

    In the original CSS, the code above has background set to transparent instead of the color I'm trying to change it to.

    In the end, I'd like the header to be transparent on the home page only, then #cb3309 on every other page.

    Thanks!

    June 9, 2019 at 8:10 pm #491554
    Brad Dalton
    Participant

    Try adding the body class for the front page. You can get this by inspecting the element or source code.


    Tutorials for StudioPress Themes.

    June 9, 2019 at 10:49 pm #491555
    bradm413
    Participant

    You're a genius! You saved me a lot of time and staring at my screen 😀

    Here are the rules I ended up with, and they seem to do the trick:

    .site-header,
    .header-image .site-header {
    	width: 100%;
    	z-index: 999;
    	padding: 2rem 0;
    	position: relative;
    	background: #cb3309;
    }
    
    @media only screen and (min-width: 800px) {
    
    	.site-header,
    	.header-image .site-header {
    		padding: 3rem 0 2.5rem;
    		position: fixed;
    		top: 0;
    		left: 0;
    		right: 0;
    		background: #cb3309;
    	}
    }
    
    /* keep transparent header on home page only */
    .home .site-header,
    .header-image .site-header {
    	width: 100%;
    	z-index: 999;
    	padding: 2rem 0;
    	position: relative;
    	background: transparent;
    }
    
    @media only screen and (min-width: 800px) {
    
    	.home .site-header,
    	.home .header-image .site-header {
    		padding: 3rem 0 2.5rem;
    		position: fixed;
    		top: 0;
    		left: 0;
    		right: 0;
    		background: transparent;
    	}
    }
  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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

© 2025 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