Remove the word item but keep the #
-
Hi there, great plugin but I would like to remove the word Items and just have the number.
I have down this (below) but now it only displays the cart icon with no number at all.
Help please, most coding is “above my pay grade” so please keep it simple if possible ??
Hi QC,
If you still see the price, there’s a chance you need to refresh your browser (that is, open in a different session/tab/whatever). Some changes lag behind because of AJAX (paradoxically!).Then, if you’d like to remove the items word, you’ll have to do that manually in the plugin php file – this is not update proof though!
find
$cart_contents = sprintf(_n(‘%d item’, ‘%d items’, $cart_contents_count, ‘wcmenucart’), $cart_contents_count);
and replace with
$cart_contents = $cart_contents_count;
and you should be fine.
- The topic ‘Remove the word item but keep the #’ is closed to new replies.