any edits to function.php breaks site
-
I’m trying to use this code:
add_filter('tc_credits_display', 'my_custom_credits', 20); function my_custom_credits(){ $credits = ''; $newline_credits = ''; return ' <div class="span6 credits"> <p> · © '.esc_attr( date( 'Y' ) ).' <a href="'.esc_url( home_url() ).'" title="'.esc_attr(get_bloginfo()).'" rel="bookmark">'.esc_attr(get_bloginfo()).'</a> · '.($credits ? $credits : 'Designed by <a href="https://www.presscustomizr.com/">Press Customizr</a>').' ·'.($newline_credits ? '<br />· '.$newline_credits.' ·' : '').'</p> </div>';
Any time I do, it brakes the website and I have to restore the functions.php from a backup. I am using a child theme as instructed on this page: https://presscustomizr.com/snippet/altering-adding-footer-credits/
Why does this keep happening?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘any edits to function.php breaks site’ is closed to new replies.