Tagged: x
-
AuthorPosts
-
January 9, 2017 at 1:03 pm #1322752
speedlistParticipantHi,
How can I edit the text for the WooCommerce Item Count on the navigation bar/header?
Here’s the site: http://hudsonrivermil.wpengine.com/
I’m planning on removing the word “items” and just display the item count number.Thanks.
January 9, 2017 at 3:22 pm #1322948
JoaoModeratorHi There,
Please add the following code to Apperence > Customizer > Custom > CSS
.x-navbar .x-nav > li.x-menu-item-woocommerce > a .x-cart > span.outer { color: white; }Hope it helps
Joao
January 10, 2017 at 9:17 am #1323986
speedlistParticipantHi Joao,
I checked the CSS code you sent but it just makes the font color into white. What I need is to remove the word “items” and just have the number of the item count.
Thanks
January 10, 2017 at 9:50 am #1324046
ThaiModeratorHi There,
Please add the following code under functions.php file locates in your child theme:
add_filter('ngettext', 'translate_text' ); function translate_text($translated) { $translated = str_ireplace('Items', '', $translated); $translated = str_ireplace('Item', '', $translated); return $translated; }Hope it helps 🙂
January 11, 2017 at 3:39 pm #1326161
speedlistParticipantThank you Thai.
January 11, 2017 at 9:59 pm #1326671
Rue NelModeratorYou’re most welcome!
We’re glad we were able to help you out. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1322752 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
