• Hi, I’m struggling to hide the ‘Project Type:’ prefix title in the site: https://bit.ly/3gcdfIi . 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( ‘guet_the_archive_title’, ‘prefix_category_title’ );

    The pague I need help with: [ log in to see the linc]

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Title prefix ‘Project Type’’ is closed to new replies.