• Resolved The Night Fox

    (@the-night-fox)


    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 😛

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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)

    Thread Starter The Night Fox

    (@the-night-fox)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question Editing Category-Template’ is closed to new replies.