[resolved] Editing Footer Info (3 posts)

  1. jiyansara@gmail.com
    Posted 2 years ago #


    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:


  2. lightofwolf
    Posted 2 years ago #

    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.

  3. jiyansara@gmail.com
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic