Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #339648

    Hello,
    when you go on a category archive page, you get a title like this: “Archive for category: name of the category”

    Is there any way to hide the first part and just display the category name?
    Or is there any way to change the style of the first part to make it smaller than the category name?

    Thanks for your help.
    Best,
    David
    My website: http://www.homelink.fr/wp/

    ps: The blog will exist only in French, so let me suggest you to improve the translation. A better translation for “Archive for category” would be “Archives de la catégorie :” instead of instead of the existing “Archive pour la catégorie :”

    #339911

    Hey CAUM!

    Thank you for using Enfold.

    You can remove the first part of the title with this:

    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;
    }

    Regards,
    Ismael

    #340027

    Hi,

    Thanks for it, it’s perfect!
    Best,
    David

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘category archive page: change the title’ is closed to new replies.