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

    When i set title and breadscumbs in header layout, it’s shown: Archive for category+ title. Now i just want to keep the category title. Pls guide me to do that

    Thanks

    • This topic was modified 9 years, 3 months ago by vemaybayanz.
    #503860

    Hi vemaybayanz!

    Thank you for using Enfold.

    Please add this in the functions.php file:

    add_filter('avf_which_archive_output','avf_change_which_archive', 10, 3);
    function avf_change_which_archive($output)
    {
    	if(is_category()) {
    		$output = single_cat_title('',false);
    	}
    	return $output;
    }

    Cheers!
    Ismael

    #503884

    Perfect!. Thank you very much for your quick support
    Regards,

    #504080

    Hi!

    glad Ismael could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Cheers!
    Andy

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Replace Archive for category with category title only’ is closed to new replies.