WordPress.org

Support

Support » Plugins and Hacks » Embed PDF » [Resolved] [Plugin: Embed PDF] How to code style in embed pdf plugin

[Resolved] [Plugin: Embed PDF] How to code style in embed pdf plugin

  • I’ve downloaded and have successfully executed the embed pdf plugin. What is the proper code to use in order to style the width? I tried a simple css command but that didn’t work. Example:

    [embed style="width:500px;]path-to-file.pdf[/embed]

    It renders the pdf file on the page, but at the default width, not the width I want. If you could help me understand how to set this style, I would greatly appreciate it. Thanks in advance for your feedback.

    http://wordpress.org/extend/plugins/dirtysuds-embed-pdf/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pat Hawks

    @pathawks

    Sorry this isn’t documented better.

    To override the default set by WordPress, include a width attribute.

    [embed width="500"]http://example.com/path-to-file.pdf[/embed]

    Works like a charm. Thanks for the help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Embed PDF] How to code style in embed pdf plugin’ is closed to new replies.
Skip to toolbar