How can I make a new widget with HTML?

  • Author
    Posts
  • #1084079

    pjones51
    Member

    I’m trying to add the RetailMeNot.com widget to my blog with theme Bueno on it but am having a difficult time. Anyone out there have any suggestions? I tried the Text Widget, but it only displays the code. Tried making a custom menu widget, but still only displaying code or an error page.

    The blog I need help with is bpjoneslivesitup.wordpress.com.

    #1084190

    Some of the code may be getting stripped out:

    http://en.support.wordpress.com/code/

    #1084192

    timethief
    Member

    There are code restrictions here. If the code is for an iframe or it’s JavaScript you cannot use the widget. http://en.support.wordpress.com/code/

    Will you please provide the code betweent backticks so we can examine it? The backtick ` not to be confused with the single quote mark ‘ is located to the left of the number 1 key in lower case under the tilde ~.
    backtick
    code
    backtick

    #1084196

    pjones51
    Member

    Here’s the entire code. I didn’t see any backticks at all. That could be part of the problem…

    <div class=”rmnWidget” data-type=”mostPop” data-count=”5″ data-bgcolor=”#eeb0a0″ data-fgcolor=”#457e9b” data-width=”300″ data-showsearch=”true” data-title=”Today’s RetailMeNot Savings Galore!” data-affiliateid=”9c2bdc058ec64dd6997cecc8bc279777″><p class=”rmnCloser”>Coupons from RetailMeNot.com Coupons</p></div><script>var rmn = rmn || {};rmn.widget = rmn.widget || [[‘init’]];(function(d, t) {var w = d.createElement(t),s = d.getElementsByTagName(t)[0];w.async = 1;w.src = d.location.protocol + ‘//svc.rmncdn.com/js/widget.js’;s.parentNode.insertBefore(w, s);}(document, ‘script’));</script>

    #1084199

    timethief
    Member

    It’s JavaScript and you cannot use it on a WordPress.com blog.

    #1084200

    pjones51
    Member

    dang! oh well. thanks!

    #1084202

    timethief
    Member

    You’re welcome.

The topic ‘How can I make a new widget with HTML?’ is closed to new replies.