Skip Navigation

[Resolved] Hide the Template Layout metabox

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 7 years ago.

Assisted by: Minesh.

Author
Posts
#600373
Screen Shot 2017-12-20 at 2.07.00 PM.png

Hi I've attempted to remove the metabox as highlighted in the attached screenshot however it doesn't seem to work for me. Here's a gist of what I've used in my functions.php

hidden link

However while this typically works with other metaboxes it doesn't seem to work here. Is there a way to hide this metabox?

Thanks

#600401

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - to hide the side bar box for "Template Layout", please try to add following code to your current theme's functions.php file.

add_action( 'admin_head', 'wpv_custom_admin_head', 20);
function wpv_custom_admin_head() {
    remove_meta_box( 'wpddl_template', 'page', 'side' ); 
}

Where:
- Replace 'page' with your desired post type slug