Browse for Google Drive documents and embed directly in your posts/pages. Extends Google Apps Login plugin so no extra user auth required.
Attribute options for [google-drive-embed ...] shortcode
Important: please note that you cannot normally switch the style attributes around while keeping the url the same. Most often, Google will require a different URL for the new link type, which can be obtained by opening the Drive Embedder dialog box again.
The url pointing to the Drive file or resource. Note that most Google Drive files will required a different URL depending on the style and other factors below.
Values: normal | download | embed
Values: yes | no
Only relevant when style='normal'
Dimensions of the iframe to be ebedded. Only relevant when style='embed'. Specified in pixels or as a percentage, e.g. '400' or '100%'.
Values: yes | no
When set to 'yes', will NOT display the icon specified in "icon" below. Only relevant when style='normal' or 'download'.
URL to an icon file to display next to the link. Only relevant when style='normal' or 'download'; and when plain not set to "yes".
Values: folder | image | calendar
Used by the premium plugin only for these special file types.
Text to display within the link to a 'normal' or 'download' file.
Add scrolling="yes" to turn on scrolling within an iframe embed - especially useful for forms which otherwise might be cut off at the bottom.
The default for iframe style embeds is to have allowfullscreen as a default attribute so the viewer can click into full screen mode if available for that file type.
Add allowfullscreen="no" as a shortcode parameter to turn this off.
You can use custom CSS styles to affect some of the final results.
Example html code for style='download' or 'normal':
<p><span class="gdm-drivefile-embed"><img src="$icon" width="16" height="16" /> <a href="$url">$title</a></span></p>
Example html code for style='download' or 'normal', when plain='yes':
Example html code for style='embed':
<iframe width='$width' height='$height' frameborder='0' scrolling='no' src='$url'></iframe>
Please get in touch if you would like to make suggestions for further CSS configurability - email firstname.lastname@example.org.
Requires: 3.5 or higher
Compatible up to: 4.5.1
Last Updated: 4 weeks ago
Active Installs: 6,000+
1 of 1 support threads in the last two months have been marked resolved.
Got something to say? Need help?