badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Changing the words Navigation on mobile theme version

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26489
    Bel
    Participant

    Hi there,

    I was wondering if it was possible to change the words ‘Navigation’ on the mobile theme version instead to something like menu…?

    thanks!

    http://www.aquaguard.net.au

    #26509

    Hi Bel,

    This feature is not available in our theme. It needs code customization. If you really wanna change the code then the file is inside theme folder (attitude )-> library -> structure -> functions -> functions.php on line no 247 to 259 you will see this below code
    /**************************************************************************************/

    add_filter( 'wp_nav_menu_items', 'attitude_nav_menu_alter', 10, 2 );
    /**
    * Add default navigation menu to nav menu
    * Used while viewing on smaller screen
    */
    if ( !function_exists('attitude_nav_menu_alter') ) {
    	function attitude_nav_menu_alter( $items, $args ) {
    		$items .= '<li class="default-menu"><a href="'.esc_url( home_url() ).'" title="Navigation">'.__( 'Navigation','attitude' ).'</a></li>';
    		return $items;
    	}
    }

    Replace above code with is below code

    /**************************************************************************************/
    
    add_filter( 'wp_nav_menu_items', 'attitude_nav_menu_alter', 10, 2 );
    /**
    * Add default navigation menu to nav menu
    * Used while viewing on smaller screen
    */
    if ( !function_exists('attitude_nav_menu_alter') ) {
    	function attitude_nav_menu_alter( $items, $args ) {
    		$items .= '<li class="default-menu"><a href="'.esc_url( home_url() ).'" title="Menu">'.__( 'Menu','attitude' ).'</a></li>';
    		return $items;
    	}
    }
    

    Remember one thing that each and every time you update to new version then the same things you need to do again and again. So better make a child theme and then customize the code so that your data will not be lost while updating to new version.

    Thank you!

    #26518
    Bel
    Participant

    great! thank you so much it worked 🙂

    #26559

    You Welcome Bel

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.