WORDPRESS METAMASK CONNECTOR
🚧
metamask-connector/
│
├── css/
│ └── style.css
│
├── js/
│ └── metamask-connector.js
│
└── metamask-connector.php
- Including the Plugin in WordPress Upload your plugin folder to the wp-content/plugins directory of your WordPress installation. Activate the plugin through the WordPress admin interface.
- Using the Shortcode Use the [metamask_connector] shortcode in your posts or pages to display the "Connect to MetaMask" button.
or
Place the Button in Your Theme's Header To place the button in the far right corner of the header, you'll need to edit your theme's header file (header.php), which might require a child theme to avoid losing changes on theme updates.
In your theme's header.php, add the following where you want the button:
<?php echo do_shortcode('[metamask_connector]'); ?>