WordPress.org

Ready to get started?Download WordPress

Forums

Event Organiser
help sidebar is showing up in the wrong places (2 posts)

  1. Kreg Wallace
    Member
    Posted 2 years ago #

    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/

  2. Stephen Harris
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for flagging this Kreg. I shall fix this for the next update :D

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic