Replace footer in a child theme
-
Hi,
I’am currently trying to change the footer text.
I read this forum topic but I don’t want to lose my custom text at every theme update so I tried to do it in a child theme.
I tried to add this code in my child theme’s functions.php:
<?php /** ** activation theme **/ add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } /** * Footer credits */ /* function oblique_footer_credits() { echo 'My custom text'; } add_action( 'oblique_footer', 'oblique_footer_credits' ); */ ?>
But it breaks the entire site because the parent theme already declares oblique_footer_credits().
Could you please help?
Thanks
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Replace footer in a child theme’ is closed to new replies.