To change the placement of Kadence Elements in WordPress or exclude them from specific pages, you have several options depending on how the elements are being used (e.g., shortcodes, blocks, or widgets). Here's a step-by-step guide:
1. Edit Existing Pages/Posts Manually
If the Kadence Element was added via a shortcode or block, you can manually edit the page/post to remove or reposition it:
- Edit the page/post in the WordPress editor.
- Locate the Kadence Element block or shortcode (e.g.,
[kadence_element id="123"]).
- Remove or reorder the element as needed.
- Save the changes.
This is the simplest method but requires editing each page individually.
2. Use Kadence Elements' Visibility Settings
If your Kadence Elements plugin supports conditional visibility, you can exclude them from specific pages:
- Edit the Kadence Element (go to Kadence Elements > All Elements).
- Look for Visibility Rules or Conditions (this depends on your plugin version).
- Set rules to hide the element on specific pages (e.g., by page ID, slug, or URL).
- Save the element.
Note: Not all versions of Kadence Elements may have this feature. Check the plugin's documentation or settings.
3. Use a Plugin for Conditional Display
If Kadence Elements doesn’t support visibility rules, use a plugin like "Conditional Content" or "User Role Editor" to control where the element appears:
- Install and activate a plugin (e.g., Conditional Content).
- Add the Kadence Element shortcode to a conditional block (e.g., show only on specific pages).
- Save and test.
4. Use Custom Code (Advanced)
If you’re comfortable with code, you can use functions.php to conditionally display elements based on the current page:
// Example: Hide Kadence Element on specific pages
function exclude_kadence_element_on_pages() {
$excluded_pages = array(123, 456); // Page IDs to exclude
if (is_page($excluded_pages)) {
return false; // Prevent the element from displaying
}
return true;
}
add_filter('kadence_element_display', 'exclude_kadence_element_on_pages');
Replace 123, 456 with the actual page IDs you want to exclude. This requires knowing the correct hook/filter name for Kadence Elements, which may vary.
5. Use Page Templates or Widgets
If the element is added via a widget or theme template:
- Widgets: Go to Appearance > Widgets, edit the widget, and remove the Kadence Element from specific sidebars.
- Theme Templates: Edit the
page.php or single.php file in your theme to remove the element’s code.
6. Check Kadence Documentation
If you’re unsure, refer to the official Kadence Elements documentation or support forums. They may have specific instructions for your version.
Summary
| Method | Best For | Complexity |
|---|
| Manual Edit | Few pages | Low |
| Visibility Settings | Built-in conditional rules | Medium |
| Conditional Plugins | Advanced control | Medium |
| Custom Code | Custom logic or bulk exclusion | High |
| Widget/Template Edit | Theme-level placement | Medium |
Let me know if you need help with a specific method!