|
/ Documentation /Developers/ Remove Shop Item Link on Product Page

Remove Shop Item Link on Product Page

Schema Pro allows you to Remove Shop link item from BreadcrumbList schema type.

You will need to use wp_schema_pro_link_to_frontpage filter to be able to Remove shop link item.

Example: Add the following code to your functions.php file.

add_filter( 'wp_schema_pro_link_to_specificpage', 'my_function', 10, 3 );
function my_function( $bool, $post_type, $page_title) {
  if( $post_type == 'product' ){
     return false;
  }
}

Here is how the Shop link item will be removed after you add the above code to your functions.php file.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Scroll to Top