Announcement

Collapse
No announcement yet.

Mobile Content Screen Size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mobile Content Screen Size

    I currently have this code to switch to mobile.

    <mvt:if expr="g.mobile EQ 'TRUE'">
    <mvt:item name="mobile_content" />
    <mvt:else>

    The problem is, it only switches to mobile content at mobile phone size. How can I make the mobile content show up for both phone and tablet?
    www.jcroffroad.com

    #2
    I have the same question. On this page http://docs.miva.com/docs/client-dimensions this item can be added. Is there any way to add to all pages, instead of one by one? I need to define screen sizes, ie: if 640 do this, if 800 do that, if 1200 do another this. Is this possible without the client-dimensions code? or is that exactly the code needed?
    Suzanne

    __________________________________________________ _______

    aGenius Marketing
    800-768-2693
    Web Design & e-Commerce
    __________________________________________________ _______

    Comment


      #3
      monkeyevil - That code is for a mobile implementation of your site using an old user-agent sniffing method to set the mobile variable. In order to have that content show for tablets as well, you will need to add a variety of user agent strings to the existing check. This can be very problematic as tablet user agents are difficult to discern. A better approach would be to look into redesigning your site to be responsive. You could start by looking at our existing ReadyThemes for guidance.

      agenius - If you have added the item and assigned it to the pages you need, you should be able to create the IF statements you are looking for.
      Matt Zimmermann

      Miva Web Developer
      Alchemy Web Development
      https://www.alchemywebdev.com
      Site Development - Maintenance - Consultation

      Miva Certified Developer
      Miva Professional Developer

      https://www.dev4web.net | Twitter

      Comment

      Working...
      X