Mobile Menu Text
-
Hi All,
I’m using a child theme of Hueman v 3.3.7 and want to add a title to the header-nav-topbar.
The core code is:
<nav class="nav-container group" id="nav-topbar"> <div class="nav-toggle"><i class="fa fa-bars"></i></div> <div class="nav-text"><!-- put your mobile menu text here --></div> <div class="nav-wrap container"><?php wp_nav_menu(array('theme_location'=>'topbar','menu_class'=>'nav container-inner group','container'=>'','menu_id' => '','fallback_cb'=> false)); ?></div> <div class="container"> <div class="container-inner"> <div class="toggle-search"><i class="fa fa-search"></i></div> <div class="search-expand"> <div class="search-expand-inner"> <?php get_search_form(); ?> </div> </div> </div><!--/.container-inner--> </div><!--/.container--> </nav><!--/#nav-topbar-->
I tried the following filter function in the child theme
// Change top bar nav title add_filter( 'nav_text', 'my_nav_text', 10 ); function change_top_bar_nav_text($content) { return 'ANNETTE CHARDON PRODUCCIONES'; }
but it did not work. What am I doing wrong?
Thank you all in advance – Dario
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Mobile Menu Text’ is closed to new replies.