Thanks for the excellent question.Starting with s2Member v3.3.2+, it is now possible to modify your Shortcode in the following way.
- Code: Select all
[s2Member-PayPal-Button ... output="anchor" /]
This would result in an anchor tag, instead of the traditional <form> tag that is output by default.
( i.e. <a href="https://www.paypal.com/..."><img /></a> )Another output format is available ( url ), which provides even more flexibility:
- Code: Select all
[s2Member-PayPal-Button .... output="url" /]
This will output just the raw URL, giving you the ability to incorporate your Shortcode into other HTML that you've generated on your own. For example, if you want to create a PayPal
Button that opens in a
new window, you could do something like this.
* The Shortcode is abbreviated here; just to improve clarity on this topic.- Code: Select all
<a href="[s2Member-PayPal-Button ... output="url" /]" target="_blank">Checkout</a>
You will find further details covering all Shortcode Attributes in your Dashboard, under:
s2Member -> PayPal® Buttons -> Shortcode Attributes Explained