[Theme: Attitude] HELP! White screen of death after adding 2 simple functions.
-
Hello Everyone! I spent many days to find out why I had a white screen of death after putting these 2 functions on my child theme. My theme folder has a .css file and a functions.php file with these 2 functions.
I am sure it should be very easy to solve for some experts here!
<?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] Designed by: Grizzie Tech'.'</div><!-- .copyright -->'; echo do_shortcode( $output ); } ?>
Once I put these 2 functions in, the white screen appears when I try to do something in my admin panel (e.g.: adding plugin, adding photos, etc.) Please could anyone help me! Many thanks in advance.
Gordon
[Please stop bumping]
- The topic ‘[Theme: Attitude] HELP! White screen of death after adding 2 simple functions.’ is closed to new replies.