HTML not accepted

  • Unknown's avatar

    I trying to add the following HTML code on one of my pages (booking.com widget). It is not accepted can you please help?

    <script>
    (function() {
    var randomId = Math.floor(Math.random() * 100000);
    var targetElemId = ‘bcom_rwidget_’ + randomId;
    document.write(‘<div id=”‘ + targetElemId + ‘”></div>’);
    var script = document.createElement(‘script’);
    script.type = ‘text/javascript’;
    script.async = true;
    script.src = ‘http://www.booking.com/review_widget/it/corte-atta-lea.it.html?tmpl=review_widget/review_widget&wid=’ + targetElemId + ‘&wtype=box_small&hotel_id=593792&widget_language=it’;
    var node = document.getElementsByTagName(‘script’)[0];
    node.parentNode.insertBefore(script, node);
    }());
    </script>

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Third-party code and outside plugins cannot be added to your WordPress.com site. However, you can create your own widget that may function as you wish:

    http://en.support.wordpress.com/widgets/create-your-own-widget/

    Let me know if I can help further. Thanks.

  • The topic ‘HTML not accepted’ is closed to new replies.