Embed PDF
[resolved] How to code style in embed pdf plugin (3 posts)

  1. EOBeav
    Posted 4 years ago #

    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.


  2. Pat Hawks
    Plugin Author

    Posted 4 years ago #

    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]

  3. EOBeav
    Posted 4 years ago #

    Works like a charm. Thanks for the help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Embed PDF
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic