Trying to register new td_module_20 , but does not appear in theme panel

Posted in: Newspaper
Post count: 16

Trying to register new td_module_20 into td_config.php, but does not appear in theme panel

Also i would mention that i have try to register it into the td_config.php into the original theme and into the child theme, but no luck

here is what i try to register

td_api_module::add('td_module_20',
array(
'file' => td_global::$get_template_directory . '/includes/modules/td_module_20.php',
'text' => 'Module 20',
'img' => td_global::$get_template_directory_uri . '/images/panel/modules/td_module_19.png',
'used_on_blocks' => array('td_block_24'),
'excerpt_title' => 30,
'excerpt_content' => 50,
'enabled_on_more_articles_box' => false,
'enabled_on_loops' => true,
'uses_columns' => false, // if the module uses columns on the page template + loop
'category_label' => true,
'class' => 'td_module_wrap td-animation-stack',
'group' => '' // '' - main theme, 'mob' - mobile theme, 'woo' - woo theme
)
);

Post count: 20688

Hi,

If you would like to add a different module please follow these guides for more information and make sure you are implementing it as described
https://forum.tagdiv.com/api-modules-introduction/
https://forum.tagdiv.com/td_api_moduleadd/
https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/
Modifications to the config file will have to made in the main theme. The child theme cannot override this file
https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks

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