Cannot style the action button on newsletter form
-
I am running the Genesis theme.
I have added a newsletter opt-in form to the bottom of my blog posts. However, no matter what I do I cannot get my action button to accept any styles. It seems that the theme is overriding any changes I make.
Here is what I have in my funtions.php
function add_newsletter_box() { if(is_single()) { ?> <div id="newsletterbox"> <div class="white-border"> <div class="newsletterbox-wrap"> <h4>Join Our Newsletter</h4> <p>Join over 5,000 people who get free and fresh content delivered automatically each time we publish.</p> <form target="_blank" class="validate" name="mc-embedded-subscribe-form" id="mc-embedded-subscribe-form" method="post" action="//yourdomain.com/subscribe/post?u=9d9cc86410825bf8918492537&id=8a5b61cf27"> <input type="email" required="" placeholder="Enter your email address ..." id="mce-EMAIL" class="email" name="EMAIL" value=""> <input type="submit" class="button_newsletter" id="mc-embedded-subscribe" name="subscribe" value="Sign Up"> </form> </div> </div> </div> <?php } } add_action( 'genesis_entry_footer', 'add_newsletter_box', 10, 1);
Here is what have in my style.css
/* Newsletter Box below Posts ------------------------------------------------------------- */ #newsletterbox { background-color: #f5f5f5; border: 10px solid #e4e4e4; margin-top: 30px; font-size: 14px; font-weight: bold; padding: 10px 15px; text-transform: uppercase; } #newsletterbox .white-border { border: 1px solid #fff; } .newsletterbox-wrap { background: url("images/newsletter/enews-ribbon.png") no-repeat scroll left top transparent; margin: -17px -18px; overflow: hidden; padding: 45px 30px 40px; text-align: center; text-shadow: 1px 1px #fff; } .newsletterbox-wrap h4 { text-align: center; } .newsletterbox-wrap p { margin: 0 35px 20px; text-align: center; } .newsletterbox-wrap input[type="email"] { background: url("images/newsletter/enews.png") no-repeat scroll left center #fff; box-shadow: 0 0 5px #ccc inset; color: #999; font-family: 'proxima-nova',sans-serif; font-size: 12px; margin: 0 5px; padding: 15px 0 15px 45px; width: 40%; } /*** newsletter button */ .button_newsletter input[type="submit"]{ display: inline-block; outline: none; cursor: pointer; text-align: center; text-decoration: none; font: 14px/100% Arial, Helvetica, sans-serif; padding: .5em 2em .55em; text-shadow: 0 1px 1px rgba(0,0,0,.3); -webkit-border-radius: .5em; -moz-border-radius: .5em; border-radius: .5em; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2); -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2); box-shadow: 0 1px 2px rgba(0,0,0,.2); } .button_newsletter input[type="submit"]:hover{ text-decoration: none; } .button_newsletter active input[type="submit"]{ position: relative; top: 1px; }
Does anyone see an error anywhere?
This is on a testing site (not my actual site) https://testsite.fittosurvive.net/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Cannot style the action button on newsletter form’ is closed to new replies.