Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @talb,

    Not easily, unfortunately. The archive prefixes are not wrapped in any elements currently, so they can’t easily be removed with CSS without also removing the rest of the title. I’ll take a look at adding those wrapping elements in a future update.

    — Anders

    Thread Starter talb

    (@talb)

    Thank you, that would be great!

    This is possible with a filter regardless of theme:

    <?php
    add_filter( 'get_the_archive_title', 'wp12695037_archive_title' );
    function wp12695037_archive_title( $title ) {
    
    	// Strip words with colons at the start like "Archive:"
    	$title = preg_replace('/^\w+: /', '', $title);
    
    	return $title;
    
    }

    And now there’s a new option in WordPress 5.5:

    To completely remove the archive title prefix, use:

    add_filter( 'get_the_archive_title_prefix', '__return_empty_string' );

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hiding the word “Tag” from title’ is closed to new replies.