Skip Navigation

Zendesk Colorbox conflicting with Layouts

Won't fix

Reported for: Toolset Layouts 1.8.10

Topic Tags: Layouts plugin

Symptoms

The issue appears when the Zendesk plugin is activated alongside Layouts. When you try to edit any Layout cell, it appears wrapped in a modal container.

Example of a Layouts cell dialog wrapped in a Colorbox window
Example of a Layouts cell dialog wrapped in a Colorbox window

Workaround

The issue is coming from the Zendesk plugin itself because it does not queue the Colorbox assets correctly. We have contacted Zendesk developers and asked them to modify the code to prevent conflicts with other plugins.

For the time being, to fix this issue please follow these steps:

  1. Go to the line 229 of the ../plugins/zendesk/classes/zendesk-wordpress-admin.php file and change the _admin_print_styles function to

Zendesk Colorbox Workaround
if(!function_exists('remove_compatibility_scripts')){
    function remove_compatibility_scripts(){
    wp_dequeue_style('colorbox');
    wp_deregister_style('colorbox');
  }
}

add_action('admin_print_styles', 'remove_compatibility_scripts', 99);

Leave
a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>