Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #198475

    Hi,
    Im having a serious issue with responsiveness in the site im building. The Smartphone i have and i test it on is a Samsung Galaxy Ace running android 2.3.6
    The big problem is that the enfold demo looks great even my phone is not that modern. It resizes perfectly.
    But the site I’m building isn’t working nicely in on my phone. Its quite “responsive”, I mean everything appears in a single column, but that column is wider than the phone’s screen… And the fullscreen slider in the home of my site doesn’t even resize photos.
    I insist that even the fullscreen slider in the enfold demo looks good on my phone, but not the site im building.
    Just to let you know, I didnt make any change at all in css or php files, just quick css adjustments. I’m not using child theme.

    I dont know if I make my point. Its hard for me to explain whats going on in english.

    Hope we can work it out!
    I’ll send the url in a private message.

    #198476
    This reply has been marked as private.
    #198586

    Hi!

    I just did a quick test using dev tools with the same device specs and I’m not getting any issues with the responsive widths.

    Is this with the default browser? Does it have any network specific skins or settings on the device?

    Regards,
    Devin

    #198616

    Hi Devin,
    Im using the default browser, no network specific skins or settings on the device.
    I made a video just to show you how the enfold demo looks good and my site doesnt:
    (next post)

    #198617
    This reply has been marked as private.
    #198626

    Hey!

    I have just checked your website on my iphone and it looks fine. Please see screenshots below
    http://i.imgur.com/BtGgaMn.png
    http://i.imgur.com/8HuGNHa.png
    http://i.imgur.com/b1tROZu.png
    Have you tried checking your website on another mobile device?

    Regards,
    Yigit

    #198670

    Devin and Yigit,

    I tried my site on my sumsung galaxy ace, and on an S1 with the same bad results ;(
    Then I could try it on my brother’s nokia: the fullscreen slider resizes correctly but css stuff doesnt work.
    I had a chance to try on an iphone 3 and everything looks good.
    What I cant understand is why on my own phone the enfold demo works, but not my site.
    Weird!

    #198926

    Hi!

    Please edit header.php, find this code:

    <?php
    
    if( strpos($responsive, 'responsive') !== false ) echo '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">';
    
    ?>

    Below, add this code:

    <script type="text/javascript">
    (function() {
    	var meta = document.createElement("meta");
    	meta.setAttribute('name','viewport');
    	var content = 'initial-scale=';
    	content += 1 / window.devicePixelRatio;
    	content += ',user-scalable=no';
    	meta.setAttribute('content', content);
    	document.getElementsByTagName('head')[0].appendChild(meta);
    })();
    </script>

    I’m not sure if this is going to work but it’s worth a try. According to the author of the code it will equalize the CSS pixel density on mobile devices.

    Best regards,
    Ismael

    #199005

    HI Ismael,
    Just tryed and this message appeared at the very top of my site:

    <script type=”text/javascript”> (function() { var meta = document.createElement(“meta”); meta.setAttribute(‘name’,’viewport’); var content = ‘initial-scale=’; content += 1 / window.devicePixelRatio; content += ‘,user-scalable=no’; meta.setAttribute(‘content’, content); document.getElementsByTagName(‘head’)[0].appendChild(meta); })(); </script>

    Im not using a child theme, can that have to do?

    #199046

    Hey,
    I did what Ismael suggested, it didnt work and went back to delete the lines i added. Now my site is broken. All I get is:

    Parse error: syntax error, unexpected ”walker’ (T_ENCAPSED_AND_WHITESPACE), expecting ‘)’ in /www/pedro-basaldua.com.ar/htdocs/wp-content/themes/enfold/header.php on line 175

    Help please, I know almost nothing about php!

    #199053

    At this point I would suggest re-uploading the entire theme after re-downloading it from your downloads on ThemeForest. That will fix the error that is live now.

    What I meant by custom skins on your phone was the network you got the phone from. Different devices and networks have their own set of junk on top of the default android OS and if we can narrow it down to a specific network that may help.

    #199062

    Ok,
    how can i reupload the entire theme?
    Or at least the header.php

    #199084

    Forget it, problem solved, i uploaded header.php via ftp and the site is working again.
    The responsiveness problem in some devices is still there. At leat, hiding de fullscreen slider was a good choice even it didnt solved the issue.
    I cant help you with skins on my phone since i know nothing about it ;(

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘Serious responsiveness issue’ is closed to new replies.