Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › How to disable Meta Options
New Landing › How can we help? › Themeforest Theme Support › Dante › How to disable Meta Options
- This topic has 17 replies, 4 voices, and was last updated 9 years by
Mohammad – SUPPORT.
-
Posted in: Dante
-
April 1, 2014 at 9:18 am #63058
Hello
We would like to disable the “Meta Options” on the Product and Pages, so no one can edit them.
How can we achieve this?Thanks
AldoApril 1, 2014 at 11:00 am #63137HI,
Hi,
Please open to edit meta-boxes.php at /dante/swift-framework/
Find this code at line 269'pages' => array( 'post', 'portfolio', 'page', 'product', 'team', 'galleries' ), Replace with 'pages' => array( 'post', 'portfolio', 'team', 'galleries' ), Find this code at line 554 'pages' => array( 'post', 'portfolio', 'page' ), Replace with 'pages' => array( 'post', 'portfolio' ),
Hope it help you and please take a backup of file before making any changes
Thanks ๐
With Best Regards
Swift IdeasApril 4, 2014 at 9:57 am #64496Hi Mohammad
Thanks for your feedback.
Is there another way without editing core?Thanks,
AldoApril 4, 2014 at 10:14 am #64509Hi,
Please put this code at functions.php under theme directoryremove_meta_box( 'page_heading_meta_box' , 'page' , 'normal' ); remove_meta_box( 'page_heading_meta_box' , 'product' , 'normal' ); remove_meta_box( 'page_background_meta_box' , 'page' , 'normal' );
Hope it will help you sure .
Thanks
April 4, 2014 at 10:40 am #64516Hi,
Thanks, but unfortunately I get this error:
Fatal error: Call to undefined function remove_meta_box() in /www/htdocs/wp-content/themes/dante-child/functions.php on line 354Aldo
April 4, 2014 at 11:35 am #64535Hi,
Please remove that one code and use new one codeadd_action( 'admin_head', 'remove_my_meta_boxen' ); function remove_my_meta_boxen() { remove_meta_box( 'page_heading_meta_box' , 'page' , 'normal' ); remove_meta_box( 'page_heading_meta_box' , 'product' , 'normal' ); remove_meta_box( 'page_background_meta_box' , 'page' , 'normal' ); }
Thanks
April 4, 2014 at 11:38 am #64536Hi Mohammad
Thanks.
No error, but the Swift Meta Options are still here.Thanks
AldoApril 4, 2014 at 12:02 pm #64539Hi,
Please check on product and page edit screen and need marked screenshots .Thanks
April 4, 2014 at 12:05 pm #64540This reply has been marked as private.April 4, 2014 at 12:31 pm #64552Hi,
Please remove that one code and use new one code complete codeadd_action( 'admin_head', 'remove_my_meta_boxen' ); function remove_my_meta_boxen() { remove_meta_box( 'page_heading_meta_box' , 'page' , 'normal' ); remove_meta_box( 'page_heading_meta_box' , 'product' , 'normal' ); remove_meta_box( 'page_background_meta_box' , 'page' , 'normal' ); remove_meta_box( 'product_meta_box' , 'product' , 'normal' ); remove_meta_box( 'slider_meta_box' , 'page' , 'normal' ); remove_meta_box( 'page_meta_box' , 'page' , 'normal' ); }
Thanks
April 4, 2014 at 12:54 pm #64564Perfect!
Thanks a lot.
Cheers
AldoApril 4, 2014 at 12:58 pm #64566Hi,
You welcome . Glad ๐ that issue resolved .
Thanks
With Best Regards
Swift IdeasJuly 27, 2014 at 4:50 pm #94985This reply has been marked as private.July 27, 2014 at 7:50 pm #95009Hi support.
In the meantime, unless you were trying to fix my issue within the latest 15 mins, I got something upside-down. Home page broke > had to restore it > ok.
Backed up Dante settings > done.
I got into a product page > title messed up > before going to permalinks settings I noticed “Product Meta” was enable and working.
Once fixed title length through permalinks, “Product Meta” disappeared again.
Very weird………
Hope you can help me!July 27, 2014 at 11:17 pm #95026Check in the Screen Options tab at the top right of the page, and ensure you have it checked?
– Ed
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.