WordPress.org

Support

Support » Themes and Templates » [Resolved] Editing Attitude Footer

[Resolved] Editing Attitude Footer

  • Hello,

    I love this theme but am just having a little trouble editing the footer info. I’ve created a child theme and used this text from an old forum to edit the footer:
    <?php

    // Remove old copyright text
    add_action( ‘init’ , ‘mh_remove_copy’ );
    function mh_remove_copy() {
    remove_action( ‘attitude_footer’ , ‘attitude_footer_info ‘, 25 );
    }

    // Add my own copyright text
    add_action( ‘attitude_footer’ , ‘mh_footer_info’ , 25 );
    function mh_footer_info() {
    $output = ‘<div class=”copyright”>’.’Copyright © [the-year] [site-link] Powered by: SUPER MARTIANS FROM MARS! ‘.'</div><!– .copyright –>’;
    echo do_shortcode( $output );
    }

    But all this does is delete the footer completely from my site. Does anyone have any advice for me? Site link is: http://66.147.244.142/~jiyansar/

    Jiyan

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Editing Attitude Footer’ is closed to new replies.