Hi.
I want add custom setting block at Newsmag Option Admin Panel.
I’m using Child Theme.
I have next file structure:
/themes/Newsmag-child/includes/td_config.php
I copy td_config.php from parent theme and past next code
if (is_admin()) {
/**
* generate the theme panel
*/
td_global::$all_theme_panels_list = array (
'theme_panel' => array (
'title' => TD_THEME_NAME . ' - Theme panel',
'subtitle' => 'version: ' . TD_THEME_VERSION,
'panels' => array (
............
<strong> /*Send info button*/
'send-info' => array( // SEND INFO custom button
'text' => 'SEND INFO button',
'ico_class' => 'td-send-info',
'file' => td_global::$get_template_directory_uri.'/includes/wp_booster/wp-
admin/panel/views/td_panel_send_info.php',
'type' => 'in_theme'
)</strong>
................
)
)
);
/themes/Newsmag-child/includes/wp_booster/wp_admin/panel/views/td_panel_send_info.php /*I create new file*/
But nothing happened. New setting block is not in admin panel.
What I do wrong?
Thanks,
Julia
Hello,
In order to create a new block you can use the theme api system: https://forum.tagdiv.com/td_api_blockadd/
Please note this is not covered by the theme support though as it represents customization.
Thank you!
I want do this in Child Theme:
I created the structure of folders and files, as I wrote above and added the code in td_config.php in Child Theme. But nothing happened.
I did not find the answer to my question https://forum.tagdiv.com/td_api_blockadd/
Screen shot https://drive.google.com/file/d/0B0N435BleP6RS2diYjZTeUl6UHc/view?usp=sharing
-
This reply was modified 9 years by
juliajune.
Hello,
That is an entirely different matter and it will not work at all from the child theme. The child theme support is limited in our theme and only these files will work properly from the child theme: https://forum.tagdiv.com/newsmag-child-theme-support/
The content metaboxes in the theme panel are not on the list of files compatible with the child theme.
The panel options are added in wp-booster->wp-admin->panel https://www.screencast.com/t/poymAV6Dr
These files will not work from the child theme.
Thank you!