• 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

Parallax Page Title Bar – Change colour on certain pages

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 › Parallax Page Title Bar – Change colour on certain pages

This topic is: not resolved

Tagged: bar, colour, css, header, page, page-title, parallax, parallax-pro, title

  • This topic has 2 replies, 2 voices, and was last updated 8 years, 7 months ago by SamBell.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 23, 2015 at 8:15 pm #141966
    SamBell
    Member

    Hi everyone!

    I am working on a project and I was wondering if there is a way to change the page title bar that spans full width to a different colour on only certain pages.

    The main colour is a pink colour but on only a few pages, I would like to make it gold.

    In this screenshot, you can see the pink bar that says 'START HERE' - It is this bar on only the ELITE pages that I would like to turn gold. On all other pages I want it to be left pink.
    SCREENSHOT

    I am unable to give you the URL as this is a membership site and you'd need to register to see the pages in question anyway. Hopefully the screenshot will suffice!

    Any suggestions or is this too much of a long shot!?

    http://i79.photobucket.com/albums/j155/sambellcreative/Screen%20Shot%202015-02-24%20at%201.09.34%20pm_zpsluzykddj.png
    February 23, 2015 at 8:53 pm #141968
    Lauren @ OnceCoupled
    Member

    Pages have unique body classes you could use to accomplish this. Using your browser inspector to find the proper class for each, you'd have something like:

    .page-id-2690 .title-bar,
    .page-id-150 .title-bar {
         background-color: gold;
    }

    Alternatively, you could apply a special class to these pages, and then use something simpler like:

    .elite-page .title-bar

    http://my.studiopress.com/snippets/custom-body-class/

    Best,
    Lauren


    We create mobile-first, PageSpeed-optimized, pixel-perfect custom themes! https://www.oncecoupled.com

    February 25, 2015 at 7:57 pm #142302
    SamBell
    Member

    Oh of course! Thank you that was really helpful!

  • 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

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