WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Editing Attitude Footer (3 posts)

  1. jiyansara@gmail.com
    Member
    Posted 1 year ago #

    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

  2. WPyogi
    Forum Moderator
    Posted 1 year ago #

  3. jiyansara@gmail.com
    Member
    Posted 1 year ago #

    Thanks, WPyogi. I've reposted in the correct place. Would you mind having a look at it? It's at: http://wordpress.org/support/topic/editing-footer-info?replies=1

    Any help you could offer would be great.

Topic Closed

This topic has been closed to new replies.

About this Topic