Viewing Help with where to insert HTML?

Help with where to insert HTML?



User: Daniel B. 11 years ago
Howdy,

I'm trying to insert a star rating system on a website from this place:
https://rating-widget.com/get/rating/

They say to copy code like this "just before the /body tag" (this isn't the actual code; it generates specifics when I put in my website—just to give an idea)":
<script type="text/javascript">(function(d, t, e, m){

// Async Rating-Widget initialization.
window.RW_Async_Init = function(){

RW.init({
huid: "your-unique-site-id",
uid: "your-site-public-key",
options: { "style": "oxygen" }
});
RW.render();
};
// Append Rating-Widget JavaScript library.
var rw, s = d.getElementsByTagName(e)[0], id = "rw-js",
l = d.location, ck = "Y" + t.getFullYear() +
"M" + t.getMonth() + "D" + t.getDate(), p = l.protocol,
f = ((l.search.indexOf("DBG=") > -1) ? "" : ".min"),
a = ("https:" == p ? "secure." + m + "js/" : "js." + m);
if (d.getElementById(id)) return;
rw = d.createElement(e);
rw.id = id; rw.async = true; rw.type = "text/javascript";
rw.src = p + "//" + a + "external" + f + ".js?ck=" + ck;
s.parentNode.insertBefore(rw, s);
}(document, new Date(), "script", "rating-widget.com/"));</script>

AND code like this

<div class="rw-ui-container"></div>

" in the exact place you want the rating widget to appear."

I THINK the first bit should be in the page settings "footer" code space and the second bit in an HTML Snippet ion the page.

But it doesn't render when I preview.

Any thoughts?

Thank you!
User: Roddy 11 years ago
You probably need to publish the page to the server before you will see anything.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: Daniel B. 11 years ago
Thanks, Roddy.

I always check to see if you have a widget for what I want to do, first.
User: Daniel B. 11 years ago
You were right, Roddy. Thanks!


Post Reply
You must login or signup to post.