try to add a button to page

  • Author
  • #1097375

    Trying to put html code into my page. It just shows up as code and does not translate to the button as it should.

    The blog I need help with is


    Moderator Emeritus

    Are you placing the code into the text editor or into a text widget?
    Or is the code using forbidden tags?

    You can place the code here in the forum so we can examine it. Paste it, then highlight it, and use the “code” button above the comment box.


    I tried the text widget but not text editor (I don’t think). Is text editor when you use “visual” you use “text”?
    If so, I have tried that too.


    Moderator Emeritus

    Yes, that’s correct. I think you might be trying to insert some forbidden code. Paste the code here so we can examine it. Perhaps there is some way to alter it to function.


    I think you are right. I just saw that “form” and “input” are not allowed and both appear in the HTML code I was given.
    How frustrating!
    Perhaps paypal is easier to use?


    Moderator Emeritus

    Ah, yes. PayPal. We can use the plain paypal buttons here on WordPress.COM: no shopping carts. If that is necessary for your site, then you must look into self-hosting.
    note that the support article only mentions a “donate” button, but you can use a different button as long as it uses the plain html code.

    Here is some information about the different kinds of wordpress:



    I am also trying to add a button from another site by pasting the code into a text widget. All I get is the text in the sidebar. I noticed that when I check the text, after I save the widget, the first and last lines of the code have been deleted. Here is the code:

    <script type=”text/javascript”>
    (function(d, s) {
    var js, tjs = d.getElementsByTagName(s)[0];
    js = d.createElement(s);
    js.type = ‘text/javascript’;
    js.async = true;
    js.src = ‘’;
    tjs.parentNode.insertBefore(js, tjs);
    })(document, ‘script’);


    Moderator Emeritus

    Please read my post above about forbidden tags on
    script is one that will be stripped out.

    What does that code do? Perhaps there is another way to link to it?




    Moderator Emeritus

    You are welcome. Best wishes.

The topic ‘try to add a button to page’ is closed to new replies.