Home Page › Forums › Porto | Multi-Purpose & WooCommerce Theme › Product tag breadcrumb issue › Reply To: Product tag breadcrumb issue
April 21, 2023 at 1:45 pm
#883
Hello.
I am a contributor of Porto WordPress Theme.
Please add a new function(porto_custom_breadcrumb) to the apply_filter hook – ‘porto_breadcrumbs’.
Next, you should copy the content of the porto_breadcrumbs function to porto_custom_breadcrumb function and edit the code you want to override.
Please try the below code.
add_filter( 'porto_breadcrumbs', 'porto_custom_breadcrumb' );
function porto_custom_breadcrumb( $output ) {
/** Code of Porto_breadcrumbs function **/
$output .= sprintf( "<li>" . esc_html__( "Product Tag", "porto" ) . " - %s</li>", $html );=>
$output .= sprintf( "<li>" . esc_html__( "Product Tag", "porto" ) . '%s'</li>', $html );
/** Code of Porto_breadcrumbs function **/
return $output;
}
-
This reply was modified 1 month, 1 week ago by
Lodrigo Jan.
-
This reply was modified 1 month, 1 week ago by
Lodrigo Jan.
-
This reply was modified 1 month, 1 week ago by
Alex.
-
This reply was modified 1 month, 1 week ago by
Alex.
-
This reply was modified 1 month, 1 week ago by
Alex.