I have a multilingual site setup: www.jeroenbrugman.com
The main dutch version uses Fluxus. On the artwork page I output a link using this from Functions.php
function prefix_term_name($terms, $post_id, $taxonomy ) {
foreach ($terms as &$term) {
$term->name = 'Terug naar '.$term->name;
}
}
return $terms;
And on the page itself I show it using this:
<h3 class="widget-title">
<?php
add_filter( 'get_the_terms','prefix_term_name',10,3);
the_terms($post->ID, 'fluxus-project-type');
remove_filter( 'get_the_terms','prefix_term_name',10,3); ?>
<a href="../"><?php the_terms($post->ID, 'fluxus-project-type'); ?></a></h3>
But, on my English page. I need to output the 'Terug naar' from the main theme function.php as: 'Back To'. but when I copy the code from main functions.php to my child theme's functions.php and change Terug naar to Back to the whole english site goes blank.
What am I doing wrong?
Kind regards