This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Modify News WordPress Theme Entry Meta

By: a guest on Mar 3rd, 2012  |  syntax: None  |  size: 0.55 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. add_action( 'after_setup_theme', 'news_child_theme_setup', 11 );
  2.  
  3. function news_child_theme_setup() {
  4.  
  5.         /* Get the theme prefix ("news"). */
  6.         $prefix = hybrid_get_prefix();
  7.  
  8.         remove_theme_support( 'breadcrumb-trail' ); // Remove this line if you have second thoughts.
  9.        
  10.         add_filter( 'news_entry_meta', 'news_child_entry_meta' );
  11. }
  12.  
  13. function news_child_entry_meta( $entry_meta ) {
  14.  
  15.         $entry_meta = '<div class="entry-meta"><span class="share">Share this on:</span> [entry-facebook-link] [entry-twitter-link]</div> ';
  16.        
  17.         return $entry_meta;
  18.        
  19. }
clone this paste RAW Paste Data