Posted: June 2, 2016 at 1:06 pm
Hello! Our payment page, seen here, isn’t responding to any CSS changes. It’s so stretched out with large padding and margins, and for some reason the “Promotion code” header is buried behind the input field. Since we only take one method of payment, we don’t need an entire radio button section for it, nor the important information section – we really just need the Pay now button, which is tiny and is affecting our abandonment rate. I’d love to make a bunch of CSS changes here, but while they show in inspect element, none of them appear when in our stylesheet, including with the !important marker. Is there anything that can be done in CSS on this page? Thanks! |
|
Hello, That is the registration checkout page so your changes should apply there. Could you share an example of the CSS that you are using? You could share in a gist (https://gist.github.com/) or post it here. — |
|
Sure. Here’s some of the code that showed in inspect element but not when put in the CSS. I also tried replacing # with . and vice versa to no effect. Thanks!
|
|
Hello, The names of your CSS elements are correct. However, when I inspect the page, I’m not seeing those new styles. I thought I may have overlooked one or more but I checked several of them. How are they being added to your site? Is this through a custom CSS area or through a plugin that introduces that feature like Simple Custom CSS? If they were removed, then could you please restore them and reply here? Thanks — |
|
Our theme has a custom CSS input page. We are affecting other parts of EE and our website in general with it, but it seems to not work with this one page. The new styles have not been removed and are still active, despite not feeding through to the other end. I have also tried the Simple CSS plugin but they’re still not showing. |
|
Wait! Some of them are working from Simple CSS when I change . to #. Hold on, let me explore this for a second. |
|
Okay! With some slight changes, it worked. Thanks so much! |
|
Hi Lauren, I ran a test registration and can see your styles are being applied, so I guess you’ve figured this out ๐ Just to note for future reference, there is a differece between the . and # selector and it will only work if you use the correct one. # is for the ID of an element. . is for the class of the element. So to target the Stripe payment button you used But if you take a look here – http://take.ms/Kk3CX You can see that it has an ID of ee-stripe-button-btn, so that needs to be:
The same applies for any element within CSS, you’ll need to make sure you use the correct selector for each element ๐ |
|
The support post ‘Custom CSS not affecting EE4 Stripe payment page’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.