Adding a Plugin
Install and use WordPress plugins to add functionality — contact forms, SEO, security, and performance.
Adding a Plugin
WordPress plugins extend your site's functionality without modifying the theme. There are over 60,000 free plugins in the WordPress plugin directory. Let's learn how to install and use them.
What Are Plugins?
Plugins are PHP-based add-ons that hook into WordPress to add features:
- Contact forms — create email inquiry forms
- SEO — optimize for search engines
- Security — protect against hacking attempts
- Performance — caching and optimization
- Social sharing — add share buttons to posts
Installing a Plugin
Method 1: From the WordPress Dashboard
- Go to Plugins → Add New
- Search for the plugin (e.g., "Contact Form 7")
- Click "Install Now"
- Once installed, click "Activate"
Method 2: Upload a ZIP File
- Download the plugin
.zipfile from the plugin's website - Go to Plugins → Add New → Upload Plugin
- Choose the
.zipfile → click "Install Now" - Click "Activate"
Essential Plugins for Any WordPress Site
| Plugin | Category | What It Does |
|---|---|---|
| Contact Form 7 | Forms | Simple, flexible contact forms |
| Yoast SEO | SEO | Meta tags, sitemaps, content analysis |
| Wordfence | Security | Firewall, malware scanning, login protection |
| WP Super Cache | Performance | Page caching for faster load times |
| UpdraftPlus | Backup | Automated backups to cloud storage |
| ACF | Custom Fields | Better custom fields with a visual editor |
Example: Adding Contact Form 7
- Install and activate the plugin
- Go to Contact → Add New
- The default form template includes Name, Email, Subject, and Message
- Copy the shortcode (e.g.,
[contact-form-7 id="123" title="Contact"]) - Create a "Contact" page and paste the shortcode in the content
- Publish — the form appears on the Contact page
Plugins vs Theme Code
| Use a Plugin When | Add to Theme When |
|---|---|
| Functionality should persist across theme changes | Feature is tightly coupled to the theme's design |
| Complex functionality (forms, e-commerce, SEO) | Simple display changes or custom template tags |
| Regular updates are important (security) | One-off, lightweight features |
Plugin Best Practices
- Don't install too many — each plugin adds overhead; keep only what you need
- Check ratings and reviews — use popular, well-maintained plugins
- Keep plugins updated — outdated plugins are security risks
- Test on staging first — plugins can conflict with themes or other plugins
- Deactivate unused plugins — deactivate and delete what you don't use
Key Takeaways
- Plugins extend WordPress functionality without modifying the theme
- Install from the dashboard or by uploading a ZIP file
- Essential categories: forms, SEO, security, performance, backups
- Use plugins for functionality that should persist across theme changes
- Keep plugins minimal, updated, and well-reviewed