• Resolved danskkr

    (@danskkr)


    I’ve been racking my brain trying to remove the ‘Category’ part from the page titles on a theme I built based on underscore_S. So where the page title is ‘Category: News items’ I just want it to say ‘News items’.

    The thing is, I’m sure this used to work but now, when I edit the template-tags.php file and remove the text ‘Category:’ from the code below nothing changes:

    if ( is_category() ) {
    		$title = sprintf( __( 'Category: %s', 'meridian' ), single_cat_title( '', false ) );
    	}

    What am i doing wrong – something must be overriding this file but I have no idea what…

Viewing 1 replies (of 1 total)
  • Thread Starter danskkr

    (@danskkr)

    It appears the reason is that the template-tags.php file is just for backward compatibility – all the functions in it apparently part of the wp core now. Wish they’d left a comment or something in the file about this..!

Viewing 1 replies (of 1 total)

The topic ‘Editing template-tags.php on _S theme’ is closed to new replies.