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

Add Category name to Post Title (h1)

I would work the code arround and do something like this. <h1><?php echo get_the_title(); ?> – <?php the_category(‘, ‘); ?></h1> get_the_title(); Retrieve post title. the_category(‘, ‘); Displays links to categories, each category separated by a comma (if more than one). Documentation can be founded here : https://codex.wordpress.org/Function_Reference/the_category Hope it helps you.

Capitalize All Titles and Headlines in Chicago Style

I took a look a Tom’s plugin that you referenced and made a stripped down version that simply runs post titles through the Title_case class on-the-fly. I tested it out, and it works. Unlike the original plugin, the code below just changes titles before they are displayed and not when saving posts. Plugin structure: /wpse-title-case/ … Read more