-
Author
-
July 12, 2014 at 19:29 #22454LeBearParticipant
I’m trying to figure out the best method for disabling the responsive menu kleo-mobile-switch as I’m using another plugin to deal with this.
Could you advise how to approach this?
Attachments:
You must be logged in to view attached files.July 12, 2014 at 23:27 #22459LeBearParticipantI 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 CODEadd_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
August 8, 2014 at 16:34 #25196AbeKeymasterHi, really sorry for the late reply, somehow the topic skipped our queue.
That is the best way of doing it if you don’t need it. Just make sure to use the child theme and copy the template to the child theme so on a theme update your changes are kept
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
The forum ‘KLEO’ is closed to new topics and replies.