Hi finomeno,
a change to the plugin to let customize this settings by filter will be released within the next release.
If you want to try it right now, please change line 124 of wp-content/plugins/yith-woocommerce-brands-add-on/include/class.yith-wcbr.php
from this
'hierarchical' => true,
to this
'hierarchical' => true,
'with_front' => apply_filters( 'yith_wcbr_taxonomy_with_front', false )
Then, please regenerate your permalinks: navigate to WP Dashboard -> Settings -> Permalinks and save your options as they are
I will add this change within next revision, but default value will be true, to avoid permalink braks for all plugin users
Anyway, you can change it simply by adding this code to functions.php file of your theme
add_filter( 'yith_wcbr_taxonomy_with_front', '__return_false' );
Let me know if this helps
Have a nice day 🙂
Hi Yithemes,
Thanks for the suggestion.
The code removed the default post prefix from the slug.
However, I was actually willing to replace it with the default shop prefix automatically. Or have the option in the Pretty Permalinks page to set a slug base for brands.
I was able to modify things now to suit my configuration, but that is a manual hack. Will the next version of your plugin have a ‘base slug’ setting for the pretty permalinks page?
Thank you
Hi again,
Glad to know you worked your problem around
Thanks for your suggestion! We will consider to add this feature in a future update
Marking this as solved
Have a nice day
Currently i was replace the slug base from product-brands to brands on every update.
Hope help
It is does not work
everything disappears on my site.
I could redo only from backup.
Mr. W
(@gabriel-winnberg)
Hello,
This does remove the permalink base, but the brand page renders 404. If I manually add the posts base slug to the URL the brand page appears again.
I have regenerated permalinks. Could it be related to that I’m running Nginx?
Mr. W
(@gabriel-winnberg)
When editing a brand and opening screen options I see an error:
Notice: Undefined index: cb in /var/www/dev.konsttorget.se/wp-content/plugins/yith-woocommerce-brands-add-on/includes/class.yith-wcbr-admin.php on line 182
Backup and then try as following:
Please change line 123-125 of wp-content/plugins/yith-woocommerce-brands-add-on/include/class.yith-wcbr.php
'slug' => apply_filters( 'yith_wcbr_taxonomy_rewrite', 'xxxxx' ),
'hierarchical' => true,
'with_front' => apply_filters( 'yith_wcbr_taxonomy_with_front', true )
***change the xxxxx to anything you like.
Change again every update.
-
This reply was modified 9 years, 5 months ago by
Watch Teller.
-
This reply was modified 9 years, 5 months ago by
Watch Teller.
-
This reply was modified 9 years, 5 months ago by
Watch Teller.