Change color and spacing in Woocommerce review stars
Does anyone know what CSS code I could use to change the colour of my review stars and also space them further apart?
I have the code below, but it only changes the outline colour
.product .star-rating span:before,
.product .star-rating:before {
color: #FF0000;
}
What code would I add to do the whole thing and also space them a little further apart?
Thanks!
css wordpress woocommerce product rating
add a comment |
Does anyone know what CSS code I could use to change the colour of my review stars and also space them further apart?
I have the code below, but it only changes the outline colour
.product .star-rating span:before,
.product .star-rating:before {
color: #FF0000;
}
What code would I add to do the whole thing and also space them a little further apart?
Thanks!
css wordpress woocommerce product rating
add a comment |
Does anyone know what CSS code I could use to change the colour of my review stars and also space them further apart?
I have the code below, but it only changes the outline colour
.product .star-rating span:before,
.product .star-rating:before {
color: #FF0000;
}
What code would I add to do the whole thing and also space them a little further apart?
Thanks!
css wordpress woocommerce product rating
Does anyone know what CSS code I could use to change the colour of my review stars and also space them further apart?
I have the code below, but it only changes the outline colour
.product .star-rating span:before,
.product .star-rating:before {
color: #FF0000;
}
What code would I add to do the whole thing and also space them a little further apart?
Thanks!
css wordpress woocommerce product rating
css wordpress woocommerce product rating
edited Nov 15 '18 at 11:58
LoicTheAztec
91.9k1365105
91.9k1365105
asked Nov 15 '18 at 10:52
MichelleMichelle
808
808
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The following should change the color to #FF0000
and add 1px
of spacing between the rating stars:
.star-rating span:before,
.star-rating::before,
p.stars a:hover:after,
p.stars a:after {
color: #ff0000 !important;
letter-spacing: 1px;
}
Tested and works
add a comment |
You can use following css rule to change color of the rating stars.
p.stars.selected a.active:before, p.stars:hover a:before, p.stars.selected a:not(.active):before, p.stars.selected a.active:before{color:#ff0000!important;}
#ff000
used in above rule will make display red color. Change it to he desired color value.
Use following css for spacing the stars.
p.stars a{margin-right:5px!important;}
Change 5px to what ever value you want to use.
Hope this helps.
Hi.. thanks for that! It doesn't seem to do anything though :(
– Michelle
Nov 15 '18 at 11:39
Can you try using "!important"?
– zipkundan
Nov 15 '18 at 12:00
okay great.. it works! thanks! Although now the last star is cut off because obviously the container they're in or something is too short.. how would I fix that? Thanks so much!!
– Michelle
Nov 15 '18 at 12:26
Usually that should not happen as the containers are not set with specific width. Well, can also differ per theme. How much spacing have you used? By the way, can you accept the answer as it at least solved your original problem?
– zipkundan
Nov 15 '18 at 12:35
it's okay.. i got around it by making the stars a bit smaller, which i wanted to do anyway.. thanks!!
– Michelle
Nov 15 '18 at 12:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53317791%2fchange-color-and-spacing-in-woocommerce-review-stars%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The following should change the color to #FF0000
and add 1px
of spacing between the rating stars:
.star-rating span:before,
.star-rating::before,
p.stars a:hover:after,
p.stars a:after {
color: #ff0000 !important;
letter-spacing: 1px;
}
Tested and works
add a comment |
The following should change the color to #FF0000
and add 1px
of spacing between the rating stars:
.star-rating span:before,
.star-rating::before,
p.stars a:hover:after,
p.stars a:after {
color: #ff0000 !important;
letter-spacing: 1px;
}
Tested and works
add a comment |
The following should change the color to #FF0000
and add 1px
of spacing between the rating stars:
.star-rating span:before,
.star-rating::before,
p.stars a:hover:after,
p.stars a:after {
color: #ff0000 !important;
letter-spacing: 1px;
}
Tested and works
The following should change the color to #FF0000
and add 1px
of spacing between the rating stars:
.star-rating span:before,
.star-rating::before,
p.stars a:hover:after,
p.stars a:after {
color: #ff0000 !important;
letter-spacing: 1px;
}
Tested and works
edited Nov 15 '18 at 12:02
answered Nov 15 '18 at 11:56
LoicTheAztecLoicTheAztec
91.9k1365105
91.9k1365105
add a comment |
add a comment |
You can use following css rule to change color of the rating stars.
p.stars.selected a.active:before, p.stars:hover a:before, p.stars.selected a:not(.active):before, p.stars.selected a.active:before{color:#ff0000!important;}
#ff000
used in above rule will make display red color. Change it to he desired color value.
Use following css for spacing the stars.
p.stars a{margin-right:5px!important;}
Change 5px to what ever value you want to use.
Hope this helps.
Hi.. thanks for that! It doesn't seem to do anything though :(
– Michelle
Nov 15 '18 at 11:39
Can you try using "!important"?
– zipkundan
Nov 15 '18 at 12:00
okay great.. it works! thanks! Although now the last star is cut off because obviously the container they're in or something is too short.. how would I fix that? Thanks so much!!
– Michelle
Nov 15 '18 at 12:26
Usually that should not happen as the containers are not set with specific width. Well, can also differ per theme. How much spacing have you used? By the way, can you accept the answer as it at least solved your original problem?
– zipkundan
Nov 15 '18 at 12:35
it's okay.. i got around it by making the stars a bit smaller, which i wanted to do anyway.. thanks!!
– Michelle
Nov 15 '18 at 12:37
add a comment |
You can use following css rule to change color of the rating stars.
p.stars.selected a.active:before, p.stars:hover a:before, p.stars.selected a:not(.active):before, p.stars.selected a.active:before{color:#ff0000!important;}
#ff000
used in above rule will make display red color. Change it to he desired color value.
Use following css for spacing the stars.
p.stars a{margin-right:5px!important;}
Change 5px to what ever value you want to use.
Hope this helps.
Hi.. thanks for that! It doesn't seem to do anything though :(
– Michelle
Nov 15 '18 at 11:39
Can you try using "!important"?
– zipkundan
Nov 15 '18 at 12:00
okay great.. it works! thanks! Although now the last star is cut off because obviously the container they're in or something is too short.. how would I fix that? Thanks so much!!
– Michelle
Nov 15 '18 at 12:26
Usually that should not happen as the containers are not set with specific width. Well, can also differ per theme. How much spacing have you used? By the way, can you accept the answer as it at least solved your original problem?
– zipkundan
Nov 15 '18 at 12:35
it's okay.. i got around it by making the stars a bit smaller, which i wanted to do anyway.. thanks!!
– Michelle
Nov 15 '18 at 12:37
add a comment |
You can use following css rule to change color of the rating stars.
p.stars.selected a.active:before, p.stars:hover a:before, p.stars.selected a:not(.active):before, p.stars.selected a.active:before{color:#ff0000!important;}
#ff000
used in above rule will make display red color. Change it to he desired color value.
Use following css for spacing the stars.
p.stars a{margin-right:5px!important;}
Change 5px to what ever value you want to use.
Hope this helps.
You can use following css rule to change color of the rating stars.
p.stars.selected a.active:before, p.stars:hover a:before, p.stars.selected a:not(.active):before, p.stars.selected a.active:before{color:#ff0000!important;}
#ff000
used in above rule will make display red color. Change it to he desired color value.
Use following css for spacing the stars.
p.stars a{margin-right:5px!important;}
Change 5px to what ever value you want to use.
Hope this helps.
edited Nov 15 '18 at 12:30
answered Nov 15 '18 at 11:12
zipkundanzipkundan
1,2661513
1,2661513
Hi.. thanks for that! It doesn't seem to do anything though :(
– Michelle
Nov 15 '18 at 11:39
Can you try using "!important"?
– zipkundan
Nov 15 '18 at 12:00
okay great.. it works! thanks! Although now the last star is cut off because obviously the container they're in or something is too short.. how would I fix that? Thanks so much!!
– Michelle
Nov 15 '18 at 12:26
Usually that should not happen as the containers are not set with specific width. Well, can also differ per theme. How much spacing have you used? By the way, can you accept the answer as it at least solved your original problem?
– zipkundan
Nov 15 '18 at 12:35
it's okay.. i got around it by making the stars a bit smaller, which i wanted to do anyway.. thanks!!
– Michelle
Nov 15 '18 at 12:37
add a comment |
Hi.. thanks for that! It doesn't seem to do anything though :(
– Michelle
Nov 15 '18 at 11:39
Can you try using "!important"?
– zipkundan
Nov 15 '18 at 12:00
okay great.. it works! thanks! Although now the last star is cut off because obviously the container they're in or something is too short.. how would I fix that? Thanks so much!!
– Michelle
Nov 15 '18 at 12:26
Usually that should not happen as the containers are not set with specific width. Well, can also differ per theme. How much spacing have you used? By the way, can you accept the answer as it at least solved your original problem?
– zipkundan
Nov 15 '18 at 12:35
it's okay.. i got around it by making the stars a bit smaller, which i wanted to do anyway.. thanks!!
– Michelle
Nov 15 '18 at 12:37
Hi.. thanks for that! It doesn't seem to do anything though :(
– Michelle
Nov 15 '18 at 11:39
Hi.. thanks for that! It doesn't seem to do anything though :(
– Michelle
Nov 15 '18 at 11:39
Can you try using "!important"?
– zipkundan
Nov 15 '18 at 12:00
Can you try using "!important"?
– zipkundan
Nov 15 '18 at 12:00
okay great.. it works! thanks! Although now the last star is cut off because obviously the container they're in or something is too short.. how would I fix that? Thanks so much!!
– Michelle
Nov 15 '18 at 12:26
okay great.. it works! thanks! Although now the last star is cut off because obviously the container they're in or something is too short.. how would I fix that? Thanks so much!!
– Michelle
Nov 15 '18 at 12:26
Usually that should not happen as the containers are not set with specific width. Well, can also differ per theme. How much spacing have you used? By the way, can you accept the answer as it at least solved your original problem?
– zipkundan
Nov 15 '18 at 12:35
Usually that should not happen as the containers are not set with specific width. Well, can also differ per theme. How much spacing have you used? By the way, can you accept the answer as it at least solved your original problem?
– zipkundan
Nov 15 '18 at 12:35
it's okay.. i got around it by making the stars a bit smaller, which i wanted to do anyway.. thanks!!
– Michelle
Nov 15 '18 at 12:37
it's okay.. i got around it by making the stars a bit smaller, which i wanted to do anyway.. thanks!!
– Michelle
Nov 15 '18 at 12:37
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53317791%2fchange-color-and-spacing-in-woocommerce-review-stars%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown