Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter npsr26

    (@npsr26)

    Hi @takanakui,

    Thank you for taking the time to answer me.

    There was an incompatibility between the plugin and the theme “colinear” because if I added the following additional CSS to my theme it was working:
    img.menu-image {
    height: 10px;
    }
    The theme CSS was kind of overriding the size setting of the plugin.

    In the end, I uninstalled the plugin and code my own quick and dirty plugin to hook the right call to add the icons in menu items based on the CSS id inserted in the menu items.
    function patch_navigation_label( $title, $item, $args, $depth ) {
    […]
    }
    add_filter( ‘nav_menu_item_title’, ‘patch_navigation_label’, 10, 4 );

    Thank you for the plugin still! And I hope my analysis will help the plugins to be compatible with more themes.

    Regards,
    Nicolas

    • This reply was modified 2 years, 10 months ago by npsr26.
    Thread Starter npsr26

    (@npsr26)

    The CSS from the “Colinear” theme and from “block-library” seem to prevent the resizing with a “height: auto;”

    • /wp-content/themes/colinear-wpcom/style.css?ver=5.9.2
    • /wp-includes/css/dist/block-library/style.min.css?ver=5.9.2
    • Is there a way to override this? Maybe forcing “Menu Image” to put the height and width in a “style” attribute?

      I am not a CSS expert ??

Viewing 2 replies - 1 through 2 (of 2 total)