Change default “Select Category” text in categories dropdown widget in WordPress

Add a function like this one in your functions.php in the stylesheet directory:

function ChangeSelectTitle($cat_args){
    $cat_args['show_option_none'] = __('My Category');
    return $cat_args;
}
add_filter('widget_categories_dropdown_args', 'ChangeSelectTitle');

Where My Category is the new title you want instead of Select Category

Leave a Reply

Your email address will not be published.