@irieside It depends on what you’re trying to do. Which code are you referring to?
for example they gave me this:
<script type=”text/javascript”>
$(document).ajaxSuccess(function() {
setTimeout(function(){
if (“undefined” !== typeof(RW))
RW.render(null, true);
}, 500);
});
</script>
for an AJAX refresh, but i dont know where to put it
Hi @irieside
JavaScript can go inside a PHP file (via use of the <script>
tag) or it can go into a .js file. In the case of the latter, you don’t need to use the <script>
tag.
@irieside not sure why you are asking this here? Who gave this snippet to you and why didn’t that come with instruction on where to place?
If you grabbed it from this page then the question probably should have been asked there:
http://rating-widget.com/support/do-you-have-a-refresh-code-for-ajax-loaded-content/
THis is more of a general question inspired by this specific occurence. I’ve seen many codex inserts for various reasons and issues, I just don’t know where to insert the code. would i need to downlaod the php files and then re-upload or is there a way to access coding via control panel or dashboard. sorry for my lack of knowledge.
@irieside We cannot generalize where and what to add any/all codes you find online because as I mentioned above, it all depends on what/where the code will be used. Sometimes it only needs a line or just inserting it in one file, sometimes you need to add/delete code in many files.
Link to the page with the code you are referring to and if there’s enough information there, we may be able to help you.
it’s http://www.knack-shack.com/news-feed/
if you click “show more” at the bottom of the feed, the like feature won’t be activated on those updates.