How can I change the tooltip in the_category?

I used this solution instead, within my single.php file: <?php //categories loop $categories = get_the_category(); $separator=”, “; $output=””; if($categories){ foreach($categories as $category) { $output .= ‘<a href=”‘.get_category_link( $category->term_id ).'” title=”‘ . esc_attr( sprintf( __( “%s” ), $category->name ) ) . ‘”>’.$category- >cat_name.'</a>’.$separator; } echo trim($output, $separator); } ?>

Adding a tooltip above Categories postbox in Post Editor

Place this code in your functions.php theme (or child theme) file. It uses jQuery to add a new box above the Category div (<div id=”categorydiv” class=”postbox ” >). add_action( ‘admin_footer-post.php’, ‘wpse_99252_add_categories_title_attribute’ ); add_action( ‘admin_footer-post-new.php’, ‘wpse_99252_add_categories_title_attribute’ ); /** * Add a title attribute to categories box in the Post Editor. */ function wpse_99252_add_categories_title_attribute() { ?> <script … Read more

How to add a CSS class to the tooltip on a navigation menu?

Add this code into your functions.php class Tooltips_Walker extends Walker_Nav_Menu { function start_el(&$output, $item, $depth, $args) { $classes = empty ( $item->classes ) ? array () : (array) $item->classes; $class_names = join( ‘ ‘ , apply_filters( ‘nav_menu_css_class’ , array_filter( $classes ), $item ) ); ! empty ( $class_names ) and $class_names=” class=””. esc_attr( $class_names ) … Read more