WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. EOBeav
    Member
    Posted 2 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.

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

  2. Pat Hawks
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 years ago #

    Works like a charm. Thanks for the help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic