• Resolved remorknevets

    (@remorknevets)


    How do I use this plugin’s shortcode to create a button with custom text?

    For example, something like: [wpedon id=986 text=”DONATE NOW TO SUPPORT THIS CAUSE”]

    Or, would it be possible to use a custom image for each individual button?

    For example, something like: [wpedon id=986 image=”https://www.mysite/images/1.png”%5D

    • This topic was modified 6 years, 5 months ago by remorknevets.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Scott Paterson

    (@scottpaterson)

    Just go to PayPal Donations -> Buttons. Each Button can have it’s own title and image. You get a shortcode like: [wpedon id=1123] that you can place on your site.

    Yes, you would need to create an individual custom image with your text on it.

    Thread Starter remorknevets

    (@remorknevets)

    I selected “Custom” from the button size dropdown for this individual button. However, where do I set the url for this button’s custom image? Without knowing how or where to define these parameters, the button simply shows as a broken image url with the text “Make your payments with PayPal. It is free, secure, effective.”

    Thread Starter remorknevets

    (@remorknevets)

    To make this work temporarily, I edited your plugin’s code so that if the custom image option is selected for a button, it uses the image source url defined in the shortcode.

    easy-paypal-donation/includes/public_shortcode.php
    Line 13-14
    ‘name’ => ”,
    ‘image’ => ”
    Line 351
    if ($value[‘size’] == “8”) { $img = $atts[‘image’]; }

    On the source webpage:
    [wpedon id=986 image=”https://www.mysite.com/images/button1.png”%5D

    I keep loading an image to make a custom button. I placed the shortcode on my page, but I don’t see the image. I’ve done this several times.

    Why isn’t the image appearing?

    Plugin Author Scott Paterson

    (@scottpaterson)

    Hi @romwrit,

    If you are trying to use the above code, that was custom modified code by that user. Setting the image URL via the shortcode is not currently a feature of the plugin.

    Thanks,
    Scott

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom button text’ is closed to new replies.