Add Custom Module
-
Topic
-
So I’m trying to make a module for the theme and have taken the sliders module, modified it, and am trying to get it added from within my child-theme but for some reason the menu item just won’t show. Here’s the code I’ve added to my child theme to try and get the menu loaded.
/*-------------------------------------------------------*/ /* Start Child Theme /*-------------------------------------------------------*/ // Start the party ... function mod_module_caps( $module_caps ) { $module_caps['reviews'] = 'edit_pages'; return $module_caps; } add_filter( 'themeblvd_admin_module_caps', 'mod_module_caps' ); function mod_global_config( $setup ) { $setup['primary']['reviews'] = true; $setup['admin']['reviews'] = true; return $setup; } add_filter( 'themeblvd_global_config', 'mod_global_config' ); // Reviews Framework define( 'REVIEWS_FRAMEWORK_URL', TB_FRAMEWORK_URL . '/admin/modules/reviews/' ); define( 'REVIEWS_FRAMEWORK_DIRECTORY', TB_FRAMEWORK_DIRECTORY . '/admin/modules/reviews/'); require_once( TB_FRAMEWORK_URL . '/admin/modules/reviews/reviews-framework.php' );
Any ideas what might be stopping this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.