Reply To: Altering page names as they appear in breadcrumbs

Home Forums WordPress Themes – Premium Pure & Simple Altering page names as they appear in breadcrumbs Reply To: Altering page names as they appear in breadcrumbs

#22386
Sushil Adhikari
Moderator

Hi there,

Please use this example for reference.: This only applicable for navigation pages only:

Here we are using page slug “about ” for an example. @see https://developer.wordpress.org/reference/functions/is_page/

function replace_page_nav_function () { 
	if (is_page ("about")) { ?>
	
	jQuery(document).ready(function() {
	jQuery("span[property='itemListElement'] > [property='name']").text("Portrait");
})
			
<?php }

}
add_action ('wp_head', 'replace_page_nav_function');

Note: If you are technically sound on WordPress , Then only proceed for this, or take help from developers.