Lost option menu label - by minhnhat - on WordPress WooCommerce support

This topic has 2 replies, 2 voices, and was last updated 9 years, 7 months ago ago by Eva Kemp

  • Avatar: minhnhat
    minhnhat
    Participant
    April 15, 2015 at 11:41

    With this theme, we have “New”, “Sale” label for menu. But we can’t change it in theme option panel. I found this code

    <?php if ( etheme_get_option('sale_icon') ) : ?>
                        .label-icon.sale-label { 
                            width: <?php echo (etheme_get_option('sale_icon_width')) ? etheme_get_option('sale_icon_width') : 67 ?>px; 
                            height: <?php echo (etheme_get_option('sale_icon_height')) ? etheme_get_option('sale_icon_height') : 67 ?>px;
                        }            
                        .label-icon.sale-label { background-image: url(<?php echo (etheme_get_option('sale_icon_url')) ? etheme_get_option('sale_icon_url') : get_template_directory_uri() .'/images/label-sale.png' ?>); }
                    <?php endif; ?>
                    
                    <?php if ( etheme_get_option('new_icon') ) : ?>
                        .label-icon.new-label { 
                            width: <?php echo (etheme_get_option('new_icon_width')) ? etheme_get_option('new_icon_width') : 67 ?>px; 
                            height: <?php echo (etheme_get_option('new_icon_height')) ? etheme_get_option('new_icon_height') : 67 ?>px;
                        }            
                        .label-icon.new-label { background-image: url(<?php echo (etheme_get_option('new_icon_url')) ? etheme_get_option('new_icon_url') : get_template_directory_uri() .'/images/label-new.png' ?>); }
                        
                    <?php endif; ?>

    But can’t find it in theme option. Is it a mistake?

    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    April 15, 2015 at 13:09

    Hello,

    If you want to change “Sale” and “New” icons you need upload your own images or edit the images wp-content/themes/woopress/images/label-new.png and label-sale.png.

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.