• Resolved proguid

    (@procarmanuals)


    When I paste a pdf file through Gutenberg, I get a
    visible part:
    width 600px
    height 450px

    How to change width to 100% and height to 600px?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Ashikur Rahman

    (@ashikurwp)

    Hi proguid,

    Greetings. Sorry for any inconvenience.

    If you’re using the Gutenberg editor, we have a block for EmbedPress PDF. Please check the demonstration here: https://d.pr/v/wXPfUD on how to set 100% width from the Gutenberg Editor.

    Alternatively, you can utilize the shortcode below:

    [embedpress width="1200" height="600"] Your PDF link [/embedpress]
    Note: Adjust the width and height according to your own preferences.

    Please check and let us know how it goes.
    Thank you.

    Thread Starter proguid

    (@procarmanuals)

    [embedpress width="1200" height="600"] Your PDF link [/embedpress]

    I can’t set the width to 100%, only px?

    Can I implement this by replacing a function that I can put in my theme’s functions.php?

    Plugin Support Ashikur Rahman

    (@ashikurwp)

    Hi?proguid,

    For shortcode, 100% width is currently unavailable. However, you can utilize the custom CSS below:

    .embedpress-document-embed {
    width: 100%!important;
    }
    .embedpress-document-embed iframe{
    width: 100%!important;
    }

    You can simply add custom CSS by navigating to your WordPress?Dashboard -> Appearance -> Customize.
    After you are on the Customizer page, search for the “Additional CSS” option. You can then go ahead and insert CSS Code. Please check this screencast to learn more – https://d.pr/v/QrrfTw

    Hope it might help you.
    Thank you.

    Thread Starter proguid

    (@procarmanuals)

    https://procarowners.com/uncategorised/hello-world/

    The code doesn’t work, above is the test page.
    If I specify manually, everything works as it should.

    Thread Starter proguid

    (@procarmanuals)

    It would be nice to implement in the plugin support for overriding the size, position of elements.

    Plugin Support Ashikur Rahman

    (@ashikurwp)

    Hi?proguid,
    Greetings. Sorry for not getting back to you sooner.

    Could you please try this below shortcode and the above CSS again?
    [embedpress_pdf] PDF URL [/embedpress_pdf]

    We’ve rechecked that on my end, and it appears to be functioning perfectly. Please check that out here.

    Note: We’ve attempted to access your page but were unable to locate the issue.

    Thank you.

    Thread Starter proguid

    (@procarmanuals)

    https://procarowners.com/uncategorised/hello-world/

    Your plugin has been turned off. Now it is enabled and the page is available for checking.
    I’ve inserted different variants. It seems to be always 100% width via shortcode. With Gutenberg editor there is no change.

    Plugin Support Ashikur Rahman

    (@ashikurwp)

    Hi proguid,

    Greetings. Thanks for letting us know.

    Since you’re using the Gutenberg editor, I recommend you to utilize the EmbedPress PDF block instead of shortcode, which has the option of 100% width. You can check the demonstration here: https://d.pr/v/wXPfUD.

    However, we will also try to improve the shortcode functionality as well.
    Thank you.

    Thread Starter proguid

    (@procarmanuals)

    Yeah, that’s what I did.
    The question is to insert through EmbedPress PDF and the parameters were inserted:
    width 100%
    height 600px.
    Such parameters are usually default on all similar plugins.

    Plugin Support Ashikur Rahman

    (@ashikurwp)

    Hi proguid,

    Thanks for letting us know that.

    I will forward your query to the Development team for further improvements and will update you if there are any changes.

    Best regards

    Thread Starter proguid

    (@procarmanuals)

    Do not change the status of the ticket as the problem has not been resolved.

    Thread Starter proguid

    (@procarmanuals)

    Fixed in the latest update.
    Width at insertion is now 100%.
    Great!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘resize pdf insertion (Gutenberg)’ is closed to new replies.