Adding an APLOS Donate button to a managed WordPress site
In this case, we were given a snippet of code:
Notice how it includes a <script> tag. This is problematic for the WordPress HTML widget.
According to the WordPress documentation:
Since the donate button from APLOS was requested to be in the footer, I first added the button and link tag in the footer as a custom HTML widget:
Next, I used the handy Scripts and Styles plugin to insert the script code globally:
Very nice. I cannot believe that they show the script tag in the preview window and then strip it on the live site! I wasted a good portion of my life going in circles because of this. Grrr...ReplyDelete