Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dFactory

    (@dfactory)

    You should address this problem to the Youtube for WordPress plugin author.

    The issue is most probably related to adding unnecessery javascript code to other pages.

    Thread Starter jsber

    (@jsber)

    Strange, because my other custom time fields don’t get a date picker but still use the time picker (though the layout changes after activating this other plugin)

    And I noted I have a few other plugins who change the layout of the date/time/color picker. I’m somewhat new to this level of development. How should one prevent this from happening (as a developer)?

    Plugin Author dFactory

    (@dfactory)

    Developers should enqueue their scripts and styles only on pages (admin and frontend) where it is required.

    For example, when dev builds a settings page for their plugin, the javascript required to make it work should be enqueued on THAT specific settings page only. Otherwise it may affect other pages, plugins, theme features, resulting in code conflicts, style and layout changes etc., which should not happen.

    Events Maker has javascript code added to events admin pages (like events list, single edit event post screen and settings) but this is not added to post, page or not EM related custom post type edit screens.

    Unfortunatelly, it is a very common practice (bad coding practice) to add it everywhere just like that.

    We try hard not to do that in our plugins.

    Regards,
    Bartosz / dfactory team

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘plugin conflict with "YouTube for WordPress"-plugin’ is closed to new replies.