-
AuthorPosts
-
September 20, 2018 at 2:38 am #1012093
I have a sales page that I’ve gotten some help here with customizing.
It seems the page title appears OK on most browsers but when I view it on my mobile phone (iPhone 6+) the title bumps up against the header image slightly.
There is so much CSS for my site, I’m not clear on which code I can change to adjust this. It looks OK in all other types of mobile devices that I can tell.
I’ll post a screenshot of what I’m referring to along with site info.
I would love some help in moving the title down just a bit.
Thanks!September 20, 2018 at 3:54 am #1012113Hey Moondreamer21,
I took a look at your page and css and found that you had a duplicate rule with a different value, so I took the one out that seemed to be causing the issue.@media only screen and (max-width: 767px) { /*css styling for dashed line below page titles on mobile*/ #top #wrap_all h3.av-special-heading-tag { margin-top:-20px!important; padding-bottom:5px!important; } }
I don’t have a iPhone, so please clear your browser cache and check.
Best regards,
MikeSeptember 20, 2018 at 1:58 pm #1012305Mike – you’re a genius! I always appreciate your wonderful help, the page looks perfect.
Thanks so much! :)September 20, 2018 at 2:50 pm #1012339Hi,
Yes, Mike is a genius! :-)
Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
RikardSeptember 22, 2018 at 1:15 am #1012959Hi Guys,
I hired a freelancer and got some help with adding opt-in code to the header image of the page I mentioned above.
The opt-in is absolute, but adding it has somehow messed up the spacing of the title – it’s a little different depending on mobile or desktop (I use http://www.responsivedesignchecker.com to check it on all sizes), but there is either too much space above or below the opt-in fields, or both.
With your guys’ help here, we did quite a bit of customizing to this ‘Secrets’ sales page (see ‘secrets’ css), and all the new css for this optin has been added to the bottom under General Styling.
This seems to be a theme related issue, can I get your help again tweaking the spacing of the title/opt-in, so there isn’t all the extra white space above or below the opt-in on all browsers?
Thanks!September 22, 2018 at 11:25 pm #1013164Hi,
I took a look at your page and can say that the space was just a matter of removing the top padding, I added:#top.page-id-983 #after_full_slider_1 .template-page.content {padding-top: 0px !important;}
I also found that your new optin form has a bottom margin, so I added:
#top.page-id-983 #optin {margin-bottom: 0px !important;}
To correct your page for tablets (768px) I added this css:
@media only screen and (min-width: 766px) and (max-width: 770px) { #top.page-id-983 #full_slider_1 { max-height: 300px !important; } #top.page-id-983 #optin { top: -45px !important; } #top input[type="text"],#top input[type="email"] {padding: 2px !important; margin-bottom: 0px !important;} .main_color input[type='submit'] {height: 24px !important; padding: 2px !important;} }
Please check.
For the mobile sizes the special heading was giving a top margin, which I corrected with this css:@media only screen and (max-width: 430px) { #top.page-id-983 .av-special-heading-h3 { margin-top: 0px !important; } }
Now option form needs to be adjusted with css to fit inside the background image arrow, is this something your freelancer is going to be doing?
Best regards,
MikeSeptember 24, 2018 at 6:25 pm #1013738Hi Mike,
Thank you so much for making those modifications – it looks great! Other than, of course the form fields not fitting in the header image on mobile as you noticed (which could be really confusing).
Is there anything you can do to adjust that so it will fit in the maroon strip like it does for desktop?
I appreciate your help so much!
Thanks again. :)September 25, 2018 at 6:27 am #1014004Hi,
For the mobile widths 375px (small mobile) & 425px (large mobile) I added this css:@media only screen and (min-width: 381px) and (max-width: 430px) { #top.page-id-983 #optin { top: -30px !important; left: 4px !important; width: 80% !important; padding: 0px !important; background: transparent !important; position: absolute !important; } #top.page-id-983 input[type="text"],#top.page-id-983 input[type="email"] { height: 12px !important; padding: 1px !important; font-size: 8px !important; margin-bottom: 0px !important; display: inline-block !important; } #top.page-id-983 input[type='submit'] { height: 12px !important; padding: 1px !important; display: inline-block !important; font-size: 8px !important; margin: 0px !important; } #top.page-id-983 div#name { width: 12% !important; } #top.page-id-983 div#email { width: 12% !important; } #top.page-id-983 div#number { width: 25% !important; } #top.page-id-983 div#submitbutton { width: 10% !important; } #top.page-id-983 #wrap_all h3.av-special-heading-tag { margin-top: 10px !important; } } @media only screen and (max-width: 380px) { #top.page-id-983 #optin { top: -45px !important; left: 4px !important; width: 80% !important; padding: 0px !important; background: transparent !important; position: absolute !important; } #top.page-id-983 input[type="text"],#top.page-id-983 input[type="email"] { height: 12px !important; padding: 1px !important; font-size: 8px !important; margin-bottom: 0px !important; display: inline-block !important; } #top.page-id-983 input[type='submit'] { height: 12px !important; padding: 1px !important; display: inline-block !important; font-size: 8px !important; margin: 0px !important; } #top.page-id-983 div#name { width: 12% !important; } #top.page-id-983 div#email { width: 12% !important; } #top.page-id-983 div#number { width: 25% !important; } #top.page-id-983 div#submitbutton { width: 10% !important; } #top.page-id-983 #wrap_all h3.av-special-heading-tag { margin-top: 10px !important; } }
Please clear your browser cache and check.
Please see the screenshot in Private Content area.Best regards,
MikeSeptember 25, 2018 at 6:17 pm #1014352Thanks so much, Mike! I can’t say enough how much I appreciate your help!
When I check the page in the Responsive Design Checker (www.responsivedesignchecker.com), there are some misalignments in a few of the mobile versions – would you mind taking a look to see if there are any adjustments that can be made?
Also, I noticed that the copyright, disclaimer and privacy policy link isn’t showing up in the socket/footer area on mobile for this page anymore – do you know what could have caused that?
THANK YOU AGAIN! :)
September 26, 2018 at 4:37 am #1014519Hi,
To fix the “footer” in the code block on that page I enabled the element options for developers, Enfold Theme Options > Layout Builder > Show element options for developers, and added the class “tips-footer” to the code block, and then added this Quick CSS:@media only screen and (max-width: 767px) { .tips-footer { margin-top:100px !important; } .tips-footer span { font-size: 8px !important; } }
I also adjusted the code above, Please clear your browser cache and check.
Best regards,
MikeSeptember 26, 2018 at 10:23 pm #1015006Thanks Mike, it looks perfect! :)
September 27, 2018 at 2:53 am #1015064Hi,
Glad we could help, unless there is anything else we can help with on this issue, shall we close this then?Best regards,
MikeSeptember 27, 2018 at 5:53 pm #1015408Hi Mike,
I’d like to keep it open for a bit just to make sure everything is OK and I don’t have any more questions on this topic.
Thanks again for your help!September 28, 2018 at 2:26 am #1015563October 2, 2018 at 6:43 pm #1017174Hi again Mike,
I’ve just created a new sales page for an upcoming Holiday sale and I’m running into issues with the spacing above the title there as well.
There’s too much space above it on desktop, and WAY too much on mobile – probably because of all the customized CSS we did for the other sales page that is set up similarly?
The good news is that this one won’t have a form in the header image.
Would you mind taking a look and seeing what can be done to fix the spacing?
I’ll post site info. below.
Thanks!October 3, 2018 at 2:01 pm #1017530Hi,
I took a look at your new page and added this Quick CSS:/*xmas page*/ @media only screen and (max-width: 300px) { #top.page-id-15492 #full_slider_1 { height: 120px !important; } } @media only screen and (min-width: 301px) and (max-width: 380px) { #top.page-id-15492 #full_slider_1 { height: 140px !important; } } @media only screen and (min-width: 380px) and (max-width: 430px) { #top.page-id-15492 #full_slider_1 { height: 160px !important; } } @media only screen and (min-width: 431px) and (max-width: 610px) { #top.page-id-15492 #full_slider_1 { height: 210px !important; } } @media only screen and (min-width: 611px) and (max-width: 770px) { #top.page-id-15492 #full_slider_1 { height: 270px !important; } } @media only screen and (min-width: 771px) and (max-width: 910px) { #top.page-id-15492 #full_slider_1 { height: 310px !important; } } /*end xmas page*/
Please clear your browser cache and check, please feel free to make any adjustments as needed.
Best regards,
MikeOctober 3, 2018 at 7:45 pm #1017589You’re the best Mike, it looks great! THANK YOU! :D
October 4, 2018 at 12:11 am #1017635Hi,
Glad to help :)
Unless there is anything else we can assist with on this issue, shall we close this then?Best regards,
MikeOctober 4, 2018 at 5:27 pm #1017973I think it’s safe to close this thread now, Mike. Thanks again for all your wonderful, expert help!
October 5, 2018 at 12:01 am #1018045Hi,
I’m glad you were able to get this resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Spacing above Title on Sales Page on Mobile?’ is closed to new replies.