• Hi,

    My template shows in the sidebar the link descriptions in my blogroll. I want to turn that off so it only shows when someone hovers over the link.

    The code in my sidebar.php file is as below:

    <?php get_links(-1, '<li>', '</li>', ' - '); ?>

    Would someone please let me know what I need to change in this code to make the description not show.

    Thanks for your help.

    Wendy

Viewing 3 replies - 1 through 3 (of 3 total)
  • Since you don’t INCLUDE A LINK to your site it is hard to offer precise information, but if you look through your styles.css for your a.link tags, you could probably do this by changing the color of the a.link text to the same as your background color, and making the a.hover tag a color that would contrast.

    Thread Starter wmakara

    (@wmakara)

    Sorry Saurus,

    Here is the link to my site https://its-about-info.com/Work-From-Home/

    The links I am referring to are in the side bar under “Recommended”.

    I will have a go at what you suggested and see if that works for me.

    Thanks
    Wendy

    You are using an outdated wordpress tag. The “get_links” tag was updated to “wp_list_bookmarks“.

    This new template tag allows you to specify a number of settings including whether or not to display the link description. To display links in a list format with descriptions turned off you would write:

    <?php wp_list_bookmarks('before=<li>&after=</li>&show_description=0'); ?>

    I had the same problem when using a template which contained the outdated get_links tag. This corrected the issue for me. -josh

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Turning off Link description from showing’ is closed to new replies.