WordPress.org

Ready to get started?Download WordPress

Forums

query_posts not reducing image size on mobile site (1 post)

  1. meesha
    Member
    Posted 1 year ago #

    Hi,

    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.

    You can see the main site page at http://casagirasol.com/cms/the-inn/ and the same page on the mobile site at http://m.casagirasol.com/m-inn.php.

    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.

    meesha

Topic Closed

This topic has been closed to new replies.

About this Topic