Oo笑容太甜oO/

hestia、fagri主题去掉hestia版权标记


查看footer.php

<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the "wrapper" div and all content after.
 *
 * @package Hestia
 * @since Hestia 1.0
 */
?>
      <?php do_action( 'hestia_do_footer' ); ?>
    </div>
  </div>
<?php wp_footer(); ?>
</body>
</html>

找到 hestia\inc\views\main\class-hestia-footer.php,改掉下面代码

public function bottom_footer_content() {
    $hestia_general_credits = get_theme_mod(
      'hestia_general_credits',
      sprintf(
        /* translators: %1$s is Theme Name, %2$s is WordPress */
        esc_html__( '%1$s | Powered by %2$s', 'hestia' ),
        sprintf(
          /* translators: %s is Theme name */
          '<a href="https://themeisle.com/themes/hestia/" target="_blank" rel="nofollow">%s</a>',
          esc_html__( 'Hestia', 'hestia' )
        ),
        /* translators: %1$s is URL, %2$s is WordPress */
        sprintf(
          '<a href="%1$s" rel="nofollow">%2$s</a>',
          esc_url( __( 'http://wordpress.org', 'hestia' ) ),
          esc_html__( 'WordPress', 'hestia' )
        )
      )
    );