• Resolved benizioni

    (@benizioni)


    Hi,

    I cannot get the Paypal buttons to fit the width of the page.

    There appears to be a “max-width” set in the Paypal buttons CSS….

    .paypal-button-container?{
    min-width: 500px;
    max-width: 750px;
    }

    …and I can’t seem to override this with any further CSS on the website itself.

    Is there a way to achieve this?

    Thanks,

    Craig.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Syde Niklas

    (@niklasinpsyde)

    Hi @benizioni

    PayPal limits the button width on the SDK level to 750px maximum, and adjustments with regular CSS on the site level won’t apply directly to the button iframe.
    It should be possible to center the buttons with some CSS, though.

    However, the override to increase the max-width mentioned in the PayPal docs linked above would need to be applied earlier. We have plans to investigate possible options in this regard. Still, we must ask for your understanding that it is not a highly prioritized item since PayPal officially advises sticking with the default maximum present buyers with a uniform payment experience across all platforms.

    Kind regards,
    Niklas

    Thread Starter benizioni

    (@benizioni)

    Thanks for your reply.

    The documentation in the link you provided suggested this…

    <div id="paypal-button-container" style="max-width:1000px;"></div> <script> paypal.Buttons({ style: { disableMaxWidth: true }, }).render('#paypal-button-container'); </script>
    
    

    Do you know where I would add this in relation to your plug in?

    Thanks,

    Craig.

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @benizioni

    No, plugin modifications like this go beyond the scope of the assistance we can provide in the support and require investigation by the development team, which can take some time. So we must ask for some patience, but we will try to notify you once our team had the chance to investigate if such a modification would be possible to begin with.
    I can only confidently say that it wouldn’t be enough to add the code, e.g. to your theme as it has to be applies on the PayPal SDK level.

    Kind regards,
    Joost

    Plugin Support Syde Joost

    (@joostvandevijver)

    Hello,

    Since we did not receive any response or follow-up questions from you, we will assume you got this working to your requirements. If you still have any more questions for us, please open a new thread, because we will mark this one as resolved.

    Kind regards,
    Joost

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Button Layout Issue’ is closed to new replies.