admin管理员组文章数量:1395303
I’ve been developping custom themes for not so long, so it is the first time I have a conflict between my theme and a plugin and I'm not really sure how to debug this exactly and fix it.
When my custom theme and Yoast SEO plugin are both activated, there are some issue running the back-end side of my WP (The front-end is totally fine). When I open a page to edit it, and some of my ACF fields appear not filled and I can't click any of the Yoast options to edit them either, clicking does nothing. It also does not seem to let me show/hide the sections of the post edit page.
Even when I go in the Yoast SEO settings, I can't edit theme in this situation.
I’ve troubleshoot all plugins with Troubleshoot Mode from the Health Check plugin and tried different themes and my error only occurs when my custom theme (child theme of “blankslate theme”) is activated and that Yoast SEO is activated too.
I’m not sure how to debug this, I’d like help to figure out which steps I should take to debug my theme.
Running PHP 7.1 on an apache server.
WP 5.3.2 and all plugins are updated to last versions.
Plugins currently installed:
- ACF Pro
- ACF: Image Crop Add-on
- Classic Editor
- Health Check & Troubleshooting
- reSmush.it Image Optimizer
- UpdraftPlus
- WP Fastest Cache
- Yoast SEO
The theme is one I developped using a child theme from "BlankSlate" theme as parent.
Image of Javascript errors reported on the console
I’ve been developping custom themes for not so long, so it is the first time I have a conflict between my theme and a plugin and I'm not really sure how to debug this exactly and fix it.
When my custom theme and Yoast SEO plugin are both activated, there are some issue running the back-end side of my WP (The front-end is totally fine). When I open a page to edit it, and some of my ACF fields appear not filled and I can't click any of the Yoast options to edit them either, clicking does nothing. It also does not seem to let me show/hide the sections of the post edit page.
Even when I go in the Yoast SEO settings, I can't edit theme in this situation.
I’ve troubleshoot all plugins with Troubleshoot Mode from the Health Check plugin and tried different themes and my error only occurs when my custom theme (child theme of “blankslate theme”) is activated and that Yoast SEO is activated too.
I’m not sure how to debug this, I’d like help to figure out which steps I should take to debug my theme.
Running PHP 7.1 on an apache server.
WP 5.3.2 and all plugins are updated to last versions.
Plugins currently installed:
- ACF Pro
- ACF: Image Crop Add-on
- Classic Editor
- Health Check & Troubleshooting
- reSmush.it Image Optimizer
- UpdraftPlus
- WP Fastest Cache
- Yoast SEO
The theme is one I developped using a child theme from "BlankSlate" theme as parent.
Image of Javascript errors reported on the console
Share Improve this question edited Mar 5, 2020 at 20:18 commparlimage1 asked Mar 5, 2020 at 20:04 commparlimage1commparlimage1 13 bronze badges 4- Can you clarify the exact problem? The background info is helpful, explaining how you determined which plugin was causing the conflict with your theme, but the problem you are attempting to solve is not clear. – jdm2112 Commented Mar 5, 2020 at 21:03
- Like I said, the back-end is not running well. When I open the "Search Appearance" page from Yoast SEO, all the settings are not clickable. They're not grayed-out, its just that nothing is happening. And I'm using ACF Pro to make some custom fields, and it appears to be altering the well-being of this plugin too by making some text not appear in those fields + some tabs not appearing. (Tabs created by ACF) And these little arrows (ibb.co/9hr4fvB) are not working either, making me suspect something not working. I re-installed the WP core as well as the Yoast plugin. No success – commparlimage1 Commented Mar 5, 2020 at 21:19
- 1 Sounds like JS conflicts. Have you examined the console to verify problems there? Scanning the web it appears there is a history of Yoast and ACF conflicts. – jdm2112 Commented Mar 5, 2020 at 21:30
- Yes, I provided a screenshot of the console errors. – commparlimage1 Commented Mar 6, 2020 at 13:02
1 Answer
Reset to default 0Found my problem, was actually not even a plugin conflict but an optimisation operation that had broke the plugins!
I added a couple days ago a script in functions.php that would "defer" all the scripts, which made important scripts being loaded after they were being executed.
Thanks for the help.
本文标签: customizationConflict between Yoast SEO and my custom theme
版权声明:本文标题:customization - Conflict between Yoast SEO and my custom theme 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744690747a2619979.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论