WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Event Organiser] help sidebar is showing up in the wrong places

[Plugin: Event Organiser] help sidebar is showing up in the wrong places

  • Stephen,

    I noticed you have a help sidebar that shows up on contextual help tabs with a link to your plugin’s documentation. Unfortunately, the sidebar isn’t constrained to display only on your plugin’s screens. Currently it displays on every contextual help tab in the WordPress admin.

    This seems to be because the call to set_help_sidebar() falls outside of your switch statement on /includes/event-organiser-cpt.php. The problem clears up if you change lines 415-418 from this:

    endswitch;
    
    //Add a link to Event Organiser documentation on every page
    $screen->set_help_sidebar( '<p> <strong>'. __('For more information','eventorganiser').'</strong> </p><p>'.sprintf(__('See the <a %s> documentation</a>','eventorganiser'),'target="_blank" href="http://www.harriswebsolutions.co.uk/event-organiser/documentation/"').'</p>' );

    to this:

    //Add a link to Event Organiser documentation on every page
    $screen->set_help_sidebar( '<p> <strong>'. __('For more information','eventorganiser').'</strong> </p><p>'.sprintf(__('See the <a %s> documentation</a>','eventorganiser'),'target="_blank" href="http://www.harriswebsolutions.co.uk/event-organiser/documentation/"').'</p>' );
    
    endswitch;

    http://wordpress.org/extend/plugins/event-organiser/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Event Organiser] help sidebar is showing up in the wrong places’ is closed to new replies.