Jump to content

Archived

This topic is now archived and is closed to further replies.

Adrianna Lima

Add word "Menu" beside mobile nav icon

Recommended Posts

Adrianna Lima

Hi,

 

    When website is viewed in mobile mode, the icon on the right appears. Can i add the word " MENU " beside it? If so how do i do that ?

 

regards 

Share this post


Link to post
Share on other sites
Guest

This has been asked about a few times and the code to do this is quite simple, so I'll include it here.  Simply add this it to your theme's `functions.php`.

function add_menu_to_hero_nav_toggle( $inner )
{
	return "MENU  $inner";
}
add_filter('hero_nav_mobile_toggle_inner', 'add_menu_to_hero_nav_toggle');

If you prefer the word to be on the right side, you would simply change the return to `$inner  MENU`.

 

Cheers!

Share this post


Link to post
Share on other sites
Guest

Hi there.  Was the code I provided helpful at all?

 

Anything is possible, but coding all of that for you is really beyond the scope of this support forum.

Share this post


Link to post
Share on other sites

  • Similar Content

    • vikzee
      By vikzee+
      Hero Nav 1.3
      DMS 2.1.9.3
      Wordpress 4.2.2
      I just downloaded the latest version of Hero Nav from my Pagelines account but when I try to upload it to the plugins page it gives me this error:
      The package could not be installed. No valid plugins were found.
      Plugin install failed.
      So I unzipped the package and find that all it contains is a README file.
      Can you send me the latest version (vikzee (@AT@) yahoo.co.uk) in it's entirety or re-load it to the Pagelines site so people who've paid for it can get the latest version?
      Thanks! 
    • AppLEaDaY
      By AppLEaDaY
      Hello.
       
      I did not personally install what I'm trying to fix. I'm working on a preexisting installation of WordPress and Pagelines.
      But when I arrived the problem was already there: just upon posts displaying in the hero nav main menu I get a "Home" link not working,
      due to a anchor completely missing the href attribute.
       
      I made some tests and I noticed what follows.
      The same problem occurs with every plain link I add that hero menu (not with pages), I mean with links showed as CUSTOM Curiously enough I found in a sublevel a link of that kind, it has somehow back in the past inserted by someone else, no me: it works just like it is supposed to do No problem of that kind in a fixed navigation bar (I tried to enable it) I underscore the mentioned problem occurs only when displaying posts, not with pages.
       
      Any clues? Since I'm afraid it may take a too long time to fix this specific problem, I also ask: could you possibly point to what I am supposed to read in order to do without the hero nav bar and use some other navigation bar in the same place of the template?
       
      Thanks in advance
       
       
      Andrea
    • limelight
      By limelight+
      Hello, I'm having a strange issue with the background of my Hero Nav drop-down being "see through". Can anyone direct me on how to make this solid black instead??  Thank you! 
       
      Site URL: http://multicolores.org/ And there is a drop-down menu when you hover over 'About'.
       
       
    • ScribbleGD
      By ScribbleGD+
      Hi there,
       
      Whenever I make changes to the formatting options in the Hero Nav section of Site Settings such as font base colour it doesn't appear to change the look of my nav bar,
       
      Any reason as to why this is happening? Screenshot attached.
       
      Thanks.
       
      URL - staging.scribblegraphicdesign.com.au
       
      Tim
       
    • jmad
      By jmad
      I'd like to be able to add a logo to HeroNav.  Particularly on mobile so the icon would be either left or right and the logo on the other.  
       
      I added a logo just as a menu item but this didn't work perfectly.  
×