Astra_Ext_Advanced_Headers_Markup::archive_title( string $title )

Remove Prefix : from Archive title


Description


Parameters

$title

(string) (Required) Default title.


Return

(string) $title updated title.


Source

File: addons/advanced-headers/classes/class-astra-ext-advanced-headers-markup.php

		public function archive_title( $title ) {

			if ( is_category() ) {
				$title = single_cat_title( '', false );
			} elseif ( is_tag() ) {
				$title = single_tag_title( '', false );
			} elseif ( is_author() ) {
				$title = '<span class="vcard">' . get_the_author() . '</span>';
			} elseif ( is_tax() ) {
				$title = single_term_title( '', false );
			}

			return $title;
		}

User Contributed Notes

You must log in before being able to contribute a note or feedback.