WordPress.org

Ready to get started?Download WordPress

Forums

where to place widget code / javascript ? (3 posts)

  1. qzha017
    Member
    Posted 1 year ago #

    Hi everyone I came across this fun site about Trade marks going 1v1 on each other, and they described I can embed it into my blog as well, but when I paste the code in my header.php nothing happens? the script is:

    <script type="text/javascript" src="http://tmbattle/scripts/widget.js"></script><script type="text/javascript">createWidget({user:'1', type:'1', width:'160', height:'600', origBTID:'418', replacement:'replace_with_site_current_battle', vote_from:'vote_from_site'});</script>

    this is the site for more details: http://tmbattle.com/share_tutorial/

    Can anyone explain or help me get it to work on my site?

    Thanks eveyone!

  2. Give this plugin a try:

    Scripts and Styles

  3. qzha017
    Member
    Posted 1 year ago #

    Hi Josh
    Thanks for responding so fast but I dont think that is what I am after and it seems too complicated.

    I need to add that javascript to my template file like header.php or home.php but when I add it nothing shows.

    can you create a TMBattle on your site by using the widget code? I think there maybe something wrong with that code it self, but only maybe

Topic Closed

This topic has been closed to new replies.

About this Topic