I’ve spent half a day Googling this and have found code to change text on every button except for the Widget Side Bar Cart / Mini Cart????
1 Answers
You can add the following code to the functions.php file:
add_filter(
'widget_display_callback'
,
'rename_widget'
, 10, 3 );
function
rename_widget(
$settings
,
$widget
,
$args
) {
if
( get_class(
$widget
) ==
'Custom_WooCommerce_Widget_Cart'
) {
$settings
[
'title'
] =
'My Cart'
;
}
return
$settings
;
}
If you still face their issue, you can send me a screenshot for further checking.
Please login or Register to submit your answer