Title prefix ‘Project Type’
-
Hi, I’m struggling to hide the ‘Project Type:’ prefix title in the site: https://bit.ly/3gkdfIi. I searched many forums and was able to create a child theme and add a custom functions.php to it. With an example code below, I was also able to hide the prefix for normal ‘posts’ but not for the Portfolio ‘project types’ which I’m using. This is the code for hiding post prefixes:
function prefix_category_title( $title ) {
if ( is_category() ) {
$title = wp_title( ”, false );
}
return $title;
}
add_filter( ‘get_the_archive_title’, ‘prefix_category_title’ );The page I need help with: [log in to see the link]
The topic ‘Title prefix ‘Project Type’’ is closed to new replies.
