I
I
ingeniero2016-11-11 17:49:10
css
ingeniero, 2016-11-11 17:49:10

How to change the spacing between the cart icon and the "Cart" label in Woocommerce?

Wordpress 4.6.1. woocommerce.
After Russification of the theme, the word "Cart" was replaced by "Cart" - longer. As a result, the letter "K" drives under the trash icon.
Task: change the distance between the trash can icon and the text "Cart" so that the word is visible in full.
I tried this: I edited wordpress/wp-content/plugins/woocommerce/assets/css/woocommerce.css,
trying to find which setting to change. Tried changing left in p.demo_store{position:fixed;top:0;left:0;right:0;margin:0;width:100%;font-size:1em; - did not help.
Question: is it correct to change this file? If not, then tell me how to solve the problem correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr Crabbz, 2016-11-11
@ingeniero

No, it's wrong. Edit plugin files - bad manners, tk. You will lose everything the first time you update the plugin. You need to edit in your theme, increasing the priority of the css selector.
www.quizful.net/post/specificity-of-css-selectors

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question