• Hello, how can I hide “categories :” on the pages header ?

    I’d just want to read there the name of the category.

    Thans for yout help !

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    As I understand it you want to disable links from certain categories,
    if this is so

    http://prntscr.com/qk7bwq

    Go to: appearance> menus> open the menu you want to unlink> click remove link

    Hi @djano

    You can add this code to the file functions.php in the child theme folder to remove the prefix Category: and Tags:

    add_filter( 'get_the_archive_title', function( $title ) {
    	if ( is_category() ) {
    		$title = single_cat_title( '', false );
    	} elseif ( is_tag() ) {
    		$title = single_tag_title( '', false );
    	}
    	return $title;
    });

    Follow this guide to know how to install and activate the child theme then copy the customizer settings from the main theme to the child theme
    https://docs.famethemes.com/article/139-sample-child-theme

    Regards.

    • This reply was modified 6 years, 5 months ago by longnguyen.
    anjoze

    (@anjoze)

    @longnguyen Thank you very much. It works 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Hide “categories :”’ is closed to new replies.