• Hi Folks,
    I want to edit the Footer info and I’ve done some reading on the thread and can’t seem to figure out what I’m doing wrong. I’ve never created a child theme so I suspect it has something to do with this. Let me explain what I’ve done:

    1. Created a directory called: attitude-child in my themes subfolder.
    2. Created a style.css and pasted this in it:

    /*
    Theme Name: Attitude Child Theme
    Author: Self-Help WordPress User
    Template: attitude
    */
    
    @import url("../attitude/style.css");

    3. Created a functions.php and pasted this in it:

    <?php
    
    // Remove old copyright text
    add_action( 'init' , 'mh_remove_copy' , 15 );
    function mh_remove_copy() {
            remove_action( 'attitude_footer', 'attitude_footer_info', 30 );
    }
    
    // Add my own copyright text
    add_action( 'attitude_footer' , 'mh_footer_info' , 30 );
    function mh_footer_info() {
       $output = '<div class="copyright">'.'Copyright ? [the-year] [site-link] Maintained by: <a href="https://www.basicwebdeveloping.com">Basic Web Developing</a> Tel: +44 (0)20 7630 9271 <br />
    Source theme: <a href="https://themehorse.com" target=blank>Theme Horse</a>.'.'</div><!-- .copyright -->';
       echo do_shortcode( $output );
    }

    And then I saved it all. And I see that nothing has changed. I think I’m missing some silly step here but any help on this would be appreciated. You can check out the site at https://www.fredericksagency.com

    Thanks for any help!
    Steve

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Footer Changes – Request’ is closed to new replies.