Tagged: button, full width, mobile
Hey guys,
I recently added a full width button to my website. It shows up perfectly on my computer, but it is no where to be found on my iPhone 6 browser.
LoveRescues.org
Hi!
Can you post a screenshot of your view? here’s how it looks on my end – http://screencast.com/t/ptHX1FzsP
Regards,
Josue
Here is what it looks like on my phone:
http://loverescues.org/wp-content/uploads/2015/01/no_button.png
Also, my screen is not fixed. I can scroll to the right and see my menu. It’s not supposed to be like this:
http://loverescues.org/wp-content/uploads/2015/01/Mobile_Site.png
Okay, I cleared the cache on my phone and then I could see the button… But my other problem still remains.
Can you tell me how to make the mobile site fixed on my screen?
Hey!
Try adding this at the very end of your theme / child theme functions.php file:
@media only screen and (max-width: 480px) {
html.responsive, .responsive body{ overflow: hidden !important; }
}
Cheers!
Josue
Please help fast! I put the code that you suggested in my functions.php and now my website is down! I can’t even login to WP!
Here is the error:
Parse error: syntax error, unexpected ‘only’ (T_STRING) in /homepages/4/d283556926/htdocs/LoveRescues/wp-content/themes/enfold/functions.php on line 533
Hi!
Sorry, the code was meant to be added to Quick CSS (not functions.php), you’d need to revert it via FTP, i can do it for you if you provide me a temporary account.
If it doesn’t work try with this code in Quick CSS:
@media only screen and (max-width: 767px){
.responsive.html_header_sidebar #top {
position: relative;
}
}
Cheers!
Josue
Neither options worked. The mobile site is still scrolling to the right.
Hi!
This will do it:
@media only screen and (max-width: 767px){
.responsive #top {
position: relative;
}
}
Best regards,
Josue
It worked. Thanks!
You are welcome, glad to help :)
Regards,
Josue