- This topic has 5 replies, 3 voices, and was last updated 3 years, 11 months ago by
Tom.
-
AuthorPosts
-
April 13, 2019 at 11:01 am #868062
Leif
I have this (below) code to try to style the text inputs on this page but it doesnt apply itself…I have no idea what Im doing wrong π
Im trying to get rid of the little grey borders on the inputs and also be able to adjust the size of the input box…since they seem oddly big right now.
this is the code for my inputs
<p><!-- wp:paragraph --></p><p><code> [lgc_column grid="25" tablet_grid="50" mobile_grid="100"]EARLY ACCESS ARTICLE SUBSCRIPTION[/lgc_column] [lgc_column grid="25" tablet_grid="50" mobile_grid="100"] <input name="EMAIL" required="" type="email" placeholder="Email Address" />[/lgc_column] [lgc_column grid="25" tablet_grid="50" mobile_grid="100"]<input style="text-align: center;" name="FNAME" required="" type="text" placeholder="First Name" />[/lgc_column] [lgc_column grid="25" tablet_grid="50" mobile_grid="100" last="true"]<input type="submit" value="Subscribe" /> [/lgc_column] </code></p><p><br /><!-- /wp:paragraph --></p>
this is in my css on the simple css editor on this specific page
input[type=email], input[type=text]{ background: #222; border: none; color: #222; padding: 0px 0px; margin: 0px 0px; cursor: text; }
GeneratePress 2.2.2GP Premium 1.7.8April 13, 2019 at 1:34 pm #868141Leo
StaffCustomer SupportHi there,
I don’t see the CSS being added. Have you tried clearing the caching plugin?
Also have you tried just using the customizer options?
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/April 13, 2019 at 5:05 pm #868213Leif
OK so if I ‘customize’ I cant figure out how to edit these things. I’m just trying to kill the border and make the button line up with the text boxes. I dont care about the background color etc.
I know my simple css is loading because my ghost button at the bottom works but somehow its not effecting my inputs (see entire css below). I did however find something in ‘additional CSS’ when looking around customize (which I guess just comes with GP) which had css for those input types…so maybe it was overriding my css.
I edited that, successfully got rid of the borders but still I dont know how to make the submit button match the height of the text boxes.
Also if it matters I wanted to make these inputs into a mailchimp form…i figured once I could make the inputs how I like the mailchimp form would just work out…hopefully π
@media (min-width: 768px) { .inside-header { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; } .site-logo { margin-right: auto; } } .button.ghost, .button.ghost:visited { background: transparent; border: 2px solid #222; color: #222; border-radius: 3px; } .button.ghost:hover, .button.ghost:active { background: #222; color: #FFF; border: 2px solid transparent; border-radius: 3px; } input[type=email], input[type=text]{ background: #222; border: none; color: #222; padding: 0px 0px; margin: 0px 0px; cursor: text; }
April 14, 2019 at 6:56 am #868599Tom
Lead DeveloperLead DeveloperHi there,
In Customize > Additional CSS, find this:
button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.button:visited { padding: 16px 20px; margin-top: 0px; border-radius: 0px; transition: all 0.6s ease 0s; }
And replace it with this:
button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.button:visited { padding: 10px 15px; margin-top: 0px; border-radius: 0px; transition: all 0.6s ease 0s; font-size: 16px; }
Let me know if that helps or not π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentApril 15, 2019 at 6:15 pm #870005Leif
yay i messed around with those values a bit and everything is great now π
April 16, 2019 at 8:51 am #870693Tom
Lead DeveloperLead DeveloperAwesome π
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.