Hide quotation marks on posts by "author" on breadcrumbs

Can you help me remove the quotation marks around the posts by “author” on the breadcrumbs?

As in Posts by “Prof”: https://www.food280.com/author/admin/

I’d like it to read simply Posts by Prof

site: https://www.food280.com

X version: 6.5.6

wordpress version: 5.2.3

If this can’t be done via CSS, I can work on a child theme.

Thanks for your help.

Hello Steve,

Thanks for writing in!

Because what you are trying to accomplish requires a template customization, we would highly to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released.

After the child theme is set up, please add the following code in your child theme’s functions.php file

// Remove Author Quotes
// =============================================================================
function remove_author_quotes($crumbs, $args){

    $crumbs[1] = array(
        'type'  => 'author',
        'url'   => get_author_posts_url( $author ),
        'label' => __( 'Posts by ', '__x__' ) . '' . get_the_author() . '',
    );
   
   
   return $crumbs;
}
add_filter('x_breadcrumbs_data', 'remove_author_quotes', 10, 2);
// =============================================================================

We would love to know if this has worked for you. Thank you.

That worked perfectly. Thanks very much!

You’re welcome!
Thanks for letting us know that it has worked for you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.