• I’m searching for a way to create links in my pages that will open brief annotations (text only) in my sidebar.

    I installed HTML Javascript Adder today, so from what I understand this should be possible; I’m just not sure what script to use.

    A similar plugin (Side Matter) seems not to have worked with my theme (Adaption).

    Any help would be greatly appreciated!

Viewing 1 replies (of 1 total)
  • Thread Starter jtn35

    (@jtn35)

    I tried these steps this morning but to no avail. Maybe someone can point out where I went wrong?

    First, this script was added to the content section of the HTML Javascript Adder plugin:

    <script type=”text/javascript”>
    $(“a.note”).click(function() {
    var alt = $(this).attr(‘alt’);
    var pos = $(this).position();
    $(‘#note_display’).html(alt);
    $(‘#note_display’).css({
    position: “absolute”,
    top: pos.top + “px”
    }).show();
    });
    </script>

    <div id=”note_display”></div>

    Then this was added to header.php:

    <script type=”text/javascript” src=”https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js”></script&gt;

    Then the notes in the page itself were formatted like this:

    <a class="note" alt="Sidebar text here"> Link to sidebar text here </a>

    The sidebar title appears but the links do nothing. Once again, any help would be much appreciated.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: HTML Javascript Adder] Displaying annotations in sidebar’ is closed to new replies.