Support » Theme: Attitude » Editing Footer Info

  • Resolved



    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:

    // 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:


Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve done that by doing this:
    Enter to your WP folder through ftp. Go to wp-content/themes/attitude/library/structure.

    There is a file named footer-extensions.php where you can modify the footer content. Edit it with a php editor or the notepad. You will see the next code. Modify the part you want to change and it have to works.

    add_action( 'attitude_footer', 'attitude_footer_info', 30 );
     * function to show the footer info, copyright information
    function attitude_footer_info() {
       $output = '<div class="copyright">'.__( 'Copyright &copy;', 'attitude' ).' '.'[the-year] [site-link]'.' '.__( 'Theme by:', 'attitude' ).' '.'[th-link]'.' '.__( 'Powered by:', 'attitude' ).' '.'[wp-link] '.'</div><!-- .copyright -->';
       echo do_shortcode( $output );

    Remember that you are modifying the theme so better you do a child theme or save the original theme in case something gets wrong.

    Thanks LightWolf, that worked perfectly. You’re a genius!

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