
-
AuthorPosts
-
May 18, 2025 at 6:39 pm #1484406
I often use Paypal to generate a code and then paste it into my website on the code tab. However, recently somehting has been scrambling the code such that it no longer produces the desired result. I’ve copy and pasted the code into Word and it copies as it should. However when I paste it into my Enfold themed page it adds extra code which I then have to manually delete. What’s going on here?:
Here’s the relevant part of the code as generated by Paypal:
<table>
<tr>
<td>
<input type=”hidden” name=”on0″ value=”Options for Brondanw & Nantclwyd only”/>
Options for Brondanw & Nantclwyd only
</td>
</tr>
<tr>
<td>
<select name=”os0″>
<option value=”Member”>
Member £17.00 GBP
</option>
<option value=”Guest”>
Guest £19.00 GBP
</option>
<option value=”2 Members”>
2 Members £34.00 GBP
</option>
<option value=”1 Member + 1 Guest”>
1 Member + 1 Guest £36.00 GBP
</option>
<option value=”Child under 16″>
Child under 16 £10.00 GBP
</option>
</select>
</td>
</tr>
</table>And after pasting it into my website:
<table>
<tbody>
<tr>
<td><input name=”on0″ type=”hidden” value=”Options for Brondanw & Nantclwyd only” />
Options for Brondanw & Nantclwyd only</td>
</tr>
<tr>
<td>
<select name=”os0″>
<option value=”Member”>Member £17.00 GBP</option>
</select><select name=”os0″>
<option value=”Guest”>Guest £19.00 GBP</option>
</select><select name=”os0″>
<option value=”2 Members”>2 Members £34.00 GBP</option>
</select><select name=”os0″>
<option value=”1 Member + 1 Guest”>1 Member + 1 Guest £36.00 GBP</option>
</select><select name=”os0″>
<option value=”Child under 16″>Child under 16 £10.00 GBP</option>
</select></td>
</tr>
</tbody>
</table>See all those <select name = “os0”> lines before each button choice? How did they get there and how can I prevent them from being added?
-
This topic was modified 1 day, 1 hour ago by
FFAlan.
May 19, 2025 at 1:34 am #1484420Hey FFAlan,
Try using a plain text editor like notepad, VScode, or notepad++, not Word.Best regards,
MikeMay 19, 2025 at 10:36 am #1484436Not sure what you mean there. To be clear -I’m generating the code in Paypal. I then copy the code into the code tab on the WordPress page and initially it looks Ok. Then I change to the Visual tab and the button looks wrong. When i flip back to the code tab, extra lines of codes have been added. Word is not involved anywhere.
Here’s a test page -I’ve just pasted in the code from Paypal which should produce a single button with drop down options:
If I then click on the visual tab to see my button it doesn’t look right -I’ve got multiple button instead of a single one:
So I go back to the code tab and notice the code has changed -there are new ?select name=”os0″> lines before each menu choice which I haven’t put there.
-
This reply was modified 9 hours, 25 minutes ago by
FFAlan.
-
This topic was modified 1 day, 1 hour ago by
-
AuthorPosts
- You must be logged in to reply to this topic.