Knowledge Base styles control how your knowledge base articles and sections look on your website. Think of them as pre-designed themes that determine colors, layouts, spacing, and visual effects.
What Are Styles?
Each style is a complete visual design for your knowledge base:
- Layout – How sections and articles are arranged
- Colors – Background, text, borders, and accent colors
- Typography – Font sizes and spacing
- Effects – Hover states, shadows, and transitions
The plugin includes 9 professionally designed styles (2 free, 7 pro) that you can switch between instantly.
Why Customize?
While each style looks excellent out of the box, you may want to:
- Match your brand colors
- Adjust contrast for better readability
- Create a unique look for your knowledge base
- Coordinate with your theme’s design
Easy Customization with CSS Variables
All styles use CSS Custom Properties (CSS Variables), which means:
- ✅ Change colors in one place, update everywhere
- ✅ No plugin files to edit – add CSS through WordPress
- ✅ Changes survive plugin updates
- ✅ Simple copy-paste – no coding skills required
Benefits of CSS Variables
- ✅ Easy to customize – Change colors in one place
- ✅ No file editing – Add custom CSS through WordPress settings
- ✅ Update-safe – Changes persist through plugin updates
- ✅ Real-time preview – See changes immediately
- ✅ No coding required – Simple copy-paste customization
Available Styles
Knowledge Base includes nine professionally designed styles to match your site’s design.
Free Styles (2)
- Legacy – Float-based layout for compatibility with older themes
- Classic – Modern Grid Layout with CSS Grid for contemporary designs
Pro Styles (7)
- Card Layout – Modern cards with hover effects and shadows
- Minimal – Clean, minimalist design with subtle borders
- Boxed – Strong borders and structured sections
- Gradient – Colorful gradient accents for vibrant designs
- Compact – Dense information layout for maximum content
- Magazine – Editorial two-column design for rich content
- Professional – Corporate business style with formal aesthetics
Key Features
All styles include:
- ✅ 4 Variants – Main, minified, RTL, and minified RTL versions
- ✅ RTL Support – Full right-to-left language support (Arabic, Hebrew, etc.)
- ✅ Optimized Performance – Minified CSS files for faster loading
- ✅ Mobile Responsive – Works perfectly on all devices
- ✅ Automatic Fallback – Graceful degradation if Pro is deactivated
How Styles Work
- The free version shows only two styles (Classic and Legacy)
- Pro version automatically adds 7 additional premium styles
- Only the selected style loads on your pages (no bloat)
- Switching styles is instant – just select from the dropdown
Quick Start
3-Step Customization Process
- Choose your style from the dropdown (Settings → Knowledge Base → Styles)
- Find the CSS variables for that style (see sections below)
- Add custom CSS to override colors (Settings → Knowledge Base → Styles → Custom CSS)
Example: Change Primary Color
That’s it! The knowledge base will now use your brand color throughout.
Where to Add Custom CSS
Method 1: Plugin Settings (Recommended)
Path: WordPress Admin → Knowledge Base → Settings → Styles
- Scroll to the “Custom CSS” field at the bottom
- Paste your CSS variables
- Click “Save Changes”
- View your knowledge base to see changes
Method 2: WordPress Customizer
Path: Appearance → Customize → Additional CSS
- Click “Additional CSS”
- Add your CSS variables
- Preview changes in real-time
- Click “Publish”
Method 3: Child Theme (For Developers or Advanced users)
Add to your child theme’s style.css:
Free Styles Customization
Classic Style
Default Colors:
Customization Example:
Legacy Style
Important Note: The Legacy style uses hardcoded CSS values and does not support CSS variables. This is the original style maintained for backward compatibility.
If you need to customize the Legacy style, you’ll need to override the CSS rules directly:
Recommendation: For easier customization, consider switching to the Classic style or any Pro style, all of which support CSS variables.
Pro Styles Customization
Card Layout (modern.css)
Default Colors:
Customization Example:
Minimal Style
Default Colors:
Customization Example:
Boxed Style
Default Colors:
Customization Example:
Gradient Style
Default Colors:
Customization Example:
Compact Style
Default Colors:
Customization Example:
Magazine Style
Default Colors:
Customization Example:
Professional Style
Default Colors:
Customization Example:
Advanced Customization
Multi-Product Color Schemes
If you’re using multi-product mode, you can target specific products:
Dark Mode Support
Add dark mode using media queries:
Hover and Interactive States
Most styles have hover states you can customize:
Common Customization Examples
Example 1: Brand Color Consistency
Match your knowledge base to your brand:
Example 2: High Contrast (Accessibility)
Improve readability with higher contrast:
Example 3: Subtle and Minimal
Create a very subtle, minimal look:
Example 4: Bold and Vibrant
Make it pop with bold colors:
Example 5: Seasonal Themes
Holiday/Winter Theme
Summer Theme
Troubleshooting
My Custom Colors Aren’t Showing
Solution 1: Clear your browser cache
- Press
Ctrl+Shift+R(Windows) orCmd+Shift+R(Mac)
Solution 2: Check CSS syntax
/* ✅ Correct */
:root {
--wzkb-color-primary: #2563eb;
}
/* ❌ Wrong - missing semicolon */
:root {
--wzkb-color-primary: #2563eb
}
/* ❌ Wrong - wrong selector */
.root {
--wzkb-color-primary: #2563eb;
}Solution 3: Use !important if the theme overrides variables
:root {
--wzkb-color-primary: #2563eb !important;
}Colors Look Different on Mobile
Solution: Some CSS may be cached. Add this to force reload:
/* Force fresh styles */
:root {
--wzkb-color-primary: #2563eb !important;
}Specific Elements Not Changing
Solution: Target elements directly:
/* Override section headings specifically */
.wzkb h3.wzkb-section-name {
background: #your-color !important;
color: #fff !important;
}Color Contrast Issues
Tool: Check contrast at https://webaim.org/resources/contrastchecker/Opens in a new window
WCAG AA Standard: Minimum 4.5:1 ratio for normal text
/* Good contrast example */
:root {
--wzkb-color-text: #1f2937; /* Dark text */
--wzkb-bg-white: #ffffff; /* White background */
/* Ratio: 15.8:1 ✅ */
}Color Palette Generators
Need help choosing colors? Try these tools:
- Coolors.coOpens in a new window – Generate color palettes
- Adobe ColorOpens in a new window – Color wheel and harmony rules
- Contrast CheckerOpens in a new window – Ensure accessibility
