修改wp主题的版权信息

找到对应主题下得该目录文件(可能不同主题不一样的配置)

/inc/structure/footer.php

if ( ! function_exists( 'generate_add_footer_info' ) ) {
        add_action( 'generate_credits', 'generate_add_footer_info' );
        /**
         * Add the copyright to the footer
         *
         * @since 0.1
         */
        function generate_add_footer_info() {
                $copyright = sprintf( '<span class="copyright">&copy; %1$s %2$s</span> &bull; %4$s <a href="%3$s" itemprop="url">%5$s</a>',
                        date( 'Y' ),
                        get_bloginfo( 'name' ),
                        esc_url( 'http://www.laihp.top' ),
                        _x( 'Powered by', 'ZQ', 'generatepress' ),
                        __( 'ZQ', 'generatepress' )
                );

                echo apply_filters( 'generate_copyright', $copyright ); // WPCS: XSS ok.
        }
}

 

发表评论

1,567 次浏览