Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #653011

    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 !

    • This topic was modified 8 years, 5 months ago by romano2.
    #654146

    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

    #654219

    It’s beautiful, it works great !
    Many thanks !!!

    #654610

    Hi!

    Great! Glad it is working. Let us know if you need anything else. :)

    Cheers!
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Title for taxonomy pages’ is closed to new replies.