[Support request] Category description displayed on a title tag

Home Forums Support [Support request] Category description displayed on a title tag

Home Forums Support Category description displayed on a title tag

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1092523
    Hilton

    Hi,

    We have edited category description to add important information about all posts comprised there, as an introduction which will guide the visitor among all related subjects.

    But looking at the source code of the page, I realised that the category description has being used as a title tag in the items on the category widget (sidebar).

    You can noticed that the categories “Dieta” and “Exercícios” (are the only ones with description until now) are displaying the description as title tag.

    Is there a way to avoid displaying this title tag?

    #1093476
    David
    Staff
    Customer Support

    Hi there,

    removed…..

    #1093503
    Hilton

    Hi David,

    Sorry, I think I’ve already fixed the problem with this function below:

    // prevent the category widget from using the category description as the list item title attribute
    function mbf_disable_cat_desc_widget_list_titles ( $cat_args ) {
        $cat_args[ 'use_desc_for_title' ] = 0;
        return $cat_args;
    }
    add_filter( 'widget_categories_args', 'mbf_disable_cat_desc_widget_list_titles' );

    Thanks

    ps. Before marking as resolved please delete the website information

    #1093519
    David
    Staff
    Customer Support

    Glad to her you got it resolved. Removed site info above.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.