The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress Custom HTML/JS Ruler Bar

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #46262

    I have been trying to add these Accessibility options to my WordPress blog.
    I am using the Twenty Twelve stock theme.

    Opendyslexic seems to work when I replace the font-family
    under the ‘custom font’ heading, simply to font-family: “Opendyslexic”;

    But I couldn’t get this to happen on the Twenty Eleven theme.

    AAAAANNYyyway. Basically all I want is the ruler bar following cursor added.

    I have tried adding

    (script src=”” type=”text/javascript”>(/script> (script src=”” type=”text/javascript”>(/script>
    (script src=”” type=”text/javascript”>(/script>
    (script type=”text/javascript”>
    $(‘body’).mousemove(function(event) {
    $(“#ruler”).css(‘top’, event.pageY – 30);
    $(“#ruler”).css(‘width’, $(window).innerWidth());
    (SCRIPT LANGUAGE=”JavaScript”>

    and then (body)
    (div id=”ruler” style=”height: 1.4em; background-color: rgba(0,0,0,.1); position: absolute; top=-100px; z-index: -1″>(/div)

    Buuuut I don’t know where to. I’ve tried it with HTML adder plugin for sidebar.
    CSS & JS toolbox plugin. But I have no idea what i’m doing.

    I got it working on my tumblr. Apart from Opendyslexic font.

    I tried editing the Style.css but no idea what i’m doing.

    Maybe the solution could be to create something with JS toolbox.
    So that every post made (with RAW HTML plugin installed.) triggers the ruler function.

    This way it will only appear in posts? aaaah I have no idea.
    But i’ve been at this for hours and don’t know what to do.

    It was of course easy for my own html webpage and tumblr wasn’t toooo bad.

    Wordpress seems very very limited.

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.