badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Footer disappeared after adding Child Theme

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3143
    hmatzell
    Participant

    Hello,

    The footer on my website disappeared after I activated my child theme. I originally wanted to change it anyway, so I uploaded this footer.php with in the attitude-child folder, along with the style.css:
    ‘<?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] Designed By: hmdesignstudio Powered by: WordPress ‘.'</div><!– .copyright –>’;
    echo do_shortcode( $output );
    }
    ?>’

    But now NO footer is showing at all, and when I delete this .php from the child theme folder, I get a “fatal error” message at the bottom of every page – it does not even go back to showing the original footer. Can anyone tell me what I’m doing wrong?

    #3176
    Sanjip Shah
    Participant

    @hmatzell Making a new footer.php in you child theme and pasting this code inside it won’t do the changes that you are trying to make. You need to paste this code inside the functions.php file of the child theme. As the only credit we get after giving a theme for free is a link in the footer. So, we would appreciate it if you could still put our link in the footer. Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.