try to add a button to page

  • Author
    Posts
  • #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 littlegoatproductions.wordpress.com.

    #1097502

    1tess
    Moderator Emeritus

    Are you placing the code into the text editor or into a text widget?
    Or is the code using forbidden tags?
    http://en.support.wordpress.com/code/

    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.

    #1097509

    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.

    #1097512

    1tess
    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.

    #1097514

    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?

    #1097526

    1tess
    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.
    http://en.support.wordpress.com/paypal/
    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:
    http://en.support.wordpress.com/com-vs-org/

    #1097536

    kbnelson
    Member

    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 = ‘http://www.teacherspayteachers.com/widgets/get/1980’;
    tjs.parentNode.insertBefore(js, tjs);
    })(document, ‘script’);
    </script>

    #1097537

    1tess
    Moderator Emeritus

    Hi!
    Please read my post above about forbidden tags on wordpress.com:
    http://en.support.wordpress.com/code/
    script is one that will be stripped out.

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

    #1097550

    Thanks!

    #1097552

    1tess
    Moderator Emeritus

    @littlegoatproductions
    You are welcome. Best wishes.

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