With version 1.4.2 we've added custom hooks in the theme which allows you to customize the Course Search Page.
The hook is located before the search results and can be used effectively to display various notices, sidebars etc..
In this tutorial we'll add a custom sidebar in the Course Search page.
0. Install the WPLMS Customizer plugin.
1. Locate the file : WP Admin -> Plugins -> Editor -> WPLMS Customizer -> customizer_class.php
2. Add the following code in the _construct function:
PHP Code:
add_action('wplms_course_sidebar_hook',array($this,'wplms_course_search_sidebar'));
3. Add the following function in the Class :
PHP Code:
function wplms_course_search_sidebar(){ echo '<div class="col-md-3 right">'; if ( !function_exists('dynamic_sidebar')|| !dynamic_sidebar('mainsidebar') ) : ?> <?php endif; echo '</div>'; }