Tagged: x
-
AuthorPosts
-
October 18, 2016 at 3:37 pm #1221301
ChgrimParticipantHi,
I am trying to get an inline button for my email subscription.
Right now I have this
http://www.topdownreviews.com/test/
Here is the code I am using
body .x-subscribe-form fields { display : inline-block; vertical-align:top; } .x-subscribe-form input[type="submit"] { background: url('http://www.topdownreviews.com/wp-content/uploads/2016/10/Submit-button-1.png') center no-repeat; background-size: cover; border: 0; width: 100%; color: transparent; padding: 10px 44px; min-width:100px; min-height:110px; } /* email field width */ .x-subscribe-form input[type="email"] { width: 100%; } .x-subscribe-form input[type="email"] { margin-top: 10px !important; } .page-id-1107 #x-section-2 { padding-top: 0 !important; }How do I make it so the button is inline and the same height as the enter email field?
Thanks!
October 18, 2016 at 11:51 pm #1221825
FriechModeratorHi There,
Thanks for writing in! First please increase the max-width of the form so both the button and input field fits in.
Then update your custom CSS code to this:
.x-subscribe-form fieldset { display: inline-block; vertical-align: top; } .x-subscribe-form input[type="submit"] { background: url('http://www.topdownreviews.com/wp-content/uploads/2016/10/Submit-button-1.png') center no-repeat; background-size: cover; border: 0; color: transparent; margin-top: 0; } .x-subscribe-form input[type="email"] { margin-top: 0 !important; }Hope it helps, Cheers!
October 19, 2016 at 1:34 pm #1222688
ChgrimParticipantThat worked perfectly! Thanks so much! You guys are the best 🙂
This is a little bit of an extra but I don’t suppose there is a way to make the email field slightly transparent?
http://www.topdownreviews.com/marijuana/
Thanks
ChrisOctober 19, 2016 at 1:45 pm #1222705
JoaoModeratorHi Chris,
Please add the following code to Appereance > Customizer > CUstom > CSS
.x-subscribe-form input[type="email"] { background-color: rgba(255,255,255,0.8); }Hope that helps
Joao
October 19, 2016 at 3:55 pm #1222849
ChgrimParticipantThanks so much!!!
October 19, 2016 at 6:27 pm #1222998
FriechModeratorWe’re delighted to assist you with this.
Cheers!
October 20, 2016 at 1:13 pm #1224242
ChgrimParticipantHi,
So I updated the size of the slider and my inline settings broke for the email form.
You can see here
http://www.topdownreviews.com/mattress/ how the custom submit button no longer lines up with the field.
Here is the code I am using from before.
.x-subscribe-form fieldset { display: inline-block; vertical-align: top; } .x-subscribe-form input[type="submit"] { background: url('http://www.topdownreviews.com/wp-content/uploads/2016/10/Submit-button-white.png') center no-repeat; max-width: 5px; border: 0; color: transparent; margin-top: 0; } .x-subscribe-form input[type="email"] { background-color: rgba(255,255,255,0.9); font: rgba(0,0,0,1); margin-top: 0 !important; }Thanks
ChrisOctober 20, 2016 at 1:16 pm #1224247
ChgrimParticipantOne thing to note, The slider is 1920 so I had to make the text in the email form add on 36. It was so small when it was 14.
October 20, 2016 at 4:02 pm #1224468
JoaoModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.Thanks
Joao
October 20, 2016 at 6:16 pm #1224570
ChgrimParticipantThis reply has been marked as private.October 21, 2016 at 12:29 am #1224988
RadModeratorHi there,
Please provide the login credentials that has admin capability, or simply grant admin capability to your provided login credentials.
For the meantime, would you mind clarifying what’s the issue? The submit and field aligns on my view, and it disappears on mobile.
Thanks!
October 24, 2016 at 7:44 pm #1229056
ChgrimParticipantSorry about that! I made that same account an admin.
I have attached an image of what I am seeing. The height of the field and the submit button are misaligned.
Thanks so much!
ChrisOctober 25, 2016 at 2:36 am #1229435
ChristopherModeratorHi there,
Please update this code :
.x-subscribe-form input[type="submit"] { background: url(http://www.topdownreviews.com/wp-content/uploads/2016/10/Submit-button-white.png) center no-repeat; max-width: 5px; border: 0; color: transparent; margin-top: 0; }To :
.x-subscribe-form input[type="submit"] { background: url(http://www.topdownreviews.com/wp-content/uploads/2016/10/Submit-button-white.png) center no-repeat; max-width: 5px; border: 0; color: transparent; margin-top: 0; padding: 1px 28px 1px !important; }Hope it helps.
October 25, 2016 at 1:07 pm #1230231
ChgrimParticipantHi!,
So I was able to tweak the numbers so that it lines up. I guess my only concern is that when I shrink my window it becomes mis-aligned at the smaller sizes. Is there any way to fix this or is it something I will just have to live with.
Thanks so much for all your help so far. You guys rock.
Chris
October 25, 2016 at 2:23 pm #1230361
JoaoModeratorH Chris,
Please add the following code to Appereance > Customizer > Custom > CSS
input[type="submit"] { line-height: 0.95em; }Hope it helps
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1221301 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
