Title: Problem with sub menu
Last modified: August 22, 2016

---

# Problem with sub menu

 *  Resolved [sinitita](https://wordpress.org/support/users/sinitita/)
 * (@sinitita)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/)
 * I wonder if someone has the same problem when using submenus on pages: Menu items
   that have at least one sub menu item don’t behave as espected: When clicking 
   it’s extending the sub menu items which I would expect to happen when hovering.
   As the link gets inactive menu items first order having sub menus can’t be chosen.
 * I would be glad if someone could give it a test how menu items behave with sub
   menus. It’s difficult to explain and also a screenshot won’t do in this case…

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/problem-with-sub-menu-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-sub-menu-2/page/2/?output_format=md)

 *  Thread Starter [sinitita](https://wordpress.org/support/users/sinitita/)
 * (@sinitita)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668234)
 * I have set up another testing environment as i can’t post the link to the preliminary
   clients’ site. And yes, the bug reoproduced. Could someone, hopefully the theme
   author have a look, please?
 * [http://test1.sini-bodemer.de/](http://test1.sini-bodemer.de/)
 * The second menu item (“Was ist das?”) has one sub menu item.
    - When hovering: only the font color changes as specified in the theme settings,
      but sub menu does not expand
 *  - When clicking: sub menu expands as expected for hovering, but the page does
      not open (i didn’t take care of colors here just ignore the white text on 
      white background issue)
 * What is wrong here?
 *  [usability.idealist](https://wordpress.org/support/users/usabilityidealist/)
 * (@usabilityidealist)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668236)
 * That’s the (nasty) default behaviour of Bootstrap 3.
 * There is an option in CC Settings under the Advanced Settings tab called “Enable
   simple CSS-based dropdown hover menus” which does enable the (old 2.x, but expected)“
   dropdown on hover” behaviour 😉
 * AFAIR the folks of Bootstrap opted for this “clicky” version because of better
   touch screen support (you cannot really get a “hover” action – properly – working
   on a primarily “click” = touch centric device).
 * cu, w0lf.
 *  Thread Starter [sinitita](https://wordpress.org/support/users/sinitita/)
 * (@sinitita)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668240)
 * Thanks wolf!
 * Advancing step by step… This did the trick, menu is expanding now when hovering.
   Still the page in question “Was ist das” won’t open, it’s just highlighting the
   background. I only can open the page by right clicking + open in new window/tab.
   Is this intended by the theme author?
 * I really didn’t want to dig too deep into Bootstrap when using Costum Community
   🙁 Hope there is someone out there with a solution that doesn’t require too much
   coding as I wanted to avoid using a child theme…
 *  [Sven Lehnert](https://wordpress.org/support/users/svenl77/)
 * (@svenl77)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668241)
 * Hi [@sinitita](https://wordpress.org/support/users/sinitita/),
 * See this answer please: [https://wordpress.org/support/topic/problem-with-sub-menu-2?replies=4#post-6436922](https://wordpress.org/support/topic/problem-with-sub-menu-2?replies=4#post-6436922)
 *  Thread Starter [sinitita](https://wordpress.org/support/users/sinitita/)
 * (@sinitita)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668242)
 * Hi Sven
 * this is the link to this topic 😉
 * Appreciate your help!
 *  [Sven Lehnert](https://wordpress.org/support/users/svenl77/)
 * (@svenl77)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668249)
 * Hi [@sinitita](https://wordpress.org/support/users/sinitita/),
 * do not ask me what I was thinking last night. I had the tab opened with no answer
   and only your question and thought this is the same question not recognising 
   that it is the same topic!
 * lol 😉
 *  Thread Starter [sinitita](https://wordpress.org/support/users/sinitita/)
 * (@sinitita)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668258)
 * But do you have a solution for the issue not being able to open first level menu
   items? I am really helpless at this point 🙁
 *  [usability.idealist](https://wordpress.org/support/users/usabilityidealist/)
 * (@usabilityidealist)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668268)
 * [@sinitita](https://wordpress.org/support/users/sinitita/): thats totally normal
   behaviour – if you got a submenu, then the parent menu item “loses” its functionality.
 * Or do you expect that when clicking inside your browsers menu panel on eg. “Bookmarks”(
   or is it “Lesezeichen”), it would open a “bookmarks” page instead of opening 
   a dropdown menu?
 * [See screenshot](http://gfx.fwwd.de/screenshots/standard-windowish-ui-menu-behaviour02.png)
 * Others will expect the menu to work this way, too. So no harm done. On the “how
   to get the parent item work” topic: Just re-add it as first item in the sub menu.
 * For a real life example, take a look at the following site: [http://www.sawallisch-stiftung.com/](http://www.sawallisch-stiftung.com/)
 * cu, w0lf.
 *  Thread Starter [sinitita](https://wordpress.org/support/users/sinitita/)
 * (@sinitita)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668277)
 * Hi Sven,
 * thanks again. Okay, won’t discuss what is normal 😉 as there are thousands of
   contrary examples on the web
    [http://www.fian-berlin.de](http://www.fian-berlin.de)
   [http://www.fian.de/](http://www.fian.de/) [http://www.inkota.de](http://www.inkota.de)
   [http://www.oekohaus-rostock.de/](http://www.oekohaus-rostock.de/)
 * All these sites have contents on the first level. Sure, one could realize it 
   by implementing the first level item again on the second level. But listing it
   together with the sub menu items breaks up the hierarchical structure.
    And there
   is a second problem, in my opinion: Still you have to fill in content for the
   first level page for full functionality as folks might get to the first level
   page a) via Google b) by right clicking and open in new window/tab (I might have
   missed the point how to use pages more than once in the menu. If this is possible
   at least the problem of creating redundant content would be solved).
 * Just would have appreciated to have included the possibility of using other menu
   types in the custom community theme, **not **being a dropdown menu. This is very
   limiting.
 * I will arrange myself with it for the moment, looking for possibilities to use
   a custom menu (without a child theme 😉 )
 * But thanks for your efforts, still I think it is a great theme!! I sure don’t
   want to deny that it is the normal behavior of the (Bootstrap) dropdown menu 
   😉 If it is a good idea or not and wheather not to allow desktop devices to expand
   menus by hovering as the standard behavior is “responsive” – this is another 
   discussion…
 *  [usability.idealist](https://wordpress.org/support/users/usabilityidealist/)
 * (@usabilityidealist)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668293)
 * a) The **original idea** was to use [Smartmenus.js](http://www.smartmenus.org/)
   as the major dropdown solution, because it integrates very well with Bootstrap-
   based environments. Sadly, as it turned out later during development, there are
   a few issues and shortcomings, but it also was rather difficult to integrate (
   ie. no working out-of-box integration INCLUDING the Theme Customizer (and its
   settings)); thus it was left out, and we went for the quicker deployed, simple“
   hover dropdown” CSS add-on.
 * b) A quick solution for this “issue” would be to hop into [(theme directory)/includes/bootstrap-wp-navwalker.php](https://github.com/Themekraft/Custom-Community/blob/master/includes/bootstrap-wp-navwalker.php#L90),
   and ADD the url to the “data-target” attribute like SO:
 * `$attributes .= ($args->has_children) ? ' data-toggle="dropdown" data-target="'.(!
   empty( $item->url ) ? esc_url( $item->url ) : '#' ) . '" class="dropdown-toggle"':'';`
 * Note: (more or less) Untested code.
 * cu, w0lf.
 * ps: no, I’m not Sven 😛
 *  Thread Starter [sinitita](https://wordpress.org/support/users/sinitita/)
 * (@sinitita)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668298)
 * [@wolf](https://wordpress.org/support/users/wolf/) i’m so sorry calling you Sven!!!
   😐
 * you mean instead of `'#'` (just to be sure). That’s also what i had figured out,
   but I still was not sure if I also have to do changes in the template-tags.php
 * I will give it a try, thanks!
 *  Thread Starter [sinitita](https://wordpress.org/support/users/sinitita/)
 * (@sinitita)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668300)
 * sorry the above is obsolete it came from my “early morning” dizzyness 😉 of course
   the code has to go exactly like it is and replace the existing one in the file.
 * It works 😉
 *  [farshidk](https://wordpress.org/support/users/farshidk/)
 * (@farshidk)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668352)
 * my entire header, menus and sidebars are gone (after the last upgrade i think).
   i cannot get them back. this is NOT good. i cannot afford to use a theme that
   is going to break the site with an upgrade. unless i can fix this quickly i am
   forced to move off of this theme. i am not a coder at this point and don’t have
   the time to dig in too much technical detail. if i have to touch any php file,
   that is a sign that it is not the right theme for me. pls advise. thanks.
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668353)
 * **[@farshidk](https://wordpress.org/support/users/farshidk/)** – both the threads
   you posted in are already marked resolved, so you may want to start your own 
   as per:
 * [http://codex.wordpress.org/Forum_Welcome#Where_To_Post](http://codex.wordpress.org/Forum_Welcome#Where_To_Post)
 *  [farshidk](https://wordpress.org/support/users/farshidk/)
 * (@farshidk)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/#post-5668354)
 * ok thanks.

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/problem-with-sub-menu-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/problem-with-sub-menu-2/page/2/?output_format=md)

The topic ‘Problem with sub menu’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/custom-community/2.1.2/screenshot.
   png)
 * Custom Community
 * [Support Threads](https://wordpress.org/support/theme/custom-community/)
 * [Active Topics](https://wordpress.org/support/theme/custom-community/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/custom-community/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/custom-community/reviews/)

 * 18 replies
 * 7 participants
 * Last reply from: [mj4328](https://wordpress.org/support/users/mj4328/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/problem-with-sub-menu-2/page/2/#post-5668427)
 * Status: resolved