Quantcast
Channel: Suzanne Ahjira» Tutorials
Viewing all articles
Browse latest Browse all 29

How To Filter The Flint Author Box Title

$
0
0

Flint’s author box includes a filter for the title and it’s aptly named: flint_author_box_title

This filter will allow you to completely rewrite the HTML. It currently outputs the following:

<h6>Prefix authorName<h6>

The prefix can be specified on the Flint Options page and can be left empty. The authorName is the display name of the post author and there’s an option on the Flint Options page to hide that if you’re using a prefix that doesn’t require the author name follow it, i.e. About The Author.

To completely rewrite the title however, you can use the built-in filter. Here’s how that might look.

add_filter( 'flint_author_box_title', 'my_author_box_title' );
function my_author_box_title( $title ) {

  $title = '<h2>Hello</h2>';

  return $title;

}

It’s line 4 you want. If you want to continue to use Flint’s author box title styles, then use <h6> and </h6> tags. Flint looks for the H6 heading tag. If you plan to write custom CSS then you can use anything you want.


Viewing all articles
Browse latest Browse all 29

Trending Articles