• 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

Gray Background on PayPal Button

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 › Gray Background on PayPal Button

This topic is: resolved
  • This topic has 4 replies, 3 voices, and was last updated 12 years, 7 months ago by Susan.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 1, 2013 at 3:31 pm #60102
    MoodyRiviera
    Member

    Hello,

    I'm setting up a web site using the Enterprise theme, and using a PayPal "Donate" button. The "Donate" buttons seems to operate OK through PayPal, but the problem is that the button has an unwanted "gray backround" even though the button itself has a "transparent background."

    I'm guessing that some kind of CSS rule is adding the gray background, but my CSS skills aren't good enough to figure it out.

    I hope someone will help me figure out how to make the gray background disappear from the PayPal button. Here's the URL:
    http://www.vietnow.com/donate

    Thank you.

    http://www.vietnow.com/donate
    September 1, 2013 at 4:28 pm #60108
    Susan
    Moderator

    The background (and border) is controlled in the stylesheet, starting at line 116:

    .wp-caption {
    -khtml-border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    }

    September 1, 2013 at 4:40 pm #60110
    Gary Jones
    Member

    Removing the background and border from the code Susan gave will remove it for all of the following:

    blockquote, input, select, textarea, .author-box, .sticky, .taxonomy-description, .wp-caption

    which is probably not what you want.

    The solution is to add a class="paypal" to your form element, then:

    .paypal input {
        background: transparent;
        border: none;
    }

    If you don't care about IE8 users, you can skip the class attribute, and just use:

    form[action*="paypal.com"] > input {
        background: transparent;
        border: none;
    }

    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

    September 1, 2013 at 5:26 pm #60126
    MoodyRiviera
    Member

    All right!!!!!!!

    I was in a bad mood because I couldn't figure this out...but now I'm happy because you both have helped me.

    Thanks to Susan for the fast and helpful advice. I tried what you said, but it caused problems with places where I actually needed the background color.

    Then I came back here and saw Garyl's instructions, and that was the next part of the key.

    Due to my minimal knowledge of coding, it took several tries for me to figure out where to put the new class in the HTML (after I created the new class in the stylesheet, but eventually I got it, and the PayPal button now looks great.

    Thanks so much for all your help.

    September 1, 2013 at 5:29 pm #60127
    Susan
    Moderator

    Glad to be of some assistance, but it was Gary that saved the day 😉

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Gray Background on PayPal Button’ is closed to new 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