Installation Guide for WordPress
This guide is meant for non-developers and assumes that you have basic knowledge of WordPress administration.
Step 1: Edit Your WordPress Template
The first step to installing Mintmade's minting widgets on your WordPress website is editing the WordPress template itself.
Backup your website. Before making any changes to your website, it's always a good idea to create a backup. This way, you can restore your website to its previous state if something goes wrong.
Access your WordPress files. This can be done through the cPanel provided by your web hosting company, via an FTP client such as FileZilla, or WP Admin.
Find your theme's header file. In your WordPress directory, navigate to
wp-content/themes/{your-theme-name}
. Here you should see file namedheader.php
. These are the files you'll need to edit to add the widgets to your website.
In the next steps, you'll add the necessary scripts to your header.php
file to install the widgets.
Step 2: Add Mintmade Widgets into Your Headers
In the
header.php file
paste the following:Click "Save".
Step 3: Use Widgets on Your Pages
You can use the widgets on your pages by adding the appropriate HTML to the places you want these widgets to be displayed.
Here's a brief explanation of the parameters for each widget:
<mm-collectors>
: Displays a list of collectors.<mm-recently-collected>
: Shows recently collected items.<mm-appendix>
: Provides additional information about the collection.
Each of these widgets can take several attributes to customize their behavior and appearance. Here's an example of how to use them:
Replace "https://mint.yourwebsite.com/" and "https://yourwebsite.com/news/your-article" with your actual URLs. Change the color parameters as per your site's theme. The lang
attribute is for the language, you can use the appropriate ISO 639-1 code.
If you need to place this in the body of a page or post, switch the WordPress editor to Text mode and paste the code.
Please remember that your WordPress hosting environment should support ES6 import functionality for these widgets to work.
Step 4: Testing
After you've inserted the widgets and updated your template, it's crucial to test everything. Visit the page in a browser to see if the widgets are displayed correctly. If not, check your links and colors to make sure they're correct.
For more technical information go to https://www.npmjs.com/package/@mintmade/widgets
Last updated