Forums

[resolved] Customizing inside the A (href) element in get_links (2 posts)

  1. yokima
    Member
    Posted 5 years ago #

    I want get_links to produce the following kind of lists:

    <pre>
    <a class="menuButton"
    href="LINK_URL_HERE"
    onmouseover="buttonMouseover(event, 'serviceMenu');"
    >LINK_NAME_HERE</a
    >
    <a class="menuButton"
    href="LINK_URL_HERE"
    onmouseover="buttonMouseover(event, 'serviceMenu');"
    >LINK_NAME_HERE</a
    >
    </pre>

    (this is order to adapt it to produce links to the style of menu elements at http://www.brainjar.com/dhtml/menubar/ )

    now, how could this be accomplished? get_links only allows for the customization of html before and after the A element, not inside the A element. (http://codex.wordpress.org/Template_Tags/get_links)

    <pre>
    <?php get_links(category, 'before', 'after',
    'between', show_images, 'order',
    show_description,show_rating, limit,
    show_updated, echo); ?> </pre>

  2. Kafkaesqui
    Moderator
    Posted 5 years ago #

    An old plugin of mine, but it should still work:

    http://guff.szub.net/2005/01/27/add-link-attribute/

Topic Closed

This topic has been closed to new replies.

About this Topic