Cannot create new setting block in admin panel

Posted in: Newsmag
Post count: 4

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

Post count: 22421

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!

Post count: 4

I want do this in Child Theme: See screenshot

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/

Post count: 4
Post count: 22421

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!

Post count: 4

OK!

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newsmag’ is closed to new topics and replies.