FAQ Database Discussion Community


Custom page classes not showing up in code

css,wordpress,menu
I tried adding page classes via Appearance => Menus => Screen Options => CSS Classes, but when I update my pages the classes don't show up. I tried with another theme, it works, so my problem is theme-related. I didn't develop this theme, I took it back from another developer....

how do I remove margin-top only for first second level sub menu of every main menu

javascript,jquery,html,css,menu
I need help in margin problem. I am using a accordion menu like this: http://jsfiddle.net/knovice/ppdp1w04/2/ and there is margin-top for every second level sub menu e.g if you click Design then its sub menus are having margin-top. I am trying to remove margin-top of only first second level sub menu....

How to add serial numbers to menu items in wordpress

wordpress,menu
I use this wordpress class to customize menu in BEM methodology. But I need to add to each first level menu item the class with consecutive numbers. For the first item it should be .main-nav__item_order_1, for second .main-nav__item_order_2 and so on. Does anyone have any ideas how to do it?

add a div at the end of wp_nav_menu function in wordpress

php,html,wordpress,function,menu
I want to add a div at the bottom of the wordpress wp_nav_menu so it will look like this: <ul> <li>...</li> <li>...</li> <li>...</li> <div class="my-div"></div> </ul> I can't seem to find a way to do it in the function document on wordpress, can anyone please help?...

adding popup submenu items to the submenu

javascript,jsp,menu,dojo
I want to create popup submenu items for the submenu. Please find the fiddle: http://jsfiddle.net/nw9tU/353/. I have a menubar and on click of it, it shows the submenu items, when i mouse over on Save submenu item, it has to popup other 2 submenu items as Save ALL and Save...

How to prescribe the width and the height of a JLabel?

java,swing,menu,jlabel
I am making a game, and i'm in the menu, however, I have to put one button. And, to make this, I created a JLabel with one image, and I used the MouseListener, but I have to prescribe the proportion of this JLabel, how can I do this? Thanks for...

How can extract locations values from a dropdown menu that use geonames webservice for build a updated google map

google-maps,drop-down-menu,menu,geonames
I have a dropdown menu that show a list of country/state/city in a hierarchy using geonames webservice When i select a location in this dropdown menu it should automatically update a googlemap in a div under this menu and zoom into that location. How can extract locations from this dropdown...

how to correctly send CMFCMenuButton selected ID to the message map?

c++,menu,mfc,dialog
firstly let me describe what I have: scenario: CMFCMenuButton, loaded with a CMenu, in a dialog test: click on an item of the menuresult: the message map will get the ID of the CMFCMenuButton and not the ID of the menu how to get the actual menu ID clicked: use...

I want to turn my menu fixed on top

javascript,scroll,menu,navbar,fixed
My menu is hidden/show, but I want to keep it on the top of the page when I scroll. The HTML: <div class="menu"> <ul> <a href="#home"><li>Home</li></a> <a href="#about"><li>About</li></a> <a href="#servicces"><li>Services</li></a> <a href="#projects"><li>Work</li></a> <a href="#contact"><li>Contact</li></a> </ul> </div> <div class="menu-toggle"> <a href="#"><i class="fa...

Playing “peek-a-boo” with jQuery Menu

javascript,jquery,menu,toggle
So I'm working on this menu that I'm trying to expand/contract on click. After fighting for 2 weeks (in my spare time) with javascript, I've decided to try and tackle this with jQuery. It's so much easier! Well, kinda. I managed to make the 2nd level of my 4 level...

Create menu that looks like iOS7 select menu

jquery,css,ios7,menu,animated
I'm trying to create a menu that works like the select menus on iOS7. I've been using jQuery but I haven't been able to get it to work smoothly and look nice. Has anyone managed to do this or do you know of anywhere else it has been done so...

Menu Bar Overlapping Site

css,menu,overlapping
Im trying to make a cool portfolio site, but cant seem to get a cool menu-bar. Now i came by this menu-bar. It are 3 stripes in the top-right corner and when pressed the menu comes in front of the website. I find this one of the coolest menu bars...

use scanner in method with reloadable menu

java,methods,menu,java.util.scanner
I can´t get my reloadable method "menu" to work and it looks like it has something to do with scanner. I´m sure it´s an easy solution but I just can´t find it public class menuControl { public static void main(String[] args) { switch (menu()) { case 1: System.out.println(1); menu();break; case...

JQuery: How to show current nested sub-menu and hide the others?

javascript,jquery,html,menu,nested
$('li').on('click', function(){ $('li').not(this).each(function(){ $(this).children('ul').addClass('hide'); }); $(this).children('ul').removeClass('hide'); }); Help me, please! I got several hours on this and I can't figure how to solve it. The code above it's for a horizontal multi-level menu. On click shows a sub-menu and hide all the other sub-menus, everything works fine until this point....

How to realize this custom popup menu with Material Design Android?

android,menu,material-design
I want to realize a custom popup menu like Twitter in Android for example with item and picture but I don't know what's the component used for that. In Material Design website, google present this solution. So I think, there is a native solution to achieve this. I tried with...

JQuery: How to add a class to nested elements, one by one?

jquery,html,list,menu,nested
Ok, I'm creating a multilevel menu, when one sub-menu is open all the others are closed, except if the sub-menu has another sub-menu nested to it, in this case all the others sub-menus are closed except for the parent and the current sub-menu. I do the trick with this code:...

menu layout altering, vertical instead of horizontal on initial load

css,asp.net,menu,pageload
I have been struggling with this problem for some time now mostly because, it only happens every now and then and I also do not know where to begin on narrowing down the cause of this problem. So occasionally, when my website page loads, the menu bar, which should be...

Sticky Menu Display Error When Viewing in Safari

javascript,menu,safari,sticky,genesis
I have a site built on Wordpress using a Genesis theme, HERE. I recently implemented a "Sticky Menu." The menu works great in Chrome, Opera and Firefox, but has a weird graphical issue in Safari. Upon scrolling down, the menu in Safari "flies in" from the left hand side of...

Horizontal menu center elements

html,css,menu,center,horizontallist
I have the following files: html file <nav> <ul> <li><b><a href="">Alle Rezepte</a></b></li> <li><b><a href="">Alle Zutaten</a></b></li> </ul> </nav> css file nav { } nav ul { text-align: center; } nav ul li { display: inline; } And it looks like this in the browser But I want the two elements two...

Fixing width and other CSS problems in menu navigation

html,css,menu
I am coding a very simple CSS navigation menu. I’m trying to stretch the nav to 100% width across the page and set the last menu option to orange background color and white text color to no avail. Can someone have a look at my CSS code and see where...

jQuery to position menu according to window width

jquery,menu,window,width
I'm trying to use a little bit of jQuery to move my menu depending on the width of the screen. The problem is that it's fine above a certain window width (1140px) but, part of the menu is obscured at other widths. I have a media query that displays the...

When I pass a Texture2D as parameter to a class, this texture is null

c#,menu,xna,monogame
here is the code where I get the problem : namespace Menu_test { /// <summary> /// The main menu screen is the first thing displayed when the game starts up. /// </summary> class MainMenuScreen : MenuScreen { #region Initialization ContentManager content; Texture2D playgame; Texture2D exit; /// <summary> /// Constructor fills...

How to accomplish 3 horizontal line menu in fxml

menu,javafx,overlay,fxml
I want to create menu like "Firefox (Three horizontal line - top right side) Menu". I don't know how to create this line of overlay menu in FXML. Have anybody any idea about this? Thank a lot....

CSS Dropdown Menu dropping horizontally

css,drop-down-menu,menu
I'm working on a website that was built several years ago by my employer, and I'm trying to implement a dropdown menu using CSS only. However, instead of dropping down when you hover over it, it drops horizontally, like so: It also loses all the formatting of the parent list,...

Unwanted space and arrow in accordion menu

javascript,jquery,html,css,menu
I am creating a vertical accordion menu. Here is code what I had done so far. Two problems I am facing. There is unwanted space between border and menu. It is for all li elements i.e for menu and sub menu items also. And arrow is showing for submenu also...

How to display custom post type in a submenu?

menu,wordpress-plugin-dev,custom-post-type
I am adding a submenu named as "Articles" using add_submenu_page() under a custom menu. I want to display the custom post type="page_article" in this "Articles" submenu. Whenever I click on Articles submenu , it should redirect me to "edit.php?post_type="page_article". I have tried with wp_redirect in callback function of add_submenu_page, but...

How to stop a dictionary shuffling? (Python) [duplicate]

python,list,dictionary,menu
This question already has an answer here: How can I sort a dictionary by key? 12 answers I have designed a menu and I'm using a dictionary for the values. I would like to stay with a dictionary if at all possible. The only problem is that a dictionary...

My action bar with settings menu in the Homepage doesn't show. It only shows on the bottom if I click the settings button

android,menu,settings,updates
@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.menu_main, menu); return true; } @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. The action bar will // automatically handle clicks on the Home/Up...

Show sub-menu on click [closed]

javascript,jquery,css,menu,click
My menu is working on hover. When I hover first level, it shows the second level menu. I would like to change this so that when I click first level, it shows the second level and it stays visible. This is my code on jsfiddle <ul class="mainNav"> <li><a href="rpm.php">Cours collectifs</a>...

PHP - Build multiple-level HTML menu from php array combining like values based on value name

php,html,arrays,menu,nested
I have searched a bit on SO and haven't been able to find this unique use case, but maybe I don't know how to phrase it. I am looking to use a PHP array (see format below) to build a dynamic HTML menu that duplicates identical string values into sub...

close menu when click on li

javascript,jquery,menu,close
I making a single page website and i want when i open my menu and click on a li item, my menu close, so for the moment it is working when i click back on the "menu-burger-wrapper" and i want to set the same thing when i click on items...

how can I add text to these rectangles?

python,text,menu,pygame,python-3.4
This is the code I have started to use to make a start menu. # we need some colours!! black = (0,0,0) white = (255,255,200) red = (200,0,0) green = (0, 200, 0) bright_red = (255, 0 ,0) bright_green = (0, 255, 0) bright_white = (255, 255, 255) def main():...

CakePHP 2.x Sending user messages to element('menu')

cakephp,menu,message
I would like to know the best way to send data to an element which appear everytime the page is loaded. For instance, once a user is logged in, I have to recover some informations about him. The User.id, User.name, etc. are recovered using the SessionHelper as follow : <?php...

Hover not working on css menu active li class? Works on others?

html,css,drop-down-menu,menu,hover
I can't seem to get the hover to work on my very first css menu navigation button. It is an active li class, does anyone have any ideas? The other menu option' hover effect is working just fine. CSS code: @import url(http://fonts.googleapis.com/css?family=Open+Sans:600); /* Menu CSS */#cssmenu, #cssmenu > ul {...

Change text color in toolbar / action bar, android?

android,menu,android-actionbar,toolbar
I want to change the text color and the navigation icon color in the toolbar Change the text color of the action item "13311" And also of the drawer icon. The styles //activity theme <style name="MyMaterialTheme.Base" parent="Theme.AppCompat.Light"> <item name="android:windowNoTitle">true</item> <item name="windowActionBar">false</item> <item name="colorPrimary">@color/ColorPrimary</item> <item name="colorPrimaryDark">@color/ColorPrimaryDark</item> <item...

Text on a menu becomes invisible

jquery,html,css,menu
I'm trying to add a menu I found on a tutorial to my site. For some reason, despite no errors in the console, I just can't see the menu. I do get some of the blue blur the menu is suppoused to have in the corner of the page, but...

Open an activity with a fragment on it?

android,menu,fragment
I am trying to open an activity with an menu, this works, without any problems. however, when i put an fragment on the activity i open, i get this error 06-19 16:38:46.253 2732-2732/com.example.broodjepoep.stapvoorstap E/AndroidRuntime﹕ FATAL EXCEPTION: main Process: com.example.broodjepoep.stapvoorstap, PID: 2732 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.broodjepoep.stapvoorstap/com.example.broodjepoep.stapvoorstap.LayoutFragmentOne}: android.view.InflateException: Binary XML...

Getting currently active menu title in wordpress

php,wordpress,menu,styles
I need to get currently active menu item (menu title like Home, About us, etc..) on each page in wordpress. I am using wordpress codes to display menu & it displayed correctly. Code is shown below, $menu_name = 'primary'; if ( ( $locations = get_nav_menu_locations() ) && isset( $locations[ $menu_name...

Stop Prevent Default in else clause

if-statement,mobile,menu
Hello I have a mobile nav where some items have a subnav so I have set a preventDefault to stop these doing there normal actions and open the sub menu but some don't have a submenu ad now these don't work as normal. Any help would be great here is...

CSS Submenu Li's overlapping

css,menu,submenu
I have tried many changes but none of them work, i also search in Stackoverflow but i couldn't put it working correctly. The 'li' inside the submenu 'ul' are overlapping in just one sub item instead of showing the 4 sub items. The HTML: <div id="menu"> <div class="container"> <div class="row">...

jQuery multilevel submenu

jquery,menu,nav,multi-level
Ok this might be pretty simple but can’t make it… What i want to make is a sub menu with multilevel support Right now step by step: hide all “li” with “ul” Show subnav by adding Class “Show-subnav” to the li > ul when it is clicked Problem: All the...

How to remove black bar menu from the bottom of android screen?

android,menu
Device: HTC One mini Android OS: 4.3 app minSdkVersion="8" app targetSdkVersion="11" I'm building apps for old Android 2.2 phones and higher and have duplicated my menu into a popup window in case newer Androids have issues with it. The black bar bellow shows the lone menu button on a specific...

Android Menu coming from bottom like Google Drive

menu,panel,slidingdrawer
I have a floating action button and when the users taps on it I want a layout to be shown, animating from the bottom exactly like the Google Drive app (so not covering the whole screen). I read someone suggest the open source Umano's AndroidSlidingUpPanel but that is more similar...

When setting a window height to a div its adding 10000 extra why?

jquery,html,css,menu
I am making a fly left fixed menu, Its height should be change according to window size, i am using below code but its adding 10000 extra with the same window height, why its happening, div has a class .custom-menu-primary, check the following urls the test url whom with i...

How to change the submenu alignment in a megamenu [closed]

html,css,menu
I'm working on a mega menu. I tried to create a submenu under a menu tab.The fist image file is css part of submenu. This file shows the html code of the submenu. The third image file is the output. I've tried to generate the submenu view under the products...

Two navbars collapsed into 1 for mobile?

css,twitter-bootstrap,menu,navigation
I have two menus in Bootstrap 3 - a Social Menu and a Main Menu. When collapsed on mobile, I get two menu open/toggle buttons to open the corresponding menu items. Is there any way when collapsed, I can move the Social Menu Items into the Main Menu and use...

Main Menu in toolbar not working as expected

delphi,menu,toolbar
I create a VCL forms application, add a main menu and insert the "MDI Frame Menu" from the menu templates. I run the programme and use the acceleration keys. Everything works as expected. I now add a toolbar, disconnect the main menu from the form and link it to the...

p:tabMenu activeIndex becomes 0 after form submit

jsf,primefaces,menu
Both pages contains the header: <p:tabMenu activeIndex="#{param.i}"> <p:menuitem value="Overview" outcome="index" icon="ui-icon-star"> <f:param name="i" value="0" /> </p:menuitem> <p:menuitem value="Demos" outcome="second" icon="ui-icon-search"> <f:param name="i" value="1" /> </p:menuitem> </p:tabMenu> The second page contains a form: <h:form> <h:inputText id="name" value="#{name}" a:placeholder="What's your name?" /> <h:commandButton value="Submit" outcome="second" />...

jQuery multi-level accordion menu

jquery,html,menu,accordion,jquery-accordion
I found some accordion menus online but either they did not support multiple levels, or the code was quite cryptic and I didn't want to use it. So I decided, that I want to write my own accordion menu, which supports an arbitrary number of sub-menus. Here is what I...

Start onActivityResult not being called from menu option

android,menu,onactivityresult
I have an Activity A and Activity B and the problem is I'm unable to call the onActivityResult in Activity A from B using menu option. Now this is how I go to Activity A from B @Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case android.R.id.home: return true;...

How do I add an arbitrary link to the WordPress Admin Menu?

wordpress,menu,admin
I am looking to add an arbitrary link to the WordPress Admin Menu. Example: | Dashboard | | Posts | | Media | | Custom Arbitrary Link | The functionality of this acts just like a normal button but when you press it it redirects you to any URL given...

How to make parent menu active when the child menu was active in menu block using drupal 7?

menu,drupal-7
I have created menu and its child links like About contact us portfolio our location I have used menu block to display sub menu only when about in click and display sub menus in another layer. Now my requirement is when i click on any sub menu in parent menu...

FadeIn jquery [not working]

jquery,menu,fadein,jsfiddle
I am new at jquery and my fadeIn is not working. I made a JSFIDDLE here. Thank you $('#menu > li').on('mouseover', function(e){ $(this).find("ul:first").fadeIn(120).finish(); $(this).find('> a').addClass('active'); }).on('mouseout', function(e){ $(this).find("ul:first").stop().finish().delay(500).fadeOut(120); $(this).find('> a').removeClass('active'); }); ...

“Help/Tutorial” page in WPF menu bar

wpf,text,menu,popup,photo
I've added a menu bar to application, because I wanted to add there a little tutorial under "Help" menu. Like Help - > "How to use the program", that's the idea. I would like this to be, a pop up window that has ability to include text, as well as...

hover color for .prepend and .append “parent” element of “child” element

jquery,html,css,wordpress,menu
Hi am working on this menu run code snippet :) my problem is I can´t get the drop down arrows: hover color to work as I want. Ex. If I hover over the -> "Level 1b" -> "Level 1b 2b" -> "Level 1b 2b 3b" then the arrows on the...

Android : Menu items can't be removed in the fragment

android,android-fragments,menu,menuitem
I need to remove the inflated menu after I return to Fragment 1 from Fragment 2 after some action. I clear the menu after I make the popBackStack, but nevertheless the menu item can't be deleted. @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { menu.clear(); if (savedItemsExist()) inflater.inflate(R.menu.menu_saved_filters, menu); else...

CSS Menu on hover selector

css,menu,hover,onhover
I am very close. How can I have MENU 1 on my .fiddle display as the default menu option then change when MENU 2 on hover? Thank you in advance. Keep coding! :) ...

jquery level two slides up and level three slides down

jquery,css,menu,slidetoggle
Hopefully this is a small one. I have a three level vertical menu. It is built in wordpress and I am attempting to keep it simple before I start putting in content and such. I have got the sub menus to hide and when you click a level 1 button,...

Android toolbar inside a tab menu retrieval

java,android,menu,fragment,toolbar
How do I get a menu for my toolbar inside a fragment (tab)? I'm relatively new to android and java. Here's the code: import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.app.ActionBarActivity; import android.support.v7.widget.Toolbar; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class Tab1 extends Fragment { @Override public View onCreateView(LayoutInflater inflater,...

Bootstrap navbar button works but the button itself doesn't show

html,css,twitter-bootstrap,button,menu
<!---header and Navigation---> <header> <nav class="navbar navbar-defaault navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#nav-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a...

jQuery active menu link to index page is always active

jquery,menu,nav,active
I have a menu that uses the following jQuery to add the class active to highlight the current page. <script> jQuery(document).ready(function($) { $(function() { setNavigation(); }); function setNavigation() { var path = window.location.pathname; path = path.replace(/\/$/, ""); path = decodeURIComponent(path); $(".nav a").each(function() { var href = $(this).attr('href'); if (path.substring(0, href.length)...

How can I convert a hierarchical tree to parent-child relationships?

php,dynamic,menu,nested,hierarchical
At the moment, i'm creating a dynamic menu for my own CMS (practising) in PHP, but I don't know to save the data in my database. Database structure: menuitem_id menu_id menuitem_order menuitem_name menuitem_page_id parent_menuitem_id I do get this output as a hierarchical tree, but that isn't the desired format for...

fstream . Trouble printing all items in list

c++,file,menu,fstream,c-strings
I'm working on a menu driven program that has users basically keep track of their assignment tasks and due dates. My program deals with a text file titled "tasks.txt", and the user has 3 options for interacting with the text file: Enter a new task, Display all the tasks in...

Collapse all ULs other than the clicked one and its parent ULs

jquery,menu
I have a navbar with nested ULs as shown further below. I'm using a simple class, and toggling it, to hide menus/submenus: nav ul ul { display: none; } .showIt { display: block; } On clicking a link with href of "#" I'm trying to hide all the other ULs,...

How can I add a Submenu to the WordPress Admin Bar

php,wordpress,drop-down-menu,menu,admin
I need to add a dropdown menu to Wordpress in the admin bar to include multiple links. What is the best solution?

jQuery Accordion Menu With Enabled/Disabled Links

jquery,menu,accordion
I have an accordion-type menu which has gradually evolved and is now almost working as I want. It has three levels: country, region and province. My aim is that when you click on a country, it slides down to reveal the regions. Then once it has done that, clicking the...

Using value of selectIndex in connected drop down list

javascript,html,list,menu,selectedindex
What I want to do is change the .innerHTML of the box based on the value of the selected index: <!DOCTYPE html> <html> <head> <title>test</title> <script src="test.js"></script> <link rel="stylesheet" type="text/css" href="test.css"> </head> <body> <form> <select id="slct1" name="slct1" onChange="populate(this.id, 'slct2')"> <option val=""></option> <option val="Chevy">Chevy</option> <option val="Dodge">Dodge</option> <option...

How can i make a startmenu in python?

python,menu,python-3.4,2d-games,startmenu
i have been trying to add a start menu to a game i have been making and have looked everywhere to see how to make a start menu. I did try to use a tutorial by sentdex but it didn't work for my code! And i have also looked in...

Bootstrap Responsive Menu won't Respond

css,menu,bootstrap
I'm having a bad time with this Bootstrap menu I made, and I can't figure it out why it won't collapse, animate. Everything works great and all, but the button doesn't work. <!DOCTYPE html> <html> <header> <script type='text/javascript' src="//ajax.googleapis.com/ajax/lib/jquery/2.0.2/jquery.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <link href="stylesheet.css" rel="stylesheet"> </header> <body> <div...

Android DrawLayout Implementation

java,android,menu,drawerlayout
ive been following this post Android Navigation Drawer implemented with Activities However the application crashes before it displays any content. Also it doesnt appear to get the the OnCreate menthod as its not triggering any breakpoints here is my MainActivity package com.example.alex.menutest2; import android.content.Intent; import android.support.v4.widget.DrawerLayout; import android.support.v7.app.ActionBarActivity; import android.os.Bundle;...

How can I Add sub menus to dropdown menus?

html,css,drop-down-menu,menu,submenu
I am having extreme dificulties to add a sub-menu to my dropdown, but I am not a pro on css. I would like to put a submenu on the part it says "10º ano" and "11º ano" in the dropdown "projects", but everything I do doesn't work ! How can...

NullPointerException after replaceing actionbar with toolbar

android,menu,nullpointerexception,toolbar
I'm using badge layout in one menu item here is some menuItems <item android:id="@+id/action_rdvmed" android:title="@string/rdv" android:icon="@drawable/ic_action_action_event" android:showAsAction="always" /> <item android:id="@+id/action_msg" android:title="@string/msg" android:actionLayout="@layout/badge_layout" <!--this one causes the problem--> android:showAsAction="always" /> <item android:id="@+id/action_actualiser" android:title="@string/actualiser" android:icon="@drawable/ic_action_refresh"...

iOS modal overlay menu

ios,swift,menu,modal-dialog,alert
I was wondering if there were a built-in view in XCode for displaying pop-up menus like this for iOS apps? Something like an alert, except with just a set of vertically-stacked buttons? EDIT: I knew about UIAlertController, just not that its buttons stack vertically after you add more than...

Winforms remove controls on click

c#,winforms,menu,telerik,controls
In my application I am generating some controls dynamically. On telerik menu control when I click I want to remove those controls and add new controls. I am using the following code. It is removing the controls but only one control per click. Why this code is not removing all...

getting a menu to close when another menu is clicked

jquery,menu
I have a menu and it's open when the user is on that page. So when the user clicks on another menu then the menu that is open needs to close and the other menu opens. So far I've only managed to get the menu to open when clicked. I...

how to add menu items to action bar in more than 30 activities

android,android-activity,android-studio,menu,menuitem
I have created an app in android studio that has more than 30 activities .I created menu items in some activities by adding them in individual menu files and they worked fine . But the problem is that it is a real headache to add all the menu items in...

Click Event is executed automatically

jquery,css,drop-down-menu,menu,submenu
I'm having this code $(".menu").on('click', function(e) { e.preventDefault(); $(this).addClass("open").children("div").slideDown(200); }); $(document).on('click', ".menu.open", function(e) { e.preventDefault(); $(this).removeClass("open").children("div").slideUp(200); }); when I click the .menu the inner div slides down but it slides up again immediately and the open class is removed that's by only 1 click so how to fix this and...

Dropdown submenu is not displaying correctly

html,css,drop-down-menu,menu
If I hover on the first item (USA), it is OK. When I hover next item, it is displaying on the top. It isnt on the same position as "Europe". Here is a CSS: nav ul li:hover ul li ul{ position:absolute; display:none; } nav ul li:hover ul li:hover ul{ display:block;...

Clicking out of an element fades out div

menu,opacity,fade
I have a "mobile" menu which goes on the desktop version too see here: http://bit.ly/1JTBuWy Clicking on the "hamburger" menu triggers the opacity of the overall wrap div. you can see the effect in the link. what I am trying to add is simply another trigger which will close the...

NoSuchMethodException for calling doInBackground

android,menu,android-asynctask,nosuchmethoderror
I am new to the Android.On selecting an action in menu item I want to call a method which is in Myclass extends AsyncTask. The method which I want to call is doInBackground. Myclass is a class present in MainActivityFragment.java. My xml for the menu is as follows : <?xml...

ASP.NET Menu Styling. Border on the bottom of the last element in the dynamic menu [closed]

jquery,html,css,asp.net,menu
I have a basic ASP:Menu on my website. What I am trying to do is add a 1px solid black border to the bottom of the final element in my drop down menus. CSS doesn't seem to do anything and I cant seem to find a control that can do...

What is the best way to properly center a logo on an ActionBar?

android,menu,android-actionbar,menuitem
The purpose of what I want to achieve is to center a custom logo on the ActionBar. I have the following custom layout for my ActionBar: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:contentDescription="@string/app_name" android:src="@drawable/logo_header" /> </FrameLayout> This gives the expected...

Can't show content text from menu using jQuery

javascript,jquery,html,css,menu
I am trying to make a submenu using jQuery. The idea is that when someone clicks on the first menu a submenu appears, then when someone clicks the submenu it disappears and shows a div with information but I cant make it work properly. Here is my HTML: <ul id="menu">...

Div ul list css menu

html,css,menu
How can I have a child div appear when I hover on the parent div? Please view.Fiddle My apologies if my code is incorrect. Thank you...

Making a CSS menu with hover animation

css,google-chrome,firefox,menu,hover
I am making a menu with 2 items per line and I want them to have a background-image and on hover the image will change to other. I was able to do it in chrome, using content in CSS, but Firefox and IE don't support this. Thus it should be...

How to use a menu

c++,loops,if-statement,menu,while-loop
#include <iostream> using namespace std; int main() { int food, product, total; double price; cout << " Welcome To Maggie’s Shopping Cart Calculator!" << endl; char option; // user's entered option will be saved in this variable do{ //Displaying Options for the menu cout << " 1) Please add an...

Breadcrumb menu in wordpress

wordpress,menu,wordpress-plugin,breadcrumbs
I am stuck on how to create a breadcrumb menu in my wordpress so that when I select the main menu, the path shows its first inner menu. For example I have a main menu About us and Company Profile as its child. When I am select the About us,...

Best practice to create two-level deep selection menu in Java console

java,menu,switch-statement
I'm about to create an application that runs off the java console as opposed to the GUI, and I had a question about the best way to approach displaying menus with another level of a submenu. I've quickly typed up the below code to sort of give you an idea...

java.lang.ClassNotFoundException: android.widget.shareActionProvider

android,menu,shareactionprovider
I am using Android Studio. In the menu.xml I have <item android:id="@+id/action_share" android:title="@string/action_share" app:showAsAction="ifRoom" app:actionProviderClass="android.widget.shareActionProvider" /> In the code I am using @Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){ inflater.inflate(R.menu.menu_detail,menu); MenuItem item = menu.findItem(R.id.action_share); mActionProvider = (ShareActionProvider) MenuItemCompat.getActionProvider(item); } ...

Hide sub menu on page load jquery

javascript,jquery,html,css,menu
I have created a vertical menu with sub menus. I have used a unorder list. When my page loads it shows the top level menu and submenu but when I click the top level it will hide the submenu which works fine for click event. I would like my page...

Android toolbar context menu for listview items

android,android-listview,menu,contextmenu,android-toolbar
I am looking for help on how to implement a context menu in the toolbar for ListView items, like WhatsApp does it. The only tutorials I found so far are about a dialog that pops up, which is not what I want. Can someone help me or provide links with...

set menu item as to aways show + icon

android,menu,menuitem,overflow-menu
I am enable to set one of the ActionBar menu items as an icon and show it as "showAsAction="always" all I am getting is the overflow menu and a the title of the button instead of the icon. I don't understand what I am doing wrong? this is the code...

Joomla Get menu id from names

joomla,menu,params
I am in joomla 2.5 and I try to get the id of a menu, I have the name, the alias exemple : menu = FAQ-> menu item =FAQ I have try : $app = JFactory::getApplication('site'); $params = $app->getParams(); $idfaq = $params->get('content_id_faq'); but i am a newbie so I dont...

“position:fixed” Not Working For Header Menu

css,menu,position,fixed
No matter what, the header menu will not stick to the top of the screen. I have a suspicion it may be something to do with the surrounding html structure - it's quite complex due to a mobile menu (resize to activate) position: fixed; top: 0; left: 0; ****link removed****...

How to align “boxes” in a grid layout

xml,actionscript-3,menu,grid-layout
I've this little "menu" I'm loading via XML in my .swf This is my code: for each(var datos: XML in xml.datos) { var menuItem: MenuItem = new MenuItem(); menuItem.x = count * menuItem.height * 6; menuItem.y = 0; menuItem.menuText.text = datos.@causa; menuItem.mouseChildren = false; menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem); menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem); menuItem.addEventListener(MouseEvent.CLICK, itemClicked);...

Resuming Activities in Android Studio

android,android-activity,menu
I have an Android app that basically has 3 activities: game menu, showcase of data, and the game itself. When you complete the game the app is supposed to send you to the game menu. From what I understand this Activity is already running in the background, in order to...

call custom functions from Add-ons menu in Powershell ISE

powershell,menu,powershell-v3.0,powershell-ise
I've developed a collection of functions that are to be used by our Desktop and Service Desk team and have deployed a custom powershell ISE profile to each staff member that loads the module file that contains all of the functions. I've been asked to make them more user friendly,...

Grey page content when side menu is opened

html,menu,ionic-framework,ionic,hamburger-menu
If you look at all the Google apps when you open the side (hamburger) menu the content of the app is greyed. Here is an example Is it possible to do this with ion-side-menu in ionic framework? If so, how? Thank you....

Delay fadeOut menu jquery

jquery,menu,delay,fadeout
I am new at Jquery and I am trying to make a menu to show up on hover with fadeIn and when the mouse leaves to start a delay and then close the menu with fadeout. My code so far... I made a jsFiddle too JSFIDDLE $('#menu > li').on('mouseover', function(e){...

Accordion menu jquery doesn't work

jquery,menu,jquery-accordion
I'm trying to achieve an accordion menu in jquery, However it doesn't seem to work, and my submenu doesnt appear . .. I've try various possibility by changing my jquery but nothing to do :(, any help would be amazing !! I attach my code below: html: <div class="content-left"> <ul...