WordPress.org

Ready to get started?Download WordPress

Forums

Is This Script Really Necessary? (3 posts)

  1. rankbeginner
    Member
    Posted 9 years ago #

    Hello and thanks again,

    I have some javascript in my header.php file and my question is: What is it doing, and is it necessary?

    '
    <script type="text/javascript" src="<?php bloginfo('url'); ?>/wp-content/themes/MinimaPlus/nicetitle.js"></script>
    <link rel="stylesheet" href="<?php bloginfo('url'); ?>/wp-content/themes/MinimaPlus/nicetitle.css" />
    '

    Why am I asking? ... I think that this javascript is sending an error message when I try to get valid for Section 508.

    Is there an alternative to using this javascript that would not break my nice-looking page?

    Thanks again, all

    RB

  2. Marc
    Member
    Posted 9 years ago #

    That script isn't "necessary" it's one of those nice to have design things.

    Hover your curser over your links that have a "title" attribute (Those in your menu at the top will do). The pretty little dark grey box that pops up is created by the "nice title" script.

    If memory serves me correctly that theme has a plugin (nice titles) that activates the script. If so just deactivate it.

  3. rankbeginner
    Member
    Posted 9 years ago #

    Thanks very much, Marc. ... That feature is one of my favorites, and very useful, too, to give more information to anyone who hovers over the link. For example, a friend told me that he didn't know the meaning of a "Site Map" was. Now, when you point your mouse over the Site Map link, there is an explanation of the term.

    I think I would much rather keep that feature, and sacrifice the 508 compliance. Or, find a way to meet 508 compliance without sacrificing that.

    Thanks again ... RB

Topic Closed

This topic has been closed to new replies.

About this Topic