| name | kadence-theme-guide |
| description | Comprehensive guide to building and recovering Kadence-based WordPress sites. Covers global styles, Kadence Blocks, Header/Footer builder, template library, child theme best practices, and post-attack recovery sequences.
|
| triggers | ["Kadence","Kadence theme","Kadence blocks","Kadence header builder","Kadence global styles","Kadence recovery"] |
Kadence Theme Guide
Kadence is a lightweight, performant WordPress theme with built-in block support,
a full-site header/footer builder, and deep Kadence Blocks integration.
File Structure
wp-content/themes/kadence/
├── style.css ← Theme metadata + version
├── functions.php ← Core functionality
├── header.php ← Template header (minimal — Kadence uses block header)
├── footer.php ← Template footer
├── inc/
│ ├── customizer/ ← All Customizer settings
│ ├── blocks/ ← Kadence Blocks integration
│ └── template-parts/ ← Reusable template fragments
└── assets/
├── css/ ← Theme CSS (compiled)
└── js/ ← Theme JS
wp-content/themes/kadence-child/ ← Your child theme (always use a child)
├── style.css ← /* Template: kadence */
├── functions.php ← Enqueue parent + add hooks
└── [override files] ← Any file from parent can be overridden here
Global Colours and Typography
Set in Appearance → Customise → Global Colours and Global Typography.
These generate CSS custom properties:
:root {
--global-palette1: #3182CE;
--global-palette2: #2B6CB0;
--global-palette3: #1A202C;
--global-palette4: #2D3748;
--global-palette5: #4A5568;
--global-palette6: #718096;
--global-palette7: #EDF2F7;
--global-palette8: #F7FAFC;
--global-palette9: #FFFFFF;
}
Override these in your child theme's style.css to change the palette globally:
:root {
--global-palette1: #E53E3E;
}
Kadence Blocks
Installed as a plugin (kadence-blocks). Core blocks available free:
| Block | Use |
|---|
| Row Layout | Multi-column layouts with full control |
| Advanced Heading | Custom typography per heading |
| Advanced Button | Button groups, hover effects |
| Info Box | Icon + text cards |
| Tabs | Tabbed content sections |
| Accordion | FAQ-style expandable content |
| Form | Contact forms with basic spam protection |
| Advanced Gallery | Masonry, carousel, grid galleries |
Kadence Blocks Pro adds: Slider, Portfolio, Posts Grid, WooCommerce blocks.
Kadence Blocks CSS selectors
.kadence-column { }
.wp-block-kadence-advancedheading { }
.wp-block-kadence-infobox { }
.kt-tabs-wrap { }
.kt-accordion-panel { }
Header/Footer Builder
Kadence has a drag-drop header and footer builder in the Customiser:
Appearance → Customise → Header Builder / Footer Builder
Layout zones:
- Top bar: 3 columns (left/centre/right)
- Main header: 3 columns
- Bottom bar: 3 columns
- Footer: 1–6 columns
Available elements: Logo, Navigation, Button, HTML, Social, Search,
Cart, Off-Canvas, Divider.
Override header for specific page (PHP)
add_filter( 'kadence_header_layout', function( $layout ) {
if ( is_page( 'landing-page' ) ) {
return 'minimal';
}
return $layout;
} );
Post-Attack Recovery Sequence
If the Kadence theme is broken after an attack:
python scripts/security/wp-scan.py --config config/config.yaml
python scripts/security/wp-theme-audit.py --config config/config.yaml --theme kadence
python scripts/management/wp-theme-switch.py --config config/config.yaml \
--activate twentytwentyfour
python scripts/restoration/wp-plugin-restore.py --config config/config.yaml \
--plugins kadence
python scripts/restoration/wp-elementor-fix.py --config config/config.yaml
python scripts/management/wp-theme-switch.py --config config/config.yaml \
--activate kadence
python scripts/security/wp-theme-audit.py --config config/config.yaml --theme kadence
Customiser Settings Recovery
Kadence stores all Customiser settings in wp_options as theme_mods_kadence.
This serialized value can be exported/imported:
mysql -u USER -pPASS DB -e \
"SELECT option_value FROM wp_options WHERE option_name='theme_mods_kadence';" \
> kadence-mods-backup.txt
mysql -u USER -pPASS DB -e \
"UPDATE wp_options SET option_value='PASTE_SERIALIZED_VALUE' \
WHERE option_name='theme_mods_kadence';"
Performance Tips
- Enable Lazy Load in Kadence settings
- Use Kadence Blocks Row Layout instead of shortcodes for better output
- Set Kadence → Performance → Remove Kadence CSS for non-Kadence pages
- Use child theme for any CSS overrides — never edit parent theme files
Common CSS Targets
#masthead { }
#site-navigation { }
nav.kadence-navigation { }
.kadence-hero { }
#colophon { }
.entry-content { }
ul.products li.product { }