I tried to filter the output of the core template file but I couldn’t figure out how?
Instead I’ve copied the file
kleo/page-parts/general-header-section.php
to the child folder and created the following filter
COPY CODE
add_filter('kleo_header', 'kleo_header_content_mod', 10);
function kleo_header_content_mod(){
return get_template_directory_uri('general-header-section');
};
removing the following
COPY CODE
<div class="kleo-mobile-switch">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="sr-only"><?php _e("Toggle navigation",'kleo_framework');?></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="kleo-mobile-icons">
<?php
/** kleo_mobile_header_icons - action
* You can put here various icons using this action
*
* @hooked kleo_woo_mobile_icon - 10
*/
do_action('kleo_mobile_header_icons');
?>
</div>
This seems to work fine, is there anything else I need to take into account? and is there a better way to acheive the desired result?
Thanks