Support » Plugin: MP6 » Icons and Submenu

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Matt (Thomas) Miklic

    (@iammattthomas)

    Hi, thanks for the report. Could you provide a screenshot and some information about which browser and device you’re using? It’ll help us narrow down any bugs you may be seeing.

    Chrome Last Version in Windows 7
    http://snag.gy/dQ3Vq.jpg

    First:
    This happens when using custom icons for custom post types, as described here: http://develop.serialdesigngroup.com/code/custom-post-type-admin-icons.
    I’ve added the following to the css file for my WP admin:

    .icon16.icon-post:before,
    #adminmenu .menu-icon-post div.wp-menu-image:before {
    	content: "" !important;
    }

    Note that this requires you to set icons for every custom post type, as this removes the default icon for custom post types.

    Second:
    The sub menu has a fixed width, which causes item labels that have long names to break out of the blue box. This can also be fixed using css:

    #adminmenu .wp-submenu li a {
    	overflow: hidden;
    	text-overflow: ellipsis;
    }

    I’ve added the following javascript to add a tooltip containing the full item label’s text:

    ;!function ($) {
    	"use strict";
    
    	$(function () {
    		$("#adminmenu .wp-submenu li a").each(function (index, element) {
    			$(this).attr("title", this.innerText);
    		});
    	});
    } (jQuery);

    Good luck!

    Plugin Author Matt (Thomas) Miklic

    (@iammattthomas)

    Thanks for the screenshot, basequatro. We’ll be doing a run through the admin to check for copyfitting where translated strings are longer than the original English. We’ve also got a bit more work to do on plugin icons; the way we’ve got them implemented currently is slightly hacky. We’ll be testing with more plugins as we get further along to make sure these edge cases are sorted out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Icons and Submenu’ is closed to new replies.