类别页面空白,但商店适用于 WordPress 上的 WooCommerce
Category pages blank, but shop works on WooCommerce on WordPress
不知道什么时候,类别页面停止显示页面 header/footer 以外的任何内容。这不仅适用于一个类别,还适用于所有类别和子类别。
主要商店页面和产品显示良好。例如,这是一个产品页面。
https://thesmartspacer.com/product/conference/
但是,当您单击面包屑路径中的其中一个类别时,您会看到一个空白页面。
同样,如果您点击以下任何类别:
https://thesmartspacer.com/product-category/
什么都没有出现 — 空白页(header/footer 除外)。
即使类别中只有产品(例如,没有子类别),结果相同:
https://thesmartspacer.com/product-category/uses-and-applications/banquet-and-events/
我试过禁用所有在最近历史上任何时候添加的插件……或者我怀疑可能会影响类别的插件,包括 Yoast 和 Yoast Premium。但是,页面类别和子类别页面仍然是空白。
想法?我只是感到困惑,如果我无法解决这个问题,我将需要清理网站的类别以使其正常运行……这太过分了,我不想去那里。
求助!
谢谢!
尼尔
您的站点显示以下错误
thesmartspacer.com/:426 GET https://thesmartspacer.com/wp-content/themes/Divi/core/admin/fonts/modules.woff net::ERR_ABORTED 404(未找到)
检查为什么 link 不工作
thesmartspacer.com/:426 获取 https://thesmartspacer.com/wp-content/themes/Divi/core/admin/fonts/modules.woff
或
尝试以下解决方案,它在 divi 主题上
参考:https://divi.help/threads/ttf-module-is-slowing-down-the-page.3062/
让其他人从我花了好几天才弄清楚的答案中受益...
此答案仅适用于展示的产品,不适用于类别和子类别。
我们从优雅的主题中发现主题模板已经更改(我相信默认情况下被全局覆盖),并且需要有一个特定的 WooCommerce 类别模板,该模板没有为模板定义正文。
以便为其他人记录此内容,请参阅:
When using divi with theme templates, and WooCommerce, you must have a specific cateogry template with an empty body
如果您为主题使用模板,WooCommerce 将不会显示类别,除非为 WooCommerce 类别页面设置了一个特定的模板来删除正文。
不知道什么时候,类别页面停止显示页面 header/footer 以外的任何内容。这不仅适用于一个类别,还适用于所有类别和子类别。
主要商店页面和产品显示良好。例如,这是一个产品页面。 https://thesmartspacer.com/product/conference/
但是,当您单击面包屑路径中的其中一个类别时,您会看到一个空白页面。
同样,如果您点击以下任何类别: https://thesmartspacer.com/product-category/ 什么都没有出现 — 空白页(header/footer 除外)。
即使类别中只有产品(例如,没有子类别),结果相同: https://thesmartspacer.com/product-category/uses-and-applications/banquet-and-events/
我试过禁用所有在最近历史上任何时候添加的插件……或者我怀疑可能会影响类别的插件,包括 Yoast 和 Yoast Premium。但是,页面类别和子类别页面仍然是空白。
想法?我只是感到困惑,如果我无法解决这个问题,我将需要清理网站的类别以使其正常运行……这太过分了,我不想去那里。
求助!
谢谢! 尼尔
您的站点显示以下错误
thesmartspacer.com/:426 GET https://thesmartspacer.com/wp-content/themes/Divi/core/admin/fonts/modules.woff net::ERR_ABORTED 404(未找到)
检查为什么 link 不工作 thesmartspacer.com/:426 获取 https://thesmartspacer.com/wp-content/themes/Divi/core/admin/fonts/modules.woff
或
尝试以下解决方案,它在 divi 主题上 参考:https://divi.help/threads/ttf-module-is-slowing-down-the-page.3062/
让其他人从我花了好几天才弄清楚的答案中受益...
此答案仅适用于展示的产品,不适用于类别和子类别。
我们从优雅的主题中发现主题模板已经更改(我相信默认情况下被全局覆盖),并且需要有一个特定的 WooCommerce 类别模板,该模板没有为模板定义正文。
以便为其他人记录此内容,请参阅:
When using divi with theme templates, and WooCommerce, you must have a specific cateogry template with an empty body
如果您为主题使用模板,WooCommerce 将不会显示类别,除非为 WooCommerce 类别页面设置了一个特定的模板来删除正文。