• Resolved lujan82

    (@lujan82)


    I have a problem with inc/structure/footer.php because the changes havent effect, maybe the problem can be the file footer.php root?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    That file can’t be overwritten.

    What change are you trying to make?

    Let me know ??

    Thread Starter lujan82

    (@lujan82)

    i want write all the footer in this file, why can′t be written? why is the best way to do? sorry for my English

    Theme Author Tom

    (@edge22)

    The best way to do it is to write your changes to our supplied hooks. That file has functions in it (it isn’t a template file), so it’s not possible/safe to overwrite it.

    If you’re able to let me know your goal, I should be able to provide some code for you ??

    Thread Starter lujan82

    (@lujan82)

    i am working for wordpress since 6 month only, i dont undestand hooks yet and i want insert the html footer in function generate_add_footer_info(), this way the footer appear in all the pages (page and post).

    Theme Author Tom

    (@edge22)

    Try adding this function:

    add_action( 'generate_credits', function() {
        ?>
    
            Your HTML in here
    
        <?php
    }, 5 );

    And you can add that function in your child theme functions.php file.

    Thread Starter lujan82

    (@lujan82)

    Thanks for your help Tom!!!

    Theme Author Tom

    (@edge22)

    You’re welcome ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘child theme footer.php’ is closed to new replies.