Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Opening Submenu by Clicking instead of Hovering the Parent Item

         

deeper

4:02 pm on Oct 10, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi,
My headernavigation has seven items and one of them is a parent item (dropdown menu) showing four submenu items.

By hovering the parent item the four sub items expand.
I'd prefer clicking instead of hovering. One reason is bad support of hover on mobile devices.

WP and my theme both support hover for dropdown. There is obviously no easy way to change from hover to click.

Many webmaster prefer clicking the parent in order to open a submenu and WP is spreaded widely.
Therefore some solutions should exist, I suppose. The simpler the better.

Anyone can help?

not2easy

6:20 pm on Oct 10, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Are these menus contolled via javascript? It usually can be edited from "OnMouseover" to "OnClick".

deeper

9:14 pm on Oct 10, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month



CSS.
The parent is created like an usual item in WP, but as it should not work as a real link, I deleted the URL afterwards --> no confusing link behaviour tempting to click and landing "nowhere". It's more like a heading.

Such an < a > without URL is W3C-valid and combined with clear anchor/title attr. and an triangle pointing down very userfriendly.

I'm very surprised: millions of WP-sites, all have navs and many also dropdowns... millions of mobile/touchscreen-user... most webmaster prefer click-parents... but hover is standard and click not supported.

deeper

1:47 pm on Oct 14, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month



This seems to comprehend several ways:
[stackoverflow.com...]

But as a non-coder I don't understand it.

Anyone can consider the suggested solutions there and mention what fixes may be the best and why?

lorax

4:32 pm on Oct 14, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I don't mean to sound dismissive but if you don't understand it, you should probably seek a programmer to help you with it. Whether you use script or CSS, you could affect other things if you're not careful/aware of what you're doing.

deeper

6:18 pm on Oct 14, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month



you should probably seek a programmer to help you with it. Whether you use script or CSS, you could affect other things if you're not careful/aware of what you're doing.


Yes, absolutely.
Implementation may need a programmer. But what task shall I give him? Before hiring someone it's my task and wish as responsible webmaster to consider the options and deciding what I want. The programmer does not know my goals, my visitors, connections with my other sites ect.

Usually a single programmer is not able to consult me properly. According to my experience they stick to one or two options they know and are able to implement. A third option may be the best, but he/she is not able to do it (properly, without spending much time): He probably won't recommend the third option.

Most of the programmers are "tech-guys", they don't want to hear and understand your wishes, your background behind the site, doing teamwork. It would need more than just coding skills... therefore forums can be more valuable regarding this first step.

However, give me such a guy, who is skilled and experienced in WP, CSS and my complicated theme called "Headway"; having a wider view, consulting and programming, able to work with me as team and I would be happy to hire him.

Indeed the last two days I offered exactly this in some forums! For helping me on the long run, not just dropdown-clicking. Unfortunately most don't know Headway, but this is indispensable. I got some responses from programmers without knowledge of Headway and now guess what they said!

"I'm excellent in CSS and I can accomplish all just with CSS".

"Take another theme".

"Forget Wordpress".

"All themes are more or less working the same way, I will check Headway for an hour and as experienced programmer this will be sufficient".

"Doing together via skype? Hm, I prefer getting a mail with clear orders and then you can check the result."

lorax

7:20 pm on Oct 14, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



But what task shall I give him

You've already defined it unless I'm missing something - you want your header navigation to open onclick instead of hover.

Unfortunately most don't know Headway, but this is indispensable.

Why? WordPress themes may differ in many ways but they all use the same WordPress & PHP functions. Why do you think you need to have someone familiar with this theme?

deeper

8:55 pm on Oct 14, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month



No, it's not the only task, it's the first one, further ones will appear.

It's hard for me to explain (due to my english, technical limits), but believe me, HW even for webdesigner needs time.

Similar to widgets of WP you have "blocks" with different options and functions, but you can "draw" as much as you want, everywhere, all sizes. The same with wrapper. Fluidity...mobile...

You can create different layouts for every single page, styling each differently.

In order to make it easier, there are several ways of cloning, coping and mirroring layout and parts of them, but again... you have to know what when why doing is a good idea or not.

lorax

12:51 pm on Oct 15, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That makes sense. My assumption was all you needed to do was the hover/click project.

I suggest you phase the project. Start with the one task you've identified or some tasks you know you can identify and measure. This way you'll get a feel for the developer's skill and compatibility. The next phase could be a discovery phase with a not-to-exceed cap that would allow the developer and you to determine what the scope of the next project is but with a limit on what the developer can expend.

deeper

1:44 pm on Oct 15, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month



Good idea, yes, a kind of testing hour, but this only makes sense if I'm able to measure his skills, as well as reliability and communication.

lorax

1:44 pm on Oct 16, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That's correct. That's why I suggest you start with a small project you can measure their performance easily with. Then, with a not-to-exceed cap on the discovery project, you'll know the maximum amount you'll lose if they flop but hopefully that won't happen.

deeper

4:49 pm on Oct 16, 2014 (gmt 0)

10+ Year Member Top Contributors Of The Month



My projects (5 sites) are more or less the same. Therefore after having finished the first, the others are already done at least half the way.

But half is not enough and things always change, so it's always helpful having a good partner.