Jump to content

Archived

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

flourishdesignstudio

Add a title to mobile-menu?

Recommended Posts

flourishdesignstudio    9
flourishdesignstudio

can I add a title to the mobile-friendly navigation, so that it appears to the left of the menu icon?

Share this post


Link to post
Share on other sites
evan    0
evan

Hey flourishdesignstudio,

 

Your the first person to ask about this, but I think it's a good idea.

 

I'm not sure if justifies another option, but I may add a filter for it.  Are you familiar with WP hooks & filters?

Share this post


Link to post
Share on other sites
flourishdesignstudio    9
flourishdesignstudio

Hi Evan! I've never used a hook, but it's been something that I want to learn if you can talk me through it. I already have a child theme created.

Share this post


Link to post
Share on other sites
evan    0
evan

Filters are really cool.

 

It's basically like a checkpoint during execution.  Filters pass some information, and then generally asks "anyone else want to do something with this?", at which point you can :)  You can either add to it however you wish, or even change it completely.

 

Hooks & filters are pretty much the same thing, the only difference is that filters require that you return some data back, where as actions don't do anything with a returned value.

 

There are many tutorials about how to use hooks and filters.  Perhaps I'll write one for betterdms.com :)

 

Stay tuned for an update.  The best way right now is probably just to follow me on twitter: @aaemnnosttv.

Share this post


Link to post
Share on other sites
evan    0
evan

I'm replying here rather than the other thread for the sake of relevance.

 

I haven't decided if I will make an option for the toggle text or not.  I think it's probably better to make it filterable, and then you can make it however you want.

 

Regarding whether most people recognize that as indicating a menu is there... I think this has been embraced as an unspoken standard in a big way.

 

There are many big websites and mobile apps (facebook for example) that use this symbol to toggle a menu.  Two big websites that come to mind are starbucks.com and theonion.com.

I don't think it's necessarily a bad idea to add a title/label next to it though.  The need for such a thing definitely depends on the audience of the website as well.

 

I'll post an update here when there is a solution :)

Share this post


Link to post
Share on other sites
Jake    74
Jake

Hi flourishdesignstudio I agree with Evan, that's a great suggestion. In the meantime, you can start doing a little reading on the power of hooks at http://docs.pagelines.com/advanced/hooks which also links to a wonderful intro to hooks at http://wpcandy.com/teaches/how-to-use-wordpress-hooks/.


Have you searched the forums yet or checked out the DMS user docs?

PageLines geek, blogging at MyUntangledLife.com

Share this post


Link to post
Share on other sites
evan    0
evan

1.2 was released today which adds several hooks for you to do things like add a title or other content, or change the icon/text for the mobile toggle button.

 

For now the source is your only how-to, but I plan on putting together a little tutorial on my website for it soon.

 

Cheers

Share this post


Link to post
Share on other sites
micstepl+    15
micstepl

Where can I find the HeroNav HOOKS?

Share this post


Link to post
Share on other sites
micstepl+    15
micstepl

1.2 was released today which adds several hooks for you to do things like add a title or other content, or change the icon/text for the mobile toggle button.

 

For now the source is your only how-to, but I plan on putting together a little tutorial on my website for it soon.

 

Cheers

Where can I find the HeroNav HOOK tagt allows to put HEADLINE into Mobile header?

Share this post


Link to post
Share on other sites
Guest   
Guest

micstepl,

 

The hooks are documented in the source.  If you're on the current version (1.3 as of this writing) you will find these starting around line 355 in plugins/hero-nav/sections/hero-nav/inc/HeroNav.php.  You will find several hooks there that you may find useful.

Share this post


Link to post
Share on other sites
sonaros    0
sonaros

Evan,

 

Would it be possible to post the what hook we should use and the code to get this to show up on Mobile only?

 

Thanks! 

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
       
    • webmktco
      By webmktco+
      Evan,
       
      I've had issues with making edits to the Hero Nav settings for a while now.  I've been able to work around the issue, but I thought I'd bring this to your attention.
       
      Do you know why this is happening and how to fix it?
       
      Here's the debug info: http://josephfoxdds.myddsdev.com/?pldebug=1

      WP: 4.0
      DMS: 2.1.1
×