I’m building a custom mobile website as a companion for the existing WordPress site.
I have both versions on the same domain so each has access to the MySQL database.
I’m using jQuery Mobile framework on the mobile version and rather than making the client edit two pages each time (main and mobile) I’m using “query_posts(‘post_type=page&pagename=the-inn’);” to generate duplicate content on the mobile site.
Works great except any images on the main site that are wider than the mobile screen, in portrait view, don’t reduce in size like everything else and blow out the side of the screen.
Other than changing the image sizes to percentages, I’m not sure what I’m missing to get the images to reduce like the rest of the page.
Thanks for any help.
- The topic ‘query_posts not reducing image size on mobile site’ is closed to new replies.