• Resolved Blacklionwebsites

    (@blacklionwebsites)


    My website is at spiralwellness.blacklionwebsites.com. I am using a child theme.

    This website looks great on the desktop version, but on mobile the content is pushed over the left, leaving a lot of space on the right side. Also, it isn’t really responsive anymore, it seems like. Very small font size. Not sure what to do. Please help!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Blacklionwebsites
    I just checked your site and it looks OK on iPhone/iPad sizes. No weird behavior.
    Have you cleared all cache on mobile, can be some cache bad behavior on your mobile.
    Test your site on the desktop on Chrome by installing view port resizer extension. You can test all sizes in Chrome.

    Hope this will help
    Happy to help you further
    Cheers
    Tahoerock

    Thread Starter Blacklionwebsites

    (@blacklionwebsites)

    Thanks Tahoe Rock…I appreciate your help. I downloaded that plugin and you’re right, it does show fine when testing using that plugin. What’s weird is that when I look on my phone (iphone 5, ios 8.3) everything is still pushed over to the left, even after clearing safari memory and data and rebooting my phone. Any other ideas??

    Try different explorer, for testing.
    like Chrome
    Sometime cache is so stubborn ??
    TR

    Thread Starter Blacklionwebsites

    (@blacklionwebsites)

    I downloaded Chrome on my phone and still having the same problem. Hmmmm.

    Have you tried your friends iPhone or iPad?
    I tried it on my iPhone 5s and you are right
    Whole website is moved to the left and 2/3 of the screen is some strange green grid
    When I tap two times on the screen, website will fill the screen.

    Looks like that @media for smaller screens is written bad way

    Sample:
    @media not|only mediatype and (media feature) {
        CSS-Code;
    }

    Here is site about it.

    resolution-specific-stylesheets

    responsivegridsystem

    It is hard to say, what is making site to behave like this.
    Sorry to say

    I have asked friend of mine, who is very good, so keep tight. Hope he will help me.
    TR

    I noticed in firebug that styles and twenty-twelve-styles plugins were creating few issues. Have you looked at them ?

    As mentioned by Tahoe Rock above, I think having left padding 0, actually increases your viewable area of the site on mobile devices (specially on iPhone 4 device I saw a huge improvement ) The following is what I have on my style.css of child theme.

    body .site {
    	padding: 0;
    	margin-top: 0;
    	margin-bottom: 0;
    	box-shadow: none;
    }

    Blacklionwebsites, In above code, If you change the padding, does it still move to left ?

    @blacklionwebsites, you have two elements which are keeping your page from responding properly to mobile screen widths. You can see the first if you make your desktop browser window the same width as a cell phone and scroll down to the bottom. You’ll see that the phone number and the “Website by…” line are way off to the right. That’s because the positions of those elements are set using the left property:

    <span style="position:relative; left:375px;">720.334.7124</span>
    <span style="position:relative; left:625px;">Website by <a href="" target="_blank">Black Lion Websites</a></span>

    The left properties keep the web page from shrinking down when the viewport is narrowed.

    First, you want to avoid using inline styles, because it makes it very difficult to modify using CSS. Second, you should probably change those elements to <div> instead of <span> and float them to the right by assigning a class or ID to them. That way they will respond properly to changes in viewport widths. Change the spans to these divs:

    <div id="footer-phone">720.334.7124</div>
    <div id="footer-by">Website by <a href="" target="_blank">Black Lion Websites</a></div>

    Then, in your child theme’s style.css, add this rule:

    #footer-phone,
    #footer-by {
       display: inline-block;
       float: right;
    }

    Those elements should now respond properly as you adjust the width of your browser window.

    As a final note, you don’t need to copy the entire contents of the parent theme’s style.css into your child theme’s style.css file. The parent theme’s style.css file is already being included, so by making an additional copy in your child theme, you are having the browser load it twice, which increases load time. You only need to include the CSS which you are changing, and any new CSS.

    Thread Starter Blacklionwebsites

    (@blacklionwebsites)

    CrouchingBruin: That was it!!!! Thanks so much for taking the time to look at this issue. Your solution was spot on. I do understand the issue with the full stylesheet, but I don’t know where my changes were made previously so I’m just going to stick with that stylesheet for now, and use your advice moving forward with other projects.

    Thanks again!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Content pushed to the left on mobile version’ is closed to new replies.