woomad
Forum Replies Created
-
Thank you for replying. However, what I needed to find out was the steps of porting to your plugin from old one. For an example, do I install yours when my old one was active? then what other steps are needed for a smooth transfer without me re entering al the data again. Thanks.
Forum: Plugins
In reply to: [Weight Based Shipping for WooCommerce] Free shippingThanks. It worked.
Hi @devnihil Thank you for your feed back. I am running the latest wordpress. In fact all my plugins are up to date. I have also tried it with storefront theme as well just to rule out my current theme. I have also checked for conflicts and errors. What is interesting is that when I view the page source the shop link isn’t there on the bread crumbs source code and it is only visible on the page.
I have tried the following code to eliminate the last one title on the bread crumb, so it works
/*
* Remove the last breadcrumb, the post title, from the Yoast SEO breadcrumbs
* Previous breadcrumb will remain linked
* Credit: David @ https://generatepress.com/forums/topic/how-to-hide-the-title-part-in-the-breadcrumb-im-using-yoast-seo/#post-614239
* Last Tested: Apr 11 2020 using Yoast SEO 13.4.1 on WordPress 5.4
*/add_filter(‘wpseo_breadcrumb_single_link’, ‘remove_breadcrumb_title’ );
function remove_breadcrumb_title( $link_output) {
if(strpos( $link_output, ‘breadcrumb_last’ ) !== false ) {
$link_output = ”;
}
return $link_output;
}As I said before this only started happening after the ver 14 update and not before
Thanks
Hi @jeroenrotty
Thank you for your reply.
My permalinks are set up as a custom one like this
/product/
and it was always like this.
I have the same setup on my live site and is running yoast Version 12.7.1 and the above code I mentioned works fine and takes off the products text in breadcrumbs with the link to shop page fine.
However, with the 14.2 on my staging site I noticed that the text in breadcrumbs is changed to all products and still link to shop page. Which is strange? as nothing else has changed. I modified the above code to all products instead of products to test. But it hasn’t worked either.
Thanks
Is there any way I can remove the post title just like above and also remove the All products text which is linking to shop now.
Right now mine looks like this
Home>All products > category1>category2>itemHowever, I want it to look like this
eg: Home> category1 > category 2
It worked before with the older yoast versions with the following code
/*
* Remove a link from the Yoast SEO breadcrumbs
* Credit: https://timersys.com/remove-link-yoast-breadcrumbs/
* Last Tested: Mar 12 2017 using Yoast SEO 4.4 on WordPress 4.7.3
*/add_filter( ‘wpseo_breadcrumb_single_link’ ,’wpseo_remove_breadcrumb_link’, 10 ,2);
function wpseo_remove_breadcrumb_link( $link_output , $link ){
$text_to_remove = ‘Products’;if( $link[‘text’] == $text_to_remove ) {
$link_output = ”;
}return $link_output;
}But now it stopped working even when I tried to change the text to All products from products.
Thanks
I did the same thing to the code. However, what puzzles me is that according to the author this plugin doesn’t support contact form 7 anymore, so what is the need for this piece of code in the plugin?
It is fixed now it was an issue with the theme file where they had a duplicate line of code.
I am on the very latest ver for Woocommerce as well.
I am on the latest 2.4 ver already.