• 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

How get CSS for content-box with background-color or -image?

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 › General Discussion › How get CSS for content-box with background-color or -image?

This topic is: not resolved
  • This topic has 4 replies, 2 voices, and was last updated 7 years, 12 months ago by Dan-cer.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • July 23, 2017 at 12:07 pm #209490
    Dan-cer
    Member

    Hi there,

    I'm using already this content-box-code:

    .content-box-blue {
        background-color: #BDE1F4;
        border: 1px solid #66C6F8;
        margin: 0 0 25px 0;
        overflow: hidden;
        padding: 15px;
        border-radius: 3px;	
    }

    There is the background-color defined. I want to have a content-box, where I can choose the color or image for the background.

    Is this possible by CSS or better by a script? Or is there a plugin available?

    kind regards,
    Rainer

    July 24, 2017 at 6:33 am #209525
    Victor Font
    Moderator

    Why not just create new classes for the background color you want? i.e., .content-box-blue, .content-box-red, .content-box-pink, .content-box-yellow, etc.

    Doing it any other way is an awful lot of work.


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    July 24, 2017 at 6:39 am #209526
    Dan-cer
    Member

    Doing it any other way is an awful lot of work.

    Yes Victor, you're right. I would need a plugin for it to have a placeholder for different background-options.

    Is there such a plugin available?

    July 24, 2017 at 7:31 am #209527
    Victor Font
    Moderator

    No plugin that I'm aware of. Let me refer you to this post. https://www.studiopress.com/colored-content-boxes-buttons/


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    July 24, 2017 at 7:40 am #209528
    Dan-cer
    Member

    Yes, frome there I got my content-boxes that I'm using already.
    I will build on these codes now.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ 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