• If you want the IFRAME work with adaptive sites, you need to change this part of the file simple-google-docs-viewer.php, located in “wp-content\plugins\simple-google-docs-viewer”:

    FIND THIS LINE:

    $embed_format = '<iframe src="http://docs.google.com/viewer?url=%1$s&embedded=true&hl=%2$s" width="%3$d" height="%4$d" style="border: none;"></iframe>';

    CHANGE THE WIDTH VALUE TO THIS:

    $embed_format = '<iframe src="http://docs.google.com/viewer?url=%1$s&embedded=true&hl=%2$s" width="100%%" height="%4$d" style="border: none;"></iframe>';

    (Yes you need to put twice(%%) the second is the escape for the first.)

    Have fun!

    https://wordpress.org/plugins/simple-google-docs-viewer/

The topic ‘[SOLUTION] Make the plugin adaptive(Multiple Screen Sizes)’ is closed to new replies.