• Resolved Dani

    (@danicasati)


    Hi.
    Is it possible to hide the icons on the left of any suborder number?

    View post on imgur.com

    I’m using customized colors for order status label and different colors of the icons is distracting vendors.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Alessio Torrisi

    (@alessio91)

    Hi there,
    please add following code in the file functions.php of your theme to hide icons by vendor side.

    add_action('admin_head', 'yith_wcmv_add_admin_style');
    
    if (!function_exists('yith_wcmv_add_admin_style')) {
    	function yith_wcmv_add_admin_style()
    	{
    		echo '<style>
            .vendor_limited_access .widefat .column-suborder mark, .vendor_limited_access .single-orders.suborders-list .suborder-info mark {
        		display: none;
    		}
          </style>';
    	}
    }
    Thread Starter Dani

    (@danicasati)

    I’ve uploaded the code, but icons are still displaying.

    Plugin Support Giuseppe Madaudo

    (@askmagic)

    Hi there,
    try clearing your cache if you have one.

    Thread Starter Dani

    (@danicasati)

    Did it.
    Icons are always showing.

    Plugin Support Giuseppe Madaudo

    (@askmagic)

    Hi there,
    please try to move the code to the bottom of functions.php and let me know.

    Thread Starter Dani

    (@danicasati)

    Did it, but icons are still displaying.

    Plugin Support Andrea Grillo

    (@agengineering)

    Hi there,

    probably I understand the issue. The code that Alessio send to you works only if the current logged user is a vendor. To remove it without user checking use this code instead:

    
    add_action('admin_head', 'yith_wcmv_add_admin_style');
    
    if (!function_exists('yith_wcmv_add_admin_style')) {
    	function yith_wcmv_add_admin_style()
    	{
    		echo '<style>
             .widefat .column-suborder mark, .vendor_limited_access .single-orders.suborders-list .suborder-info mark {
        		display: none;
    		}
          </style>';
    	}
    }
    Thread Starter Dani

    (@danicasati)

    It works! Thanks for support.

    Plugin Support Leanza Francesco

    (@leanzafrancesco)

    Hi,
    you are welcome!

    If you like the plugin and our support, please, support us with a good review.
    It takes just a minute. Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Hide icons near suborder’ is closed to new replies.