Advertisement
srikat

Untitled

May 19th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. add_filter( 'genesis_post_title_text', 'sk_add_after_post_titles' );
  2. /**
  3. * Add code after Post titles on archives, Posts page and search results pages.
  4. * @author Sridhar Katakam
  5. * @link http://sridharkatakam.com/add-custom-html-end-post-titles-genesis/
  6. *
  7. * @param string original title text
  8. * @return string modified title HTML for non Pages
  9. */
  10. function sk_add_after_post_titles( $title ) {
  11.  
  12. if ( is_archive() || is_home() || is_search() ) {
  13. $title = $title . '<span class="category-indicator-circle"></span>';
  14. }
  15.  
  16. return $title;
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement