• Resolved wpChameleon

    (@wpchameleon)


    Hi Guys. Is it possible to use widget title instead “Filters:” text. For example I have 3 filters: Size, Power, Color and I need this text to be updated with filtered value and “Filters:” removed at all

    https://prnt.sc/q0hpua

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    I’ll ask to our developers if possible to do that via code because there aren’t an option for this.

    I’ll write to you again on Monday with some news.

    Thread Starter wpChameleon

    (@wpchameleon)

    Hey Guys, any update here?

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    sorry for the delay!

    You can achieve your goal by adding the following code snippet to your theme functions.php

    if( !function_exists('yith_wcan_set_dropdown_label') ){
        add_filter('yith_wcan_dropdown_label','yith_wcan_set_dropdown_label',10,3);
    
        function yith_wcan_set_dropdown_label( $label, $widget, $instance ){
            $label = $instance['title'];
            return $label;
        }
    }

    Please try this solution and let us know if everything works fine!

    Thread Starter wpChameleon

    (@wpchameleon)

    Hi there! Thank you, it’s exactly i needed and it works. You best

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    you are welcome!
    If you like the plugin and our support, please, support us with a 5-star review. It takes just a minute. Thank you!

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

The topic ‘Update dropdown label with widget title’ is closed to new replies.