Getting Started
Welcome to Tofido Code Manager. This guide will walk you through installation, activation, and creating your first snippet. By the end, you will be confident managing custom code in WordPress without touching theme files.
System Requirements
Before installing, ensure your environment meets the following requirements:
- WordPress: Version 6.2 or higher
- PHP: Version 8.1 or higher
- MySQL: Version 5.7 or higher (or MariaDB 10.3+)
- Browser: Modern evergreen browser for admin interface
Version 1.0.0 is optimized for single-site WordPress. Basic multisite usage may work with individual site activation. Full network activation support is planned for a future release.
Installation
Method 1: WordPress Admin (Recommended)
Once the plugin is available on WordPress.org:
- Log in to your WordPress admin dashboard.
- Navigate to Plugins → Add New.
- Search for Tofido Code Manager.
- Click Install Now, then Activate.
Method 2: Manual Upload
- Download the plugin ZIP file from the release page.
- Navigate to Plugins → Add New → Upload Plugin.
- Select the ZIP file and click Install Now.
- Click Activate Plugin after installation completes.
Method 3: FTP Upload
- Extract the plugin ZIP file locally.
- Upload the
tofido-code-managerfolder to/wp-content/plugins/on your server. - Navigate to Plugins in the WordPress admin and click Activate under Tofido Code Manager.
Activation & First Setup
After activation, you will see a new menu item in your WordPress admin sidebar: Code Manager. Click it to open the dashboard.
On first launch, the plugin performs a quick system check to verify:
- PHP version compatibility
- WordPress version compatibility
- Required database table creation
- Write permissions for asset cache directory
If any issues are detected, a notification will guide you through resolution. Most environments pass all checks automatically.
Creating Your First Snippet
Let us create a simple CSS snippet that changes the background color of your site header.
Step 1: Add New Snippet
Click Add New Snippet in the Code Manager dashboard. You will see the snippet editor interface.
Step 2: Configure Basic Settings
- Title: Enter
Header Background Color - Type: Select
CSSfrom the dropdown - Status: Leave as
Draftfor now
Step 3: Write Your Code
In the code editor, enter the following CSS:
/* Change site header background */
.site-header {
background-color: #1B9C85;
transition: background-color 0.3s ease;
}
Step 4: Set Placement
Under the Placement tab:
- Location: Select
Header - Priority: Leave as
10(default) - Load Method: Select
External Filefor caching
Step 5: Configure Display Conditions
Under the Conditions tab:
- Apply To: Select
All Pages - Devices: Select
All Devices
Saving and Testing
Click Save Snippet. The plugin validates your CSS syntax automatically. If errors are found, they are highlighted in the editor with suggestions.
With the snippet saved as a draft, click Preview to see how it looks on your site. The preview opens in a new tab with your snippet temporarily applied.
Review the changes. If satisfied, return to the editor and change the status from Draft to Published.
Publishing and Verification
Once published, your snippet is live. To verify:
- Visit your site frontend and inspect the header element.
- Open browser DevTools and check the
<head>section for the generated CSS file link. - Confirm the background color has changed to mint green (#1B9C85).
Always test snippets as drafts before publishing. For PHP snippets, use Safe Mode (explained in the Security documentation) to catch fatal errors before they affect your live site.
Next Steps
Now that you have created your first snippet, explore the rest of the documentation:
- Snippet Types - Learn about all six snippet types and when to use each
- Security - Understand Safe Mode, capability checks, and dangerous function scanning
- Features - Discover advanced capabilities like revision history and import/export