Thanks acub, have followed that completely. What I had forgotten to do was add <?php and ?> tags, hence the gibberish.
When I upload this in the functions.php in the child theme, I get the following error message.
Parse error: syntax error, unexpected T_FUNCTION, expecting T_STRING in /home/barrycum/public_html/sites/serw.co.uk/wp-content/themes/customizr-child/functions.php on line 10
Here’s what I’m uploading, the only changes is the hello and test entries. Not sure what I’m doing wrong.
[ Moderator note: please wrap code in backticks or use the code button. Do not use blockquote. ]
<?php
add_filter('tc_credits_display', 'my_custom_credits');
function my_custom_credits(){
$credits = 'hello';
$newline_credits = 'Test';
return '
<div class="span4 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.themesandco.com/">Themes & Co</a>').' ·'.($newline_credits ? '· '.$newline_credits.' ·' : '').'</p>????????</div>';
}
?>