How To Add Star Rating In Woocommerce Product
WooCommerece is a ECommerce plugin for WordPress that have many features built in already only if you are making a theme from stretch for WooCommerece and so yous install this plugin then you take to edit more than things. Default style for rating are simply no simply if y'all want to change information technology so you can change it.
So here below we have a little css codes that comprise The style of your theme rating below will remove the old manner rating and will add outset rating on your products pages. This will need to become into the style.css
file and add our shared code there. So you will see the your whole ECommerce siote got first rating everywhere similar in products, reviews, snippets etc… So without whatever more preface, just garb the lawmaking now and go for it.
Features:
1.) Pure CSS lawmaking.
2.) Have to edit theme fashion.css
file.
3.) Add Kickoff rating on your all products.
4.) Brandish three colors start as per requirment there.
5.) Easy to apply and fully customizable.
How To Add Star Ratings In WooCommerce Themes Via CSS Only?
Step 1:) Download the below epitome and upload it to wp-content/plugins/WooCommerce/assets/images
by logging into your FTP.
Stride ii:) Copy the below code and Paste in in your Theme Way(style.css) file.
/* ------------------------------------------------------------------------- * * Star Ratings In WooCommerce /* ------------------------------------------------------------------------- */ .star-rating{float:right;width:80px;pinnacle:16px;groundwork:url(images/star.png) repeat-x left 0} .star-rating span{background:url(images/star.png) repeat-x left -32px;superlative:0;padding-top:16px;overflow:hidden;float:left} .hreview-aggregate .star-rating{margin:10px 0 0 0} #review_form #respond{position:static;margin:0;width:auto;padding:0 0 0;background:transparent none;edge:0} #review_form #respond:after{content:"";brandish:block;clear:both} #review_form #answer p{margin:0 0 10px} #review_form #reply .form-submit input{left:auto} #review_form #respond textarea{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;width:100%} p.stars:later{content:"";display:block;clear:both} p.stars span{width:80px;height:16px;position:relative;float:left;background:url(images/star.png) repeat-x left 0} p.stars span a{bladder:left;position:absolute;left:0;acme:0;width:16px;peak:0;padding-top:16px;overflow:hidden} p.stars span a:hover,p.stars span a:focus{background:url(images/star.png) echo-10 left -16px} p.stars bridge a.agile{background:url(images/star.png) echo-ten left -32px} p.stars span a.star-1{width:16px;z-index:x} p.stars span a.star-ii{width:32px;z-index:9} p.stars bridge a.star-3{width:48px;z-index:eight} p.stars span a.star-iv{width:64px;z-index:7} p.stars bridge a.star-v{width:80px;z-index:6}
Pace 3:) If you're seeing indistinguishable stars on your product add the css below equally well.
.star-rating bridge:earlier, ul.products li.production .product-details .star-rating:before{content:none;}
Stride 4:) Save and washed.
Customization:
You lot just have to add CSS only. Residual all is done. You lot can customize it with your images, codes if yous are pro.
Theme Files Editing Warning:
Keep in mind that every code that you volition add in your themes files will be removed when you lot will alter the theme. And so afterwards irresolute your theme, y'all accept to follow this commodity again and y'all will become everything back same as it is at present.
Last Words:
This is what we have and shared in easy steps for newbies so that they can easily know how information technology works. Stay with usa because we are going to share a whole guide step past step virtually WordPress and brand it piece of cake for you. If y'all liked it then share it and be with us to get next tutorial. If you have whatever problem then feel free to ask us. Nosotros will help yous with what we can or take.
How To Add Star Rating In Woocommerce Product,
Source: https://www.exeideas.com/2015/01/add-star-ratings-in-woocommerce.html
Posted by: kellylithen.blogspot.com
0 Response to "How To Add Star Rating In Woocommerce Product"
Post a Comment