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

    (@jonathandejong)

    Hi Ludo,

    Not sure what you mean? You want to hide the terms titles in the dropdowns? Then you’d not have a name at all for each option?

    Thread Starter ludo2604

    (@ludo2604)

    not the terms title in the drodowns.
    Just the red stuffs here:

    View post on imgur.com

    many thanks ??

    Plugin Author Jonathandejong

    (@jonathandejong)

    Hi,

    Ah! That makes more sense!

    Copy this to your functions.php or a custom plugin and you should be good to go!

    
    function modify_btf_dropdown_args( $args, $taxonomy ) {
    	$args['show_option_all'] = 'Tous';
    	return $args;
    }
    add_filter( 'beautiful_filters_dropdown_categories', 'modify_btf_dropdown_args', 10, 2 );
    
    function modify_btf_dropdown_label( $label, $taxonomy ) {
    	return '';
    }
    add_filter( 'beautiful_filters_taxonomy_label', 'modify_btf_dropdown_label', 10, 2 );
    
    

    EDIT: Please note that this will change ALL dropdowns in BTF. If you want to target one specifically you can use the second parameter $taxonomy to do an if statement around the changes.

    Thread Starter ludo2604

    (@ludo2604)

    thanks, the label disapeared, great.

    But still the “Tous” is here, even if i change it, it doesn’t do anything.

    Plugin Author Jonathandejong

    (@jonathandejong)

    Hi,

    Yes in your image you cross over everything but “Tous” so I assumed that should remain.
    If not just change ‘Tous’ to ” in my code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide Title Term’ is closed to new replies.