最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

Google doc embedder a plugin for wordpress 语法

Uncategorized William 2216浏览 0评论

Usage

Once the plug-in is successfully installed and activated in WordPress (this is straightforward – see the installation instructions if needed), you can embed your document into either a page or a post using this basic syntax:

[ gview file="http://full-path.to/file.pdf" ]

! Note: Please remove extra spacing around brackets – this is for display purposes only.

The shortcode uses the following attributes. For information about setting defaults (so you don’t have to use most of these shortcode options), see the Settings page.

file= (required) The fully qualified URL pointing to the file you wish to embed.
width= (optional) Enter a number (in px) or a percent value to override the default width of the embedded document.
height= (optional) Enter a number (in px) or a percent value to override the default height of the embedded document.
save= (optional) Enter a value (1 to show, 0 to hide) to override the default display setting for the download link.
lang= (optional) Enter a supported language’s ISO 639-1 Language Code to override the global Default Language setting. See Viewer Options for more information.
force= (optional) Add force=1 to override plug-in’s default error checking, passing all file issues on to the viewer. Recommended for troubleshooting purposes only.

CSS Styling

If you wish to use CSS to style the plug-in’s output, each element has its own class name you can add to your theme’s stylesheet:

.gde-frame – the embedded viewer itself
.gde-text – the download text
.gde-link – the download link

转载请注明:ww12345678 的部落格 | AX Helper » Google doc embedder a plugin for wordpress 语法

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址