-
AuthorPosts
-
September 19, 2017 at 10:03 pm #854057
Ahoy,
I’m trying to figure out the best way to use connect my aweber email account with Enfold. I have a few threads open trying to figure out the best solution. I want my form to mirror the mailchimp form (see screenshot 1) I added my contact form 7 to a test page but things are not 100%. I’m hoping you can help. Here is what I want to do.
1. I want the bars to be side by side and than on mobile be like screenshot 2 but one mobile one top of one another like in ENFOLD
2. I would like the text inpurt areas and buttons the same size and the ENFOLD input areas and button layout.
3. The ENFOLD text inputs are slightly rounded , I would that to be styled for contact form 7Here is my contact form 7 code
[text* your-name placeholder"Name*"] [email* your-email placeholder"Email*"] [tel* tel-196 placeholder "Phone*"] [submit "Send"]
September 20, 2017 at 11:08 am #854298Hey mcraig77,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.wpcf7 p { width: 27%; display: inline-block; } .wpcf7 p:nth-child(5) { width: 15%; } .wpcf7 p input[type="submit"] { padding: 9px 22px; font-size: 16px; border-radius: 3px; } .wpcf7 input, #top .input-text, #top input[type="text"], #top input[type="input"], #top input[type="password"], #top input[type="email"], #top input[type="number"], #top input[type="url"], #top input[type="tel"], #top input[type="search"], #top textarea, #top select { border-radius: 3px; }
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 20, 2017 at 6:31 pm #854526Ahoy Victoria, those worked. I still have a couple of issues. On mobile I need the forms to look like this (Screenshot 1) and is there a way to make the input bars height higher like on the ENFOLD form? Screenshot 2 – it looks like it is about 49 pixel high. Contact form 7 is about 36 pixels high, same with the buttons
September 23, 2017 at 10:34 am #855757Hi,
Could you please first, wrap the code I gave you in the media query
@media only screen and (min-width: 768px) { .wpcf7 p { width: 27%; display: inline-block; } .wpcf7 p:nth-child(5) { width: 15%; } .wpcf7 p input[type="submit"] { padding: 9px 22px; font-size: 16px; border-radius: 3px; } .wpcf7 input, #top .input-text, #top input[type="text"], #top input[type="input"], #top input[type="password"], #top input[type="email"], #top input[type="number"], #top input[type="url"], #top input[type="tel"], #top input[type="search"], #top textarea, #top select { border-radius: 3px; } }
Ans then we do the rest.
Best regards,
VictoriaSeptember 23, 2017 at 6:35 pm #855849That seems to work. Now how do I make the height of the boxes and buttons larger and centered text? Also any way to make there a little more space between the columns like this?
September 24, 2017 at 7:06 pm #856196Hi mcraig77,
Cantered placeholder text is a “NO”, more room between columns, will be with the code below, but I would not do it either.
@media only screen and (min-width: 768px) { .wpcf7 p { width: 25%; display: inline-block; margin-right: 2%; } .wpcf7 p:nth-child(5) { width: 15%; } .wpcf7 p input[type="submit"] { padding: 9px 22px; font-size: 16px; border-radius: 3px; } .wpcf7 input, #top .input-text, #top input[type="text"], #top input[type="input"], #top input[type="password"], #top input[type="email"], #top input[type="number"], #top input[type="url"], #top input[type="tel"], #top input[type="search"], #top textarea, #top select { border-radius: 3px; } }
Best regards,
VictoriaSeptember 25, 2017 at 6:45 pm #856661sorry, i’m a tad confused. how to I make the input and button areas taller and have the text centered? like the screenshot – see how the input boxes are taller?
September 26, 2017 at 10:44 am #856861Hi mcraig77,
This code should not be applied to the desktop screen size, please correct the media query and then add my code.
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (min-width: 900px) { #top .wpcf7 form { padding-left: 8%; } }
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 26, 2017 at 7:14 pm #857097Hi Victoria, Not exactly what i’m trying to achieve. I want to make the intake forms and buttons taller to match the enfold styles. I used my CSS Style tool to show you want i’m trying to achieve. but when I put this code in the quick css it doesn’t apply See how there is more space now on the top and bottom? I also need the button to be taller.
Also once I press the button I get this outer glow on the button. Anyway to get ride of that?
input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required { padding-bottom: 12px; padding-top: 12px; }
See screenshots
September 27, 2017 at 12:33 pm #857469Hi,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.wpcf7 input, #top .input-text, #top input[type="text"], #top input[type="input"], #top input[type="password"], #top input[type="email"], #top input[type="number"], #top input[type="url"], #top input[type="tel"], #top input[type="search"], #top textarea, #top select, #top input[type="submit"] { border-radius: 3px; padding-bottom: 12px; padding-top: 12px; }
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 27, 2017 at 6:00 pm #857649I went ahead and added that to both but nothing seemed to happen. Please Advise
September 27, 2017 at 7:44 pm #857692Hi,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
VictoriaSeptember 27, 2017 at 9:38 pm #857709Admin Below. I added the code first to the quick css and seeing that didn’t work I added it to the theme folder.
September 28, 2017 at 11:39 am #857959Hi,
I out the styles to your quick css and they are working, I see you also have the same in custom.css, it’s weird they did not apply before. Could have been just a cache issue.
Best regards,
VictoriaSeptember 28, 2017 at 7:36 pm #858195Weird… Anyway to remove the outer glow from the button when I click? is it ok to remove the code from the theme files?
October 2, 2017 at 3:51 am #859042Hi,
Please the following css code to adjust the submit buttons’ hover style.
.main_color input[type='submit']:hover { background-color: red; color: blue; border-color: violet; }
Best regards,
IsmaelOctober 2, 2017 at 6:41 pm #859325Hi Ismael,
not quite. I don’t need the button styles changed. I need the outside glow removed when you press it down. Do you see that?
October 3, 2017 at 10:14 am #859556Hi,
I can’t see the “glow” on Chrome Windows 7. Where are you testing this?
Best regards,
IsmaelOctober 3, 2017 at 6:51 pm #859738I see this on chrome Mac OSX
please advise
October 4, 2017 at 8:42 am #860010Hi,
I’ll ask the rest of the support team to check it. Can you inspect the element in the browser? I checked the css properties but I don’t see anything that is closely related to the “glow” effect.
Best regards,
IsmaelOctober 4, 2017 at 8:51 am #860026Hi!
UPDATE: According to my team-mate, it’s the default browser behaviour of the input button on macOS. Unfortunately, we’re not sure how to remove it. Please try the following css code.
input[type='submit']:focus { outline: none; }
Best regards,
IsmaelOctober 9, 2017 at 7:23 pm #862050That seems to work! Thanks!!
October 10, 2017 at 7:19 am #862319Hi,
Great, glad it worked. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardApril 3, 2018 at 7:55 pm #936752Hello – my query is for styling with CSS on similar topic to above – using contact form 7.
So far I have added this Quick CSS as below and it mostly looks fine. I used a combination of your ideas above and some from this Tutorial video:- https://www.youtube.com/watch?v=bKarC0QO5og/* Submit Button CSS Styles */
.wpcf7 input[type=submit] {
padding:15px 45px;
background:#FCE228;
color:#232323;
font-size:16px;
font-weight:bold;
border:0 none;
cursor:pointer;
-webkit-border-radius: 3px;
border-radius: 3px;
}/* Submit Button CSS Hover Styles */
.main_color input[type=’submit’]:hover {
background-color: #232323;
color: #FCE228;
}/* Label Text Styles */
.wpcf7 label {
padding: 0 0 10px 0;
font-size: 20px;
color:#232323;
}I want to style further as follows:- Numbered to help your reference :).
1. Make the NAME and EMAIL input fields on same line when the browser width permits. This is how the old Enfold Contact form worked by default. Here’s a screen shot showing ENFOLD default above and CF7 below. I assume it will need to default to stacked on top of each other for mobile view as it does now.
2. My CSS above wasn’t able to add more padding below the label. I tried 20, 40 etc – but it looked just the same. Assuming 20px is the bottom padding?
3. How to add the styling to make the input boxes like my enfold screenshot – with borders coloured #232323 – and with the same rounding as enfold – assume 3px radius?
4. [EDIT- FOUND SOLUTION TO THIS NOW! ] How to add a thin coloured ( #232323) border to the Send button – as I had on the old Enfold contact form? There was also a border colour on the button Hover CSS above but I found it didn’t seem to do anything.
Hope you can help with the above. Much appreciated.
Pete
my website contact form page is here:-
- This reply was modified 6 years, 7 months ago by premedia.
April 4, 2018 at 8:12 am #937007Hi premedia,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
#top .main_color .input-text, #top .main_color input[type='text'], #top .main_color input[type='input'], #top .main_color input[type='password'], #top .main_color input[type='email'], #top .main_color input[type='number'], #top .main_color input[type='url'], #top .main_color input[type='tel'], #top .main_color input[type='search'], #top .main_color textarea, #top .main_color select { border-color: #232323; border-radius: 3px; margin-top: 10px; }
If you need further assistance please let us know.
Best regards,
VictoriaApril 4, 2018 at 5:06 pm #937313HI Victoria – thanks for getting back to me.
Your code above did a great job for the input boxes, border colours and fixed the problem I was having when adding padding above the box/below the label :).STILL OUTSTANDING:
One of the key things I was trying to do was my query number 1. – how to make the CF7 Name and Email input boxes sit alongside each other on a desktop screen (just like they do on my Enfold form screenshot ) and then stack on top of each other as they also do with Enfold contact form for mobile? My contact page is split 2/3 for the form on the left and 1/3 for the yellow block on the right (although the RH yellow block moves below the contact form on mobile view.Hope you can help
thanks
Pete
- This reply was modified 6 years, 7 months ago by premedia.
April 6, 2018 at 5:18 am #937994Hi Pete,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (min-width: 768px) { #top .wpcf7-form-control-wrap.your-name input[type=text] { width: 95%; } .wpcf7-form div + p, .wpcf7-form div + p + p { width: 50%; float: left; } .wpcf7-form div + p + p { clear: right; } }
If you need further assistance please let us know.
Best regards,
VictoriaApril 6, 2018 at 1:23 pm #938251Thanks so much Victoria! thats a really clever bit of CSS!
I’ve set it at 1368px – just wider than iPad pro screen horizontal.
It works fine apart from a couple of small things:-1. On the wide desktop version where the name and email are side by side – the space between that line and the SUBJECT line below seems to be wider than when the 2 fields are stacked on top of each other.
2. Also on desktop perhaps the gap/padding above the Name/Email line is wider making a large gap between that line on desktop view and the bulleted text above. Ideally I would like the gaps above/below field to be consistent between desktop and mobile.
3. The CSS you provided to create black field borders is being carried into the Enfold Search field. Is there a way I can restrict this border styling to the CF7 form?
Here’s the full quick CSS i have for this contact page at the moment including your latest fixes.
/* CF7 Submit Button CSS Styles */
.wpcf7 input[type=submit] {
padding:15px 45px;
background:#FCE228;
color:#232323;
font-size:16px;
font-weight:bold;
border:1px solid #232323;
cursor:pointer;
-webkit-border-radius: 3px;
border-radius: 3px;
}/* CF7 Submit Button CSS Hover Styles */
.wpcf7 input[type=submit]:hover {
background-color: #232323;
color: #FCE228;
border:1px solid #232323;
}/* CF7 Label Text Styles */
.wpcf7 label {
padding: 0 0 10px 0;
font-size: 20px;
color:#232323;
}/* CF7 File Upload Button CSS Styles */
.wpcf7 input[type=file] {
padding:0px 0px;
background:none;
color:#000;
font-size:14px;
border:none;
-webkit-border-radius: 3px;
border-radius: 3px;
}/* CF7 Input Field Heights */
.wpcf7 input[type=text] {height:40px;}
.wpcf7 input[type=email] {height:40px;}/* CF7 Input Field border and radius */
#top .main_color .input-text,
#top .main_color input[type=’text’],
#top .main_color input[type=’input’],
#top .main_color input[type=’password’],
#top .main_color input[type=’email’],
#top .main_color input[type=’number’],
#top .main_color input[type=’url’], #top .main_color input[type=’tel’],
#top .main_color input[type=’search’], #top .main_color textarea, #top .main_color select {
border-color: #232323;
border-radius: 3px;
margin-top: 5px;
}/* CF7 name and email Fields alongside but not on mobile */
@media only screen and (min-width: 1368px) {
#top .wpcf7-form-control-wrap.your-name input[type=text] {
width: 95%;}
.wpcf7-form div + p, .wpcf7-form div + p + p {
width: 50%;
float: left;}
.wpcf7-form div + p + p {
clear: right;
}}
————-
I also have some styling on the ENFOLD search button etc from some previous work as below:-/* ENFOLD Search Button and Hover CSS Styles */
#searchsubmit {
background-color:#fce228!important;
}
#searchsubmit {
color:#232323!important;
}
#searchsubmit:hover{
background-color:#232323!important;
}
#searchsubmit:hover {
color:#fce228!important;
}Thanks for your help :)
Pete
April 8, 2018 at 3:37 pm #938795Hi,
If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.
Thanks!
Best regards,
Ismael -
AuthorPosts
- The topic ‘Contact Form 7 with Enfold Styles’ is closed to new replies.