SHARE
TWEET

remove-mantra-footer-links.php

jan_dembowski Sep 7th, 2013 469 Never
  1. <?php
  2.  
  3. // Remove old copyright links
  4. add_action( 'init' , 'mh_remove_copyright_link' , 15 );
  5. function mh_remove_copyright_link() {
  6.         // remove_action( 'cryout_footer_hook' , 'mantra_copyright' , 11) ;
  7.         remove_action( 'cryout_footer_hook' , 'mantra_site_info' , 12) ;
  8.         // remove_action( 'cryout_footer_hook' , 'mantra_footer_social' , 13) ;
  9. }
  10.  
  11. // Add my own copyright text
  12. add_action( 'cryout_footer_hook' , 'mh_footer_info' , 30 );
  13. function mh_footer_info() {
  14.  
  15. $output  = '<div style="text-align:center;clear:both;padding-top:4px;" >';
  16. $output .= '<a href="http://www.example.com/">Some AMAZING LINKS FROM MARS goes here</a> | <a href="' . get_bloginfo( 'wpurl' ) . '">' . get_bloginfo( 'name' ) . '</a>';
  17. $output .= '</div><!-- #site-info -->';
  18.  
  19.    echo do_shortcode( $output );
  20. }
RAW Paste Data
Top