WordPress.org

Ready to get started?Download WordPress

Forums

Oenology
[resolved] wp footer info (3 posts)

  1. jknetdesign
    Member
    Posted 1 year ago #

    Is there an option to remove the WordPress info in the footer, or should I just remove the code.

    http://growersice.com

  2. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 1 year ago #

    There is no Theme option exposed, but it is filterable.

    Look in functions/hooks.php, line 1051, at function oenology_hook_site_footer().

    This hook is an array:

    array(
        'copyright',
        'wordpress',
        'themecredit'
    )

    The WordPress text is in the wordpress key, so to remove it, you can simply add a filter:

    function jknetdesign_remove_wordpress_footer_text( $footer ) {
       unset( $footer['wordpress'] );
       return $footer;
    }
    add_filter( 'oenology_hook_site_footer', 'jknetdesign_remove_wordpress_footer_text' );

    If you don't want to put this filter in a Child Theme, you don't have to. You can put it in a site functionality Plugin just as easily.

  3. jknetdesign
    Member
    Posted 1 year ago #

    Good advice.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic