WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Question Editing Category-Template (3 posts)

  1. The Night Fox
    Member
    Posted 3 years ago #

    There is a category navigation menu on my website so that users can easily access their required category. When I added a description to one of the categories it replaced the title attribute with the description, so that whenever I hover over the category in the navigation menu I see the full description instead of simply the category name.

    You can see my website by clicking here if you are not quite sure what i'm talking about :P

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    try to access the code of the category menu in header.php; something with wp_list_categories('title_li=');

    try and add:

    &use_desc_for_title=0

    example:
    wp_list_categories('title_li=&use_desc_for_title=0')

    http://codex.wordpress.org/Template_Tags/wp_list_categories

    use_desc_for_title
    (boolean) Sets whether a category's description is inserted into the title attribute of the links created (i.e. <a title="<em>Category Description</em>" href="...</a>). The default is true (category descriptions will be inserted). Valid values:
    1 (True) - Default
    0 (False)

  3. The Night Fox
    Member
    Posted 3 years ago #

    Thanks for the help, just went straight to the category-template.php and set use_desc_for_title to 0.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.