Custom Sections

Custom Sections is a powerful way to add custom content to your website. Custom Sections can be used in 2 different ways.

  1. Replace the theme’s default Header/Footer or 404 Page with the one you’ve built with one of the listed page builders
  2. Add your custom content to one of the available Hooks in Neno

All that can be done based on flexible display conditions.

Create a Custom Section

To create a Custom Section, navigate to Appearance -> Custom Sections and click Add New. You can now start adding content to your Custom Section using the default WYSIWYG-Editor.

Page builders that are supported to create Custom Sections with:

  • Beaver Builder
  • Elementor

Beaver Builder

To enable Custom Sections for Beaver Builder, please follow the steps below.

  1. Navigate to Settings -> Page Builder
  2. Click on Post Types
  3. Tick off Custom Sections
  4. Hit Save Post Types

Elementor

To enable Custom Sections for Elementor, please follow the steps below.

  1. Navigate to Elementor -> Settings
  2. Under Post Types, tick off Custom Sections
  3. Hit Save Changes

Divi

To enable Custom Sections for Divi, please follow the steps below.

  1. Navigate to Divi -> Plugin Option
  2. Under Post Type Integration (Tab), tick off Custom Sections
  3. Hit Save Settings

Locations

Custom Sections can be assigend to various Locations. The available locations are

  • Header
  • Footer
  • 404 Page
  • Hooks

While Header/Footer & 404 Page will replace the theme’s default output, Hooks will add your Custom Section to one of the hooks available in Neno.

Display Rules

You can display your Custom Section based on flexible display conditions.

Add Custom Hooks

In some cases you may want to add your own hooks to the list of available hooks in Custom Sections for instance to add a Custom Section to areas in a 3rd party plugin.

To do that simply use a filter as per the example below.

function prefix_your_custom_hooks( $hooks ) {

	$custom_hooks = array(
		'Your Custom Hooks' => array(
			'prefix_custom_hook_1',
			'prefix_custom_hook_2',
		),
	);

	$hooks = array_merge( $hooks, $custom_hooks );

	return $hooks;

}
add_filter( 'neno_custom_section_hooks', 'prefix_your_custom_hooks' );