Jump to content

Closing elements of comments being stripped out...(WordPress)


Jim R

Recommended Posts

This is code being used to direct PayPal to create a subscription. It's going on a PHP page used in WordPress. The first section of code is what shows up on my end locally. The bottom set is what shows up when I view the source code in the browser.

 

It's turning the element of each comment that closes the comment into –, and it adds line breaks.

 

It's a theme issue, not a WordPress issue, as I've used this code on previous themes and another site. It still works in each instance. The theme producer is working with me on this, but his initial effort was replacing the style.css file.

 

 

This is what I'm pasting:

 

<!-- Customizes Prices, Payments & Billing Cycle -->
<!--<input type="hidden" name="amount" value="8.00" />-->
<input type="hidden" name="src" value="1" />
<input type="hidden" name="srt" value="" />
<input type="hidden" name="sra" value="1" />
<!--<input type="hidden" name="a1" value="0" />-->
<!--<input type="hidden" name="p1" value="0" />-->
<!--<input type="hidden" name="t1" value="D" />-->
<input type="hidden" name="a3" value="8.00" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="M" />
</form>

 

This is what shows up:

 

<!--<input type="hidden" name="amount" value="8.00" />–><br />
<input type="hidden" name="src" value="1" /><br />
<input type="hidden" name="srt" value="" /><br />
<input type="hidden" name="sra" value="1" /><br />
<!--<input type="hidden" name="a1" value="0" />–><br />
<!--<input type="hidden" name="p1" value="0" />–><br />
<!--<input type="hidden" name="t1" value="D" />–><br />
<input type="hidden" name="a3" value="8.00" /><br />
<input type="hidden" name="p3" value="1" /><br />
<input type="hidden" name="t3" value="M" /><br />

 

(There was an initial issue of the extra line breaks causing white space problems. His style.css solved that. I've only been using this theme for a couple of weeks. I put the original style.css back in to see if the PayPal buttons worked. They didn't.)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.