Tagged: x
-
AuthorPosts
-
January 19, 2017 at 10:28 am #1336812
[email protected]ParticipantOn page http://www.gaflajewellery.com/wpsite/contact-us/ following CSS enables an in-line mailchimp subscribe form …
@media (min-width: 480px) {
.x-subscribe-form-1290 {
max-width: 100% !important;
}
.x-subscribe-form-1290 fieldset {
width: 74%;
float: left;
margin-right: 0%;
display: block;
}
.x-subscribe-form-1290 fieldset:last-child {
width: 25% !important;
float: left;
margin-right: 0;
}
.x-subscribe-form-1290 input[type=”submit”] {
margin-top: 0px !important;
background-color: #de7929;
border: none;
font-family: “Lato” !important;
color: white;
padding: 11px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 14px !important;
line-height: 14px !important;
}
.x-subscribe-form input[type=”email”]{
font-family: “Lato” !important;
padding: 8px 15px;
font-size: 14px !important;
line-height: 14px !important;
}
.x-alert {
display: inline-block;
}
}But when a visitor subscribes, the success alert scrambles the form layout. How do I ensure form layout is not scrambled ?
This is the css class for the alert : .x-alert
January 19, 2017 at 11:22 am #1336899
RahulModeratorHi there,
Greetings! Thank you for contacting us 🙂
You can add this under Custom > CSS in the Customizer.
.mrn, .mhn, .man { margin-right: 139px !important; }Let me know if this helps! Thanks
January 19, 2017 at 12:08 pm #1336980
[email protected]ParticipantI am afraid that did not help, just moved it around a but. Attaching screenshot, but you can try it too…use a dummy email like [email protected] to see yourself. I will remove these emails from the list later.
January 19, 2017 at 12:20 pm #1336995
RahulModeratorHi There,
Thank you for providing us the screenshot.
Just to confirm before I provide you the CSS code, are you trying to make the width of the success alert of the same width as the Subscribe Button?
Awaiting your response. Thanks!
January 19, 2017 at 12:37 pm #1337020
[email protected]ParticipantI really do not care about the width of the alert, ideally it’s width should only be as wide as the message.
My main concern, and only concern is not to have my initial form layout broken.
Thanks.
January 19, 2017 at 12:43 pm #1337026
JoaoModeratorHi There,
Please add the following code to Appereance > Customizer Custom > CSS
.x-alert { margin-top: 20px !important; } @media(max-width: 769px) { .x-alert-success, .x-alert { width: 100%; } }Hope it helps
Joao
January 19, 2017 at 12:43 pm #1337027
[email protected]ParticipantYou gave this code below…
.mrn, .mhn, .man {
margin-right: 139px !important;
}That screwed the map on my contact us page. Why are you trying to modify those classes ???
January 19, 2017 at 12:46 pm #1337028
JoaoModeratorHi There,
Please remove:
.mrn, .mhn, .man { margin-right: 139px !important; }Hope that helps,
Joao
January 19, 2017 at 12:48 pm #1337030
[email protected]ParticipantWith this code below…it is not helping…not even close…
.x-alert {
margin-top: 20px !important;
}
@media(max-width: 769px) {
.x-alert-success, .x-alert {
width: 100%;
}
}What are you trying to accomplish, we need to ensure the form layout stays intact. check this screenshot.
January 19, 2017 at 12:49 pm #1337035
[email protected]ParticipantYes Jao removing those CSS helped restore the map. Please suggest the modification so this map layout is preserved after a successful submit.
January 19, 2017 at 1:11 pm #1337083
[email protected]ParticipantSorry I meant the form layout (not map layout) is preserved after a successful submit.
January 19, 2017 at 3:41 pm #1337336
Nabeel AModeratorHi again,
Please find the following code in your Custom CSS:
.x-subscribe-form-1290 fieldset { width: 74%; float: left; margin-right: 0%; display: block; }And replace it with this:
.x-subscribe-form fieldset:nth-child(3) { width: 75% !important; float: left; margin-right: 0%; display: block; }Let us know how this goes!
January 19, 2017 at 11:05 pm #1337849
[email protected]ParticipantHey that solved it, thank you so much Nebeel for hitting it right on the head.
🙂
January 20, 2017 at 1:20 am #1337982
RadModeratorYou’re welcome!
January 20, 2017 at 2:49 am #1338088
[email protected]ParticipantRad, Nebeel, one last thing, can I have the Subscribe button on the left and the email field on right ?
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1336812 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
