How to Add Icons to a Page in a 2D/3D Virtual Platform
Edit the page or post type where you want the icons to appear.
Go to the custom fields group that you have created, in this case “Gamification Options” and add in the location rules which page you want to have the gamification option :
Go to the classic editor of that page, post or template that you have selected as the location for your ACFs.
Look for the ACF "Gamification Options" box and check the "Enable Gamification" box.
In the "Icons for Gamification" repeater, click "+ Add Row" for each icon you want to add and fill in the subfields.
Save the page. Icons will appear randomly over the content.
How to Create and Display the Quiz
Create a new page in WordPress (e.g. "My Knowledge Quiz").
Edit the page and look for the ACF "Quiz Questions" box.
Click "+ Add Row" for each question you want to create. Fill in the question text, points, and answer options, marking the correct one.
In the main content editor of the page, insert the following shortcode:[show_gamification_quiz]
Save the page.
5.3. How to Display the Leaderboard
Create a new page in WordPress (e.g. "Leaderboard").
In the content editor, insert the following shortcode:[my_leaderboard]
Save the page.
5.4. How to modify the main styles of the Quiz and Leaderboard using the created ACFs
Go to the classic editor for your quiz or leaderboard.
You will see your fields box, fill it in, select the colours and save
Comments
0 comments
Please sign in to leave a comment.