Remove footer credit
-
I have searched the forums on how to change the footer credit to just the year and my site name. I came up with having to create a child theme and entering code into it. I have done that and the code looks like this
/* Theme Name: attitude child theme Theme URI: https://example.com/twenty-fourteen-child/ Description: attitude Author: John Doe Author URI: https://example.com Template: attitude Version: 1.0.0 Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: attitude */ <?php // Remove old copyright text add_action( 'init' , 'mh_remove_copy' , 15 ); function mh_remove_copy() { remove_action( 'attitude_footer', 'attitude_footer_info', 30 ); } // Add my own copyright text add_action( 'attitude_footer' , 'mh_footer_info' , 30 ); function mh_footer_info() { $output = '<div class="copyright">'.'Copyright ? [the-year] [site-link] '.'</div><!-- .copyright -->'; echo do_shortcode( $output ); } @import url("../attitude/style.css"); /* =Theme customization starts here -------------------------------------------------------------- */
It is not working. I activated the child theme and it changed my settings bac to default attitude theme but the footer is the same. What am I doing wrong?
Thanks a lot in advance
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Remove footer credit’ is closed to new replies.