wordpress - How can i remove the category description from the nav item's title attribute -
i working on site https://barwareandmore.com.au,
if click on item left hand nav bar, hover mouse on item, can see link's title attribute contains category's description.
this code reflected in source code pages (thus making duplicate content)
is there way can remove title attribute these links? or set them value of nothing?
i using davinci theme
sorry can't more specific, still rookie @ wordpress,
thanks help/advice/suggestions :]
i did download theme, , had @ it.
go theme files, cat-menu.php
inside products
folder believe, , this:
$product_cat_menu = wp_list_categories( array( 'taxonomy' => 'product_cat', 'show_count' => 1, 'hide_empty' => 1, 'echo'=> 0, 'title_li' => sprintf('<h3>%s</h3>', __('categories', 'ami3')), 'link_before' => '<span class="main-el-icon"></span>' ) );
and add 'use_desc_for_title' => 0
, tells query not include description in title. :
$product_cat_menu = wp_list_categories( array( 'taxonomy' => 'product_cat', 'show_count' => 1, 'hide_empty' => 1, 'echo'=> 0, 'title_li' => sprintf('<h3>%s</h3>', __('categories', 'ami3')), 'link_before' => '<span class="main-el-icon"></span>', 'use_desc_for_title' => 0 ) );
Comments
Post a Comment