Hi Mista, this is incorrect,
I am using Rank Math breadcrumbs not woocommerce breadcrumbs.
I have switched from the7 theme breadcrumbs to use Rank Math's breadcrumbs.
I want to change the Rank Math generated base url in the breadcrumbs (Homepage Link). This needs to point to the Base of the woocommerce shop.
How do we achieve this?
The Woocommerce link change code is this:
/**
* Replace the home link URL
*/
add_filter( 'woocommerce_breadcrumb_home_url', 'woo_custom_breadrumb_home_url' );
function woo_custom_breadrumb_home_url() {
return 'http://woocommerce.com';
}
How do we do this for Rank Math's home url?
I want "Home" set in Rank math breadcrumb code to point to 'https://captainvapour.co.nz/store/'
Thanks,
Jon
Findings for others using the7 theme:
On a side note for anyone using the7 theme, their kind support advised on the correct approach to make Rank Math breadcrumbs work in the7 theme. This is placed in the child's functions.php file: function presscore_get_breadcrumbs(){if(function_exists('rank_math_the_breadcrumbs')){rank_math_the_breadcrumbs();}}
We still have an issue to rule out, as Rank Math breadcrumbs are appearing above the header, when its expected to be within the header. **Image shows where it needs to be. I'll update when they get back.
@Rank Math. I trust this is a theme issue?