• Hi all,

    I’m in the midst of building a wordpress site for a client, and have decided to do it properly and put some extra hours into creating a decent parent theme that we ca use in other projects in the future. It’s mostly CSS for now (960gs and the Meyer reset) but I’m thinking about putting some generic code in the functions.php of the parent theme as well; stuff that we’ll want to use on a regular basis.

    One of the things I’d like to have in the parent functions.php is the admin_footer_text-filter which I’ll use to inject the company’s name in the admin-footer. Problem is; I can’t get it to work when putting it in the parent theme; when I put the code in the child-theme’s functions.php-file it works like a charm, but WP wont’ even read it when I try to use it in the parent theme (no error messages, no nothing, it just outputs the regular “thanks for using WordPress etc..” text).

    Should’t this work? I don’t user the filter in the child-theme so there can’t be any conflicts where they somehow take each other out, and the code works when run in the child theme, just not in the parent theme (where I want it to be).

    Any ideas?

    my code:

    // Filter
    add_filter( 'admin_footer_text', 'change_admin_footer_text' );

    function change_admin_footer_text( $default_text ) {
    return '<span id="footer-thankyou">company text | wordpress etc.</span>';
    }

    Thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘admin_footer_text and parent theme functions.php’ is closed to new replies.