• I want to display some text in mobile menu area like hongkiat.com website or this techradar.com. do you have any idea

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    I used that theme on one of my sites and there is a section of code in the header.php file (if I’m not mistaken) that contains a section for adding mobile menu text.

    I would assume that it would be possible to load an image of your liking in the mobile menu bar. You can then make your change permanent by using a child theme.

    Not sure how to call up images in the header filer but at least you can start looking in the right area of the theme!

    -Cheers

    Hi Yenctt,

    You can find “nav-text” in header.php

    <header id="header">
    
    <?php if ( has_nav_menu('topbar') ): ?>
    	<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>

    Put your text in this line:

    <div class="nav-text"><!-- put your mobile menu text here --></div>

    Thread Starter yenctt

    (@yenctt)

    Thank you so much

    Your welcome @yenctt

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘mobile view’ is closed to new replies.