Tagged: custom taxonomy
Hello
I’ve created a custom taxonomy archive page in enfold child theme: taxonomy-type_media.php
For now it’s the same title for all taxonomies “Archives for:”.
But in my template, I would like to change the main title. (H1 class=”main-title entry-title”)
For exemple, I would like to have : “Media type : ” in place of “Archives for:”
Where can I find this ?
Thanks !
Hey romano2,
Thank you for using Enfold.
Use the avf_which_archive_output filter. Something like this should work for that custom taxonomy:
add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3);
function avf_change_which_archive($output)
{
if(is_tax('type_media')) {
$output = 'Media type : ' . single_term_title("", false);
}
return $output;
}
Best regards,
Ismael
It’s beautiful, it works great !
Many thanks !!!