[resolved] Should add_filter be in footer.php or style.css? (3 posts)

  1. kennethlim
    Posted 2 years ago #

    Thanks for your help with the footer change info. Should the code be added to the style.css or footer.php? I tried to add it to the footer.php in the child theme but ended up with a fatal error. Any advice would be appreciated!

    Hey there! Here's some code you can use in a child theme or a plugin to change the theme footer:

    add_filter( 'expound_credits_text', 'my_credits_text' );
    function my_credits_text( $text ) {
    return 'My custom footer text.';

  2. kennethlim
    Posted 2 years ago #

    I figured it out.
    I added the codes to the footer.php file in the child theme.

  3. Konstantin Kovshenin
    Theme Author

    Posted 2 years ago #

    That's a wrong decision. As the message says, you should put that code in a child theme or a plugin, not your footer.php file. You can learn more about child themes here: http://codex.wordpress.org/Child_Themes

    Good luck!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic


No tags yet.