Did a bit more searching, and thanks to advice by Eduan in this thread (thanks Eduan!):
http://www.s2member.com/forums/topic/extra-white-space-around-paypal-button/
I was able to identify the cause. In my case, it’s the WPautop filter. If I disable it, the paypal button appears where it should and the blank space is gone.
Corey, I suggest you do the following:
– Install and activate the TRUEdit plugin (add/new plugin/search)
– Make a note of which filters are disabled already so you can go back to your starting point
– In the TRUEdit settings, disable the WPautop filter. If you’re lucky, the cause will be the same as mine.
– Otherwise, try to disable all filters, until you find the culprit. Make sure you refresh the page in your browser between each attempt to make sure the latest version is loaded.
If this fails too, try to select the default WP 2013 theme, and disable all the plugins (except S2member, of course) until you find a possible conflicting plugin. I had done this already and it didn’t help.
Good luck!
PS: anyone has any idea what the WPautop filter does, and if it’s ok to disable it using TRUEdit?
EDIT: found the definition here http://codex.wordpress.org/Function_Reference/wpautop. It looks like it’s an internal filter that deals with spaces in content and comments. Maybe the devs could have a look at the reason why this filter interferes with Paypal buttons?
EDIT2: Looking more closely into this definition, I also found this other plugin http://wordpress.org/plugins/wpautop-control/ which theoretically gives more control over the filter. You enable or disable it by default, and then change the default option for each post. That means you can have it enabled for normal content and only disable it for the posts/pages with Paypal buttons.
EDIT3: Unfortunately, while this identifies the issue more precisely, the above isn’t a solution as when the wpautop filter is disabled for the whole site (using either TRUEdit or WPautop Control), the pages/posts with text are not readable anymore. I haven’t been able to apply the per post/per page solution offered by the wpautop control, so please could we get a solution to this issue? As mentioned above, selecting default theme and disabling all the plugins doesn’t resolve this issue, at least in my case.
Thanks!
-
This reply was modified 3 years, 4 months ago by
Manni01.
-
This reply was modified 3 years, 4 months ago by
Manni01.
-
This reply was modified 3 years, 4 months ago by
Manni01.
-
This reply was modified 3 years, 4 months ago by
Manni01.
-
This reply was modified 3 years, 4 months ago by
Manni01.