'Change the footer in WordPress
How can I edit the footer in WordPress version 5.3.1?
footer.php:
do_action('creativ_musicial_action_before_footer' );
/**
* Hooked - creativ_musician_footer_top_section -10
* Hooked - creativ_musician_footer_section -20
*/
do_action( 'creativ_musician_action_footer' );
/**
* Hooked - creativ_musician_footer_end.
*/
do_action( 'creativ_musician_action_after_footer' );
<p>Test</p>
wp_footer(); ?>
</body>
</html>
I can not change the footer text in the GUI. This is the footer:
Which php file is the right one, and how can I change it?
Solution 1:[1]
You need to delete, or comment out, the line calling the function, creativ_musician_action_footer.
/* do_action( 'creativ_musician_action_footer' ); */
Optionally, you can add your own HTML in its place, if you want to add a custom footer of your own.
OR
You can open the functions.php and edit the function creativ_musician_action_footer so it has the text that you want.
However, neither of those are a great solution, because when you update the theme, your changes may be lost.
Instead, you should create a child theme and edit a copy of the footer file from your child's theme folder. By doing this your changes will be resilient through updates. There are plenty of tutorials on child themes, and it's fairly easy to do.
Here is the WordPress codex on child themes.
Essentially, in your child-theme folder, you'll create a new style.css, and a new functions.php, and copy over the orig footer.php file. Your child footer.php will override the version in the orig/parent's theme folder, so you need to copy the orig footer.php to your new child theme folder, then edit this copy to meet your needs. You'll probably also want to copy over the orig theme screenshot, or create a new one.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |


