WordPress.org

Ready to get started?Download WordPress

Forums

Bootstrap Admin
[resolved] How are you getting the popover to work? (3 posts)

  1. Adam
    Member
    Posted 1 year ago #

    Cureious question:

    WordPress 3.5
    Your plugin 1.02

    How are you getting the popover to work when you hover? I see your doing trigger hover, when I try to replicate this behavior my popover dissapears when hovering off the targeted element.

    http://wordpress.org/extend/plugins/bootstrap-admin/

  2. Aristeides Stathopoulos
    WPMU DEV Support Staff
    Plugin Author

    Posted 1 year ago #

    Inside the scripts.js file:

    jQuery('#adminmenu li.wp-not-current-submenu.wp-has-submenu, .folded #adminmenu li.wp-has-submenu').popover({
      title: function() {
        var title = jQuery(this).find('a.menu-top').html();
        return title;
      },
      content: function() {
        var submenu = jQuery(this).find('.wp-submenu').html();
        return submenu;
      },
      placement: 'inside right',
      trigger: 'hover'
    });

    Extensive documentation on the bootstrap popovers can be found on http://twitter.github.com/bootstrap/javascript.html#popovers

  3. Aristeides Stathopoulos
    WPMU DEV Support Staff
    Plugin Author

    Posted 1 year ago #

    Marking as resolved

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags