Scroll-based animated circular progress bar with incrementing number from ACF options page
This members-only tutorial provides clear and complete steps to implement Supa Mike's tutorial on animated progress bars with the additional functionality of the countup or increasing number being read from a custom field set on the options page via ACF Pro.
Step 1
Install and activate Advanced Custom Fields Pro plugin.
Let us enable ACF Options page.
Install and activate Code Snippets plugin.
Go to Snippets > Add New.
Title: Enable ACF Options Page
Code:
if ( function_exists( 'acf_add_options_page' ) ) {
acf_add_options_page();
}
Go to Custom Fields > Add New.
Create a field group titled say, "Sitewide" having a Number-type of custom field with the name of countup
. Set it to appear on the Options Page.
Step 2
Click on Options in the admin menu and enter your desired number that should get incremented as the circle does the progress animation.
Step 3
Let us load Waypoints and jQuery Circle Progress on the site's homepage.
Install and activate My Custom Functionality plugin.
Connect to your hosting account using a FTP client and navigate to site's /wp-content/plugins/my-custom-functionality-master
.
Upload jquery.waypoints.min.js and circle-progress.min.js to the plugin's assets/js
directory.
Edit plugin.php
and add the following inside the custom_enqueue_files()
function:
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $599 one-time).
Already a member? Log in below or here.