- 状态
- 已由作者解决
- 相关插件/主题
- Blocksy
- 主题标签
- Compatibility
问题概述
当使用Blocksy 主题和WPML时,对于已翻译的产品,单个产品页面上的面包屑导航不会显示商店页面层级。
临时解决方法
继续操作前,确保对站点进行完整备份。
- 打开 …/wp-content/themes/blocksy/inc/components/breadcrumbs.php 文件。
- 找到第 416 行。
- 注释掉此行:
/* && strstr($permalinks['product_base'], '/' . $shop_page->post_name)*/