- This topic has 49 replies, 3 voices, and was last updated 4 years, 10 months ago by Tom.
-
AuthorPosts
-
April 27, 2019 at 3:41 pm #881772TomLead DeveloperLead Developer
Your first screenshot looks almost identical to what David provided with his CSS above, doesn’t it? I’d have to see it again.
Any examples of what you want it to look like on desktop?
April 28, 2019 at 12:16 pm #882496LeifOh yeah the examples of the desktop setup are easy. My current home page is fine for desktop
but it was made with ‘sections’ which lets me control padding and color. Thats how I ended up going down this path in the first place. Its like a banner at the top of my pages.
For mobile I made this very impressive graphic π
April 28, 2019 at 3:15 pm #882581DavidStaffCustomer SupportHi there,
update your CSS to:
.signup-wrap, #mc_embed_signup_scroll { display: flex; } .signup-headline { margin-right: auto; } @media (max-width: 768px) { #mc_embed_signup { flex: 1; margin-left: 3em; } #mc_embed_signup_scroll { flex-direction: column; } #mc-embedded-subscribe { width: 100%; } #mce-FNAME, #mc_embed_signup_scroll .clear { margin-top: 0.5em; } .signup-wrap { flex-direction: column; } .signup-headline { margin: 0 auto 20px auto; } #mc_embed_signup { margin-left: 0; } #mc_embed_signup_scroll .clear { margin-right: auto !important; } #mce-FNAME { position: relative; } .signup-wrap p { margin-bottom: 0; } } #mc_embed_signup { flex-grow: 1; } #mce-EMAIL, #mce-FNAME { margin-right: auto; margin-left: auto; } #mc_embed_signup_scroll .clear { margin-left: auto; margin-right: 0; }
To place the signup heading on one line would require a change to the HTML. Where the is no line break.
April 29, 2019 at 4:50 am #883001LeifHmmm now things are collapsed on top of eachother? (See image)
Also how do I make the space behind this form green like so?
April 29, 2019 at 6:11 am #883085DavidStaffCustomer SupportI edited the CSS above to fix the overlap.
As the form is inserted into a Section you can change the Section background color in its settings.May 15, 2019 at 4:33 am #899960LeifHi so a few things:
I need to hook this into my pages so I cant use the section block features to make the background green.Also the padding at the bottom of the page is still huge in mobile and i cant figure out how to put a rule between the inputs. See images.
Desktop looks nice
Mobile has huge margins and no rule
May 15, 2019 at 5:31 am #900038DavidStaffCustomer SupportI have edited the CSS here to remove some of the bottom margins from the form and to place some space between the second field and submit.
If thats correct then we can look at the markup required to use it in a hook and place the background color.
May 16, 2019 at 5:22 am #901358LeifI cant tell if there is a rule between the two inputs in mobile mode. I dont see one but maybe its because my background is white?
I’m ok to try to hook this and change the color behind this section.
May 16, 2019 at 6:06 am #901392DavidStaffCustomer SupportThe spacing is there, as you said you can’t see it because of the colors.
Let us know when you have it in a hook as we may need to tweak things depending on where it is hooked.May 17, 2019 at 5:13 am #902459LeifOK its in
One thing is I want to get a green background behind the content like on my home page spanning the full width.
Also I dont know where to put the css so that it travels with the hook. I guess I just put it in my style.css?Also we were back and forth on the padding a lot. If you just point at the css spots that control that I am happy to play with it myself instead of bugging you so much *embarrassed face*
Oh and i left the old form up on the test page so that I have some content and also a comparison point to where we were before.
May 17, 2019 at 5:40 am #902499DavidStaffCustomer SupportSo couple of things. Lets move it outside of the Content Hook so it can occupy the whole width of the screen. Change the hook to:
inside_container
hook.Then we need to tweak your HTML.
First add the extra DIVsignup-container
around your existing HTML, and add thegrid-container
class to the sign-up wrap like so:<div class="signup-container"> <div class="signup-wrap grid-container"> <!-- all other HTML remains the same --> </div> </div>
Let me know once thats done.
Yes all CSS goes in either your child theme style.css or the Additional CSS in the Customizer.June 5, 2019 at 5:20 pm #921119Leifok i added it in. Sorry i got distracted so it took a while
did you mean to use a hook other than inside container? It was already inside container.
Also I wrote in <div class="signup-wrap gird-container”> instead of gird which I assume was a typoJune 6, 2019 at 2:13 am #921323DavidStaffCustomer Supportoops – yeah typo π
Can you move it to the after_header hook .
June 7, 2019 at 4:55 am #922495Leifok did it.
Everything looks kind of crazy but its done π
https://fiveyearfireescape.com/test-page/June 7, 2019 at 5:16 am #922516DavidStaffCustomer SupportYou can then style the outer container like so:
.signup-container { padding: 20px 0; background-color: green; }
-
AuthorPosts
- You must be logged in to reply to this topic.