• 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

Darken images with CSS for Parallax Pro Theme

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 › Darken images with CSS for Parallax Pro Theme

This topic is: not resolved

Tagged: background gradient, parallax-pro

  • This topic has 2 replies, 2 voices, and was last updated 4 years, 4 months ago by wolfcoach.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • September 5, 2018 at 2:06 pm #222978
    wolfcoach
    Participant

    I'm using the Parallax Pro theme for a few sites, and would like to darken the background images in the ".home-section-1", 3, and 5 for text visibility.

    Since I'm using stock photos from a managed WP hosting solution, pulling them out to darken manually is a total hassle. I'd rather have a static 'screen' automatically over the background images so I can see which ones look best without having to photoshop everything.

    I have experimented with a screen effect behind the text alone, but it looks kinda trashy. I'd prefer keeping the design look & feel like the default Parallax theme with the whole image subtly darkened.

    Everything that I've seen in search either darkens the entire section (including the text) or removes the background image. I'd love to hear any ideas folks may have.

    https://elitelandingpages.com/
    September 6, 2018 at 6:38 am #223009
    Brad Dalton
    Participant

    You could use the same effect as whats used in the Essence Pro child theme https://my.studiopress.com/themes/essence/#demo-full

    The CSS is added inline in the lib > output.php file.

    It looks like the reason its added is to make the text readable regardless of the image used.


    Get Help – Book Consultation.

    September 6, 2018 at 8:34 am #223013
    wolfcoach
    Participant

    Great idea, and yes that is the primary reason I'm looking to darken these images - better text clarity.

    It didn't work as originally expected but it did prompt a solution to be found. I modified the CSS with a hex transparency and added a color blend mode, which ultimately darkens the image via opacity. Now the images appear to have a dark overlay and text is clearer:

    .home-section-1,
    .home-section-3,
    .home-section-5 {
    background-attachment: fixed;
    background-color: #00000080;
    background-position: 50% 0px;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    background-size: cover;
    background-blend-mode: color;
    }

    Thanks for your idea!

  • 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