xavier_bs (@xavier_bs)

Forum Replies Created

Viewing 1 replies (of 1 total)

  • xavier_bs
    Participant

    @xavier_bs

    add_action( 'private_title_format', 'xbs_hide_second_prefix_title' );
    function xbs_hide_second_prefix_title( $title ) {
       $prefix = str_replace( '%s', '', $title );
       return "<span class=\"private-title\">$prefix</span>%s";
    }

    and in CSS:

    .private-title + .private-title {
        display: none;
    }
Viewing 1 replies (of 1 total)