SHARE
TWEET

Modify News WordPress Theme Entry Meta

a guest Mar 3rd, 2012 34 Never
  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. }
RAW Paste Data
Top