Change color and spacing in Woocommerce review stars












0















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!










share|improve this question





























    0















    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!










    share|improve this question



























      0












      0








      0








      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!










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 '18 at 11:58









      LoicTheAztec

      91.9k1365105




      91.9k1365105










      asked Nov 15 '18 at 10:52









      MichelleMichelle

      808




      808
























          2 Answers
          2






          active

          oldest

          votes


















          2














          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



          enter image description here






          share|improve this answer

































            0














            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.






            share|improve this answer


























            • 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











            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            2














            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



            enter image description here






            share|improve this answer






























              2














              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



              enter image description here






              share|improve this answer




























                2












                2








                2







                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



                enter image description here






                share|improve this answer















                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



                enter image description here







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 15 '18 at 12:02

























                answered Nov 15 '18 at 11:56









                LoicTheAztecLoicTheAztec

                91.9k1365105




                91.9k1365105

























                    0














                    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.






                    share|improve this answer


























                    • 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
















                    0














                    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.






                    share|improve this answer


























                    • 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














                    0












                    0








                    0







                    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.






                    share|improve this answer















                    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.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    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



















                    • 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


















                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Florida Star v. B. J. F.

                    Danny Elfman

                    Lugert, Oklahoma