Can we request the Custom CSS to be just insert the code of,
Copyright ? 2014 Child’s Place LLP All Rights Reserved.
That’s not possible with CSS. We need to use PHP for that. Please put this into the bottom of your functions.php of your child theme:
<?php
// Remove default footer text
add_action( 'init', 'remove_fn_init' );
function remove_fn_init() {
remove_action( 'attitude_footer', 'attitude_footer_info', 30 );
}
// Add custom copyright text
add_action( 'attitude_footer', 'attitude_footer_custom', 30 );
function attitude_footer_custom() {
$output = '<div class="copyright">'.'Copyright ? [the-year] [site-link] All Rights Reserved. '.'</div><!-- .copyright -->';
echo do_shortcode( $output );
}
?>
The reason I need to wrap the remove_action around an ‘init’ hook is to ensure that it doesn’t fire before the original function is actually added to the hook.
Will it affect WordPress Attitude Theme after updated?
The codes for the footer is in footer-extensions.php; you can find it in
/wp-content/themes/attitude/library/structure/footer-extensions.php.
If you apply the child theme properly, it should work after updates . .. until the author decide to change something about it. (For example, one day the theme author could decide to change the $priority just for the fun of it.)
In which case you would need to take a look at the footer-extensions.php file of the parent theme and see what has changed. The base code is already there; adapting to minor changes like tag, name, or priority is a simple 30-second deal. I wouldn’t worry too much.