Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'genesis_post_title_text', 'sk_add_after_post_titles' );
- /**
- * Add code after Post titles on archives, Posts page and search results pages.
- * @author Sridhar Katakam
- * @link http://sridharkatakam.com/add-custom-html-end-post-titles-genesis/
- *
- * @param string original title text
- * @return string modified title HTML for non Pages
- */
- function sk_add_after_post_titles( $title ) {
- if ( is_archive() || is_home() || is_search() ) {
- $title = $title . '<span class="category-indicator-circle"></span>';
- }
- return $title;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement