I recently had a request from a WordPress client for a star rating widget of sorts, so I thought I would share the solution I came up with using Advanced Custom Fields (ACF) and CSS. There are no images involved – just pure CSS plus Unicode stars and a handy range slider on the back end so the client can easily enter a rating anywhere from 0 to 5 in steps of 0.1. Thanks to a nice example I found on CodePen (seen below), the front end elements were easy and simple, utilizing CSS custom properties and variables in a compact code. Connecting this to ACF so the client could easily edit their ratings brought it all together in a quick solution that I have not seen elsewhere, thus the idea to make it available here in case anyone else is looking for something similar. Ready to dig in?
You may also like
How to Display Most Popular Tags in WordPress (2 Easy Methods)
Do you want to display the most popular tags used...
MojoAuth Passwordless Login Plugin for WordPress
WordPress is already a fairly secure platform. It...
Wordfence Intelligence Weekly WordPress Vulnerability Report (April 8, 2024 to April 14,...
Did you know we’re running a Bug Bounty...