D
D
Djus12020-08-05 18:35:01
css
Djus1, 2020-08-05 18:35:01

How can I change the css color of the content: url() style?

Hello, I'm on wordpress and I want to change the default rating stars that are displayed as text
5f2ad066bb700017501509.png
and therefore have jagged edges.

I partially solved this with

.star-rating:before{
content: url(ссылка на svg c звездой) }

But now I can't change the color of the star.
In wordpress 2, the stars are superimposed on each other and then the color changes.
But fill in color doesn't work in my case, which might help. Maybe there is an easier way on wordpress?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2020-08-05
@Djus1

Filters https://developer.mozilla.org/ru/docs/Web/CSS/filter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question