Page Settings Metabox

The Total theme includes a powerful custom built (for Total only) metabox that allows you to tweak multiple aspects of the current page/post. This includes, but isn’t limited to, disabling page elements like the footer, callout, top bar…etc, adding a slider to the top of the page, changing the page background and altering the footer callout content and button.

page-settings-metabox

Adding/Removing The Page Settings From Post Types

As a developer you may want to have access to the same page settings for your custom post types, luckily Total has been coded with this in mind, that means all the custom fields available for the metabox can be used for any post type and all you have to do is add a little function to your child theme if you want the actual metabox to be visible on the post type editor screen. And the built-in filter will also allow you to quickly remove the metabox from any post type you don’t want it on.

// Sample function showing how to tweak the metaboxes display for post types
add_filter( 'wpex_main_metaboxes_post_types', function( $types ) {

  // Add to my custom-type post type
  $types[] = 'custom-type';

  // Remove from blog posts
  unset( $types['post'] );

  // Return post types array
  return $types;
  
}, 40 );

Default post types

The metabox is enabled by default on the following post types:  post, page, portfolio, staff, testimonials, page, product, tribe_events.

Adding New Fields/Tabs To The Metabox?

Yes, this is possible! Have a look at the example snippet here.