• Resolved Blessoul

    (@blessoul)


    Hey! Awesome plugin! I am loving it so far.

    I am only having trouble because I am an absolute beginner, I was wondering if you could help me figure out how to edit the css of the plugin in a way that I can push from a remote repo.

    Basically, I want to change the css in icons.css, to get rid of the products list money image. I have found a way to do this by commenting out the following code:

    .mp_grid .mp_product_price:before {
    	content: ' ';
    	width: 16px;
    	height: 16px;
    	/*background: url('modern-images/money.png') no-repeat 0 0;*/
    	position: relative;
    	top: 28px;
    	left: -20px;
    	display: block;
    }

    my question is this: Can I do that same modification from somewhere within my child theme? I tried importing the file into style.css, but I still could not access the modification.

    I need this because I was told all modifications in css should be done within my child theme, so I can run updates smoothly.

    https://wordpress.org/plugins/wordpress-ecommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @blessoul,

    Thank you for your question.

    I need this because I was told all modifications in css should be done within my child theme, so I can run updates smoothly.

    Yes you are right, if you make changes in the parent theme then on updation of parent theme the changes made will be overwritten & lost and you will have to make these changes again in the theme so it is always recommended to make changes in the child theme.

    You can change the CSS of any plugin / parent theme by overwriting it in the child theme.

    In your case just write the following CSS code in the style.css file of your child theme to remove money image.

    .mp_grid .mp_product_price:before {
    	background: none !important;
    }

    Best Regards,

    Hi @blessoul,

    I hope you’re well today! Haven’t heard back from you on this so assuming that’s all sorted for ya! Just let us know if you have any further questions. We’ll be happy to assist! 🙂

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to modify the css?’ is closed to new replies.