Support » Plugins and Hacks » Digg links in sidebar?

  • I am new to WordPress and would like to add my Digg.com profile links to the sidebar links in WordPress. I cannot however figure out how to do this.

    Digg provides me with a JavaScript which works fine in HTML but how can you put this into the sidebar?
    <script language=”JavaScript” src=”http://digg.com/jsdig/5/<username>” type=”text/javascript”></script>

    I would like it to look like it does on http://www.kevinrose.com where he has it to the left of his main blog.

    Many thanks if you are able to help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • So, one solution would be to ask him 🙂
    The other – open the sidebar.php of your theme in a decent text editor and try to insert the code. Not guaranteed, but may work.
    You can also try a search for js related topics on the forum.
    Plus, read the codex:
    http://codex.wordpress.org/Using_Javascript

    Thanks for pointing me into the direction of sidebar.php
    I went into the Presentaion section in the Admin Panel and selected Theme Editor > sidebar.php

    I entered the following code after <?php get_links_list(); ?>

  • <h2>My Digg News</h2>
    <script language=”JavaScript” src=”http://digg.com/jsdig/10/<username>” type=”text/javascript”></script>
  • To my astonishment, it worked! Many thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Digg links in sidebar?’ is closed to new replies.