Digg links in sidebar? (3 posts)

  1. ajmuir
    Posted 10 years ago #

    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.

  2. moshu
    Posted 10 years ago #

    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:

  3. ajmuir
    Posted 10 years ago #

    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(); ?>

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.