Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #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 21 hours, 18 minutes ago by FFAlan.
    #1484420

    Hey FFAlan,
    Try using a plain text editor like notepad, VScode, or notepad++, not Word.

    Best regards,
    Mike

    #1484436

    Not 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:
    Code as it comes from Paypal
    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:
    Button appearance after pasting code
    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.
    Code as changed by Enfold

    • This reply was modified 5 hours, 19 minutes ago by FFAlan.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.