Possible conflict with other plugins

6.89K viewsIssues
1

Hi,

I picked up an error with one of installed plugins, so I sent them a support request and they replied with the below suggestion;

their replied:

I have found the issue. It is coming from the plugin AnsPress. the plugin does enquire its css all over the admin and not only on the settings page of the plugin.

The plugin set the from many jQuery plugins used class .tab-content to max-width: 700px;. If I remove the css in the browser inspector all looks like it should. You should definitely inform the author of the AnsPress plugin and ask him to only load css and js if needed.

It will make issues again and again if the css and js is loaded global with many other plugins and often you will not know where the issue is coming from.

You can advise the plugin developer, he should hook his code into admin_enqueue_scripts and use the variable $hook_suffix to check if its the plugin settings page.

I am not sure whether he is 100% right, but I thought it is worthwhile to share this piece of information with you and hoping you can look into this matter and verify it from your end, then help me to resolve it, thanks.

NB. I have physcially disabled ANS plugin and then the conflicted plugin works perfect, just for your reference.

Regards,

0

Hello,

This cannot be solved this moment. We will update you in future about this issue.

As Rahul said, some 3rd party plugin will break if we enqueue assets only in AnsPress page, even AnsPress widget will not work properly in other pages.

So there is no workaround at the moment. But this does not mean we closed the issue.

Thanks for reporting.

0

Yes I am aware of it, Now AnsPress assets is loaded everywhere. As some other plugin require AnsPress assets in admin and frontend.

This will be fixed and I will provide a hook to load AnsPress assets whenever 3rd party need.

Hi, Rahul
Thank you! 🙂 Looking forward to the next update with prompt solution soon!!

1

I found the same issues as said before.

Can you post a picture of your conflict, maybe I will be able to fix it as I did for mine.

Azman

@Azman
Excuse me, but this (and many of your answers) is a comment not an ANSWER! This is not good…
I visit The guestion to read your answer, but nothing…. 🙁
Excuse me..