Forums

Link Library
fix 'ID "link-xx" already defined' errors if code validat (1 post)

  1. Brummbaer
    Member
    Posted 8 months ago #

    You see on w3c.org messages like this:
    "Line 1280, Column 389: ID "link-14" already defined …/www.wetteronline.de/deutsch.htm" id="link-14" class="track_this_link " title…

    An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element)."

    change code near line 4400 from:
    $imageoutput .= '" id="link-' . $linkitem['proper_link_id'] . '" class="track_this_link' . ( $linkitem['link_featured'] ? 'featured' : '' ). '" ' . $rel . $title . $target. '>';

    to:
    $imageoutput .= '" id="ilink-' . $linkitem['proper_link_id'] . '" class="track_this_link' . ( $linkitem['link_featured'] ? 'featured' : '' ). '" ' . $rel . $title . $target. '>';

    http://wordpress.org/extend/plugins/link-library/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.