The default Footer content of the parent theme Hestia is included via Hook hestia_do_bottom_footer_content
. So you can remove them via remove_action
. and add your own content, own function in your child theme.
Source in the parent theme to valid this hook, file hestia\inc\views\main\class-hestia-footer.php
:
/**
* Initialization of the feature.
*/
public function init() {
add_action( 'hestia_do_footer', array( $this, 'the_footer_content' ) );
add_filter( 'wp_nav_menu_args', array( $this, 'modify_footer_menu_classes' ) );
add_action( 'hestia_do_bottom_footer_content', array( $this, 'bottom_footer_content' ) );
}
The content is inside this method:
/**
* Function to display footer copyright and footer menu.
* Also used as callback for selective refresh.
*/
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' )
)
)
);
wp_nav_menu(
array(
'theme_location' => 'footer',
'depth' => 1,
'container' => 'ul',
'menu_class' => 'footer-menu',
)
);
?>
<?php if ( ! empty( $hestia_general_credits ) || is_customize_preview() ) : ?>
<div class="copyright <?php echo esc_attr( $this->add_footer_copyright_alignment_class() ); ?>">
<?php echo wp_kses_post( $hestia_general_credits ); ?>
</div>
<?php
endif;
}