DIVI + WORDPRESS SUPERCHARGED SETUP GUIDE (2025 EDITION)
Stack: WordPress + Divi + SiteGround + Rank Math + Wordfence
Tool: Divi Children plugin for child theme creation
Table of Contents
- WordPress Installation on SiteGround
- Plugin Stack Overview
- Child Theme Setup (Divi Children)
- Divi Theme Options Configuration
- Global Colors in Divi (Step-by-Step)
- Typography System + Text Presets (Step-by-Step)
- Creating and Using Divi Presets (Step-by-Step)
- Theme Builder Templates
- WordPress Theme Customizer Settings
- Cleanup & Export Process
- Mobile Layouts (4, 5, 6 Per Row)
- Uploading Custom Fonts to Divi (PHP + CSS)
- Performance: SiteGround Optimizer Settings
- SEO: Rank Math Configuration
- Security: Wordfence Setup
- PHP Boost: .user.ini Settings
- Appendix A: Advanced CSS Snippets
- Appendix B: JavaScript Enhancements
- Appendix C: Troubleshooting & Pro Tips
1. WordPress Installation on SiteGround
- Install WordPress using SiteGround’s App Installer
- Enable HTTPS + Force HTTPS in Site Tools > Security > SSL Manager
- In Site Tools > Devs > PHP Manager: Set PHP to 8.1 or 8.2
- Delete default post, page, and comment
- Settings > General:
- Site title and tagline
- Set timezone
- Set week start to Monday
- Settings > Permalinks: Choose "Post name"
- Settings > Reading:
- Set homepage to a static page
- Assign a blog page
- Uncheck "Discourage search engines from indexing this site" before launch
- Settings > Discussion: Disable comments and pingbacks (if not used)
2. Plugin Stack Overview
- SiteGround Optimizer: for caching, image optimization, lazy loading
- Rank Math SEO: for metadata, sitemaps, Open Graph, schema
- Wordfence: for login protection, 2FA, brute-force prevention
- WP Mail SMTP: (optional) to ensure proper email delivery
- Divi Children: to create and manage your child theme cleanly
3. Child Theme Setup (Divi Children)
- Install and activate the Divi Children plugin
- Use the plugin to generate your custom child theme
- This will create a functional child theme with:
functions.php— where you can paste PHP customizationsstyle.css— for your site-wide CSS rules- Font support folder (optional) for uploading custom fonts
- Activate the new child theme
- From now on, add custom code here — never modify the parent Divi theme
4. Divi Theme Options Configuration
5. Global Colors in Divi (Step-by-Step)
- Open any module (e.g., Text, Button, Blurb) in the Visual Builder
- Find any color setting — such as background, text, or border color
- Click the teardrop icon to open the global color options
- Click the “+” button to add a new global color
- Set:
- Primary:
#1E88E5 - Accent:
#F39C12 - Dark Text:
#222222 - Light BG:
#F9F9F9 - White:
#FFFFFF
- Primary:
- Name each one clearly for reusability
- Click “Create” and then “Save”
- Use global colors throughout all modules and presets
6. Typography System + Text Presets (Step-by-Step)
Theme Customizer Settings
- Go to Divi > Theme Customizer > General Settings > Typography
- Set both the Header Font and Body Font to Open Sans
- Adjust base font size to 16px (or 17–18px for high readability)
- Set body text color and line height (1.7em suggested)
- Set link and heading colors as needed
Exact Font Sizes
| Element | Desktop | Tablet | Mobile | Weight |
|---|---|---|---|---|
| H1 | 60px | 48px | 36px | 700 |
| H2 | 48px | 40px | 30px | 700 |
| H3 | 36px | 32px | 24px | 600 |
| H4 | 28px | 24px | 20px | 600 |
| H5 | 22px | 20px | 18px | 600 |
| H6 | 18px | 16px | 14px | 500 |
| Body | 16px | 16px | 15px | 400 |
| Buttons | 16px | 16px | 16px | 600 |
7. Creating and Using Divi Presets (Step-by-Step)
- Open any module (Text, Button, Blurb, etc.)
- Style the module using your preferred font, size, spacing, colors, etc.
- At the top of the module settings, click the Presets dropdown
- Choose “Create New Preset From Current Styles”
- Give it a clear name, like
H1 Hero TitleorPrimary CTA Button - Click Save
- From now on, you can apply this preset to any new module of that type
- To update a preset site-wide, click the 3-dot menu > “Update Preset Style”
Pro Tip: Create a standard set of presets for buttons, headings, cards, and blurbs, so you never style manually again.
8. Theme Builder Templates
- Go to Divi > Theme Builder
- Click “Add Global Header” and design your site-wide header
- Use logo module or image
- Insert menu module and apply presets
- Click “Add Global Footer” and design your footer layout
- Add blurbs for contact info
- Insert social media icons and copyright notice
- Click “Add New Template” to create:
- Single Post layout
- Category archive pages
- 404 Page
- Search Results page
- Save and Export your Theme Builder layout for future reuse
9. WordPress Theme Customizer Settings
Even with Divi's builder, the native WordPress Customizer is still useful for:
- Typography (fallback): body font, heading font, base sizes
- Header settings: logo max width, menu layout for mobile
- WooCommerce support: basic color customization for store pages
- Footer widgets: column layout, background color
10. Cleanup & Export Process
- Delete default content: Hello World, sample page, etc.
- Deactivate and delete unused plugins to reduce load
- Export backups:
- Divi Theme Options
- Divi Theme Builder layout
- Divi Library (presets, sections, templates)
- Rank Math configuration file
- Wordfence settings
- Clear Static CSS under Divi > Theme Options > Builder
- Optimize database using SiteGround Optimizer
11. Mobile Layouts (4, 5, 6 Per Row)
Paste this CSS into your child theme or Divi Theme Options > Custom CSS:
@media only screen and (max-width: 767px) {
.four-per-row .et_pb_column { width: 25% !important; float: left; margin-bottom: 20px; }
.five-per-row .et_pb_column { width: 20% !important; float: left; margin-bottom: 20px; }
.six-per-row .et_pb_column { width: 16.6667% !important; float: left; margin-bottom: 20px; }
.four-per-row, .five-per-row, .six-per-row {
display: flex;
flex-wrap: wrap;
}
}
To use this, assign the class (e.g., five-per-row) to the Row > Advanced > CSS Class field.
12. Uploading Custom Fonts to Divi (PHP + CSS)
Step 1: Allow font file types via PHP
In functions.php of your child theme (created via Divi Children), paste:
function my_custom_upload_mimes($mimes = array()) {
$mimes['ttf'] = "font/ttf";
$mimes['otf'] = "font/otf";
$mimes['woff'] = "font/woff"; /* Added WOFF */
$mimes['woff2'] = "font/woff2"; /* Added WOFF2 */
return $mimes;
}
add_filter('upload_mimes', 'my_custom_upload_mimes');
Step 2: Upload font files
- Go to Media > Add New
- Upload your
.ttf,.otf,.woffor.woff2file - Alternatively, use the Divi Theme Options > Upload Font feature.
Step 3 (Optional): Use @font-face CSS for advanced use
Paste this into your child theme's style.css or Divi > Theme Options > Custom CSS:
@font-face {
font-family: 'MyCustomFont'; /* Choose a name */
src: url('/wp-content/uploads/YYYY/MM/mycustomfont.woff2') format('woff2'), /* Path from Media Library */
url('/wp-content/uploads/YYYY/MM/mycustomfont.woff') format('woff'); /* Fallback */
font-weight: normal;
font-style: normal;
font-display: swap; /* Improves performance */
}
/* Example Usage */
body {
font-family: 'MyCustomFont', sans-serif;
}
Note: Replace /wp-content/uploads/YYYY/MM/mycustomfont.woff2 with the actual URL from the Media Library after uploading.
13. Performance: SiteGround Optimizer Settings
14. SEO: Rank Math Configuration
15. Security: Wordfence Setup
- Install and activate Wordfence Security
- Go through the initial setup/tour.
- Go to Wordfence > Firewall:
- Click "Optimize the Wordfence Firewall". Follow the steps.
- Set Firewall Status to "Enabled and Protecting".
- Review Brute Force Protection settings (adjust lockout thresholds if needed).
- Consider enabling "Real-Time IP Blocklist" (premium feature).
- Go to Wordfence > Login Security:
- Enable Two-Factor Authentication (2FA) - Highly Recommended. Use an authenticator app.
- Add login CAPTCHA (reCAPTCHA v3 recommended for less friction). Configure API keys.
- Disable XML-RPC authentication (if not needed, common attack vector).
- Prevent discovery of usernames through '/?author=N' scans.
- Go to Wordfence > Scan:
- Run your first scan. Review findings.
- Schedule regular scans (default is usually fine).
- Go to Wordfence > All Options (Review):
- Alerts: Configure email alerts for important events.
- Live Traffic: Can be disabled if not actively monitoring to save resources.
- Blocking: Review advanced blocking options if needed.
- Export and save your configuration (Tools > Import/Export Options) for reuse.
16. PHP Boost: .user.ini Settings
Create or edit the file named .user.ini in your website's root directory (usually /public_html or similar via SiteGround File Manager or FTP). Add/adjust these lines:
memory_limit = 1024M upload_max_filesize = 256M post_max_size = 256M max_execution_time = 600 max_input_vars = 15000 max_input_time = 300
These settings increase resources available to PHP, helping prevent timeouts and memory issues with complex Divi layouts, large media uploads, or plugin operations. Verify these changes in Site Tools > Devs > PHP Variables.
17. Appendix A: Advanced CSS Snippets
Add these to your Child Theme's style.css or Divi > Theme Options > Custom CSS.
Card Box Styling
Apply class card-box to a Column or Module.
.card-box {
background: white;
padding: 30px;
border-radius: 12px;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); /* Slightly stronger shadow */
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add hover effect */
}
.card-box:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
Custom Bullet Points
Apply class custom-bullets to a Text module containing an unordered list ().
.custom-bullets ul {
list-style: none;
padding-left: 0;
}
.custom-bullets ul li {
position: relative;
padding-left: 28px; /* Increased padding */
margin-bottom: 10px; /* Spacing between items */
}
.custom-bullets ul li::before {
content: "✔"; /* Checkmark */
position: absolute;
left: 0;
top: 2px; /* Adjust vertical alignment */
color: #2ecc71; /* Green */
font-weight: bold;
font-size: 1.1em;
}
Fancy Link Hover Effect
Apply class fancy-link to individual tags within a Text module.
.fancy-link {
position: relative;
text-decoration: none; /* Remove default underline */
display: inline-block; /* Needed for positioning */
padding-bottom: 3px; /* Space for the underline */
}