A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [dropdown]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

Use a filter on menu items that have children

I have a nested dropdown. On elements that have children, I would like to add a chevron beside the link text. The current HTML looks like this: <ul class="primary-menu"> <li class="menu-...
1
vote
2answers
36 views

How to pick the default selected value in wordpress dropdown?

First of I am pretty new to this so sorry if this has been asked before but I could not find the right answer for me. I have this dropdown on my website from compare-tech(.)fr I am trying to remove ...
0
votes
0answers
20 views

How to create a dropdown menu with a top margin (or just a gap) ? Mouse can't keep the dynamic active

I want to create some vertical space between my parent menu and its dropdown menu, but if I give it a top-margin, the mouse is not able to hover over the menu and keep it actively displayed. This is ...
0
votes
0answers
19 views

Dropdown menu not close after click inside

On my WordPress website I have a dropdown menu which appear when you click on item-menu "ESPACE PUBLIC" with 2 sub-menus ("TOUS LES PROJETS" and "CORNIL"). When I click on one sub-menu I get ...
0
votes
0answers
13 views

Load Taxonomy terms based on Post Type selection

I am creating a widget.I want to get Taxonomy Terms with the selection of Post Type in dropdown list. When a Post Type is selected from dropdown list, the related Terms/categories of that Post type ...
0
votes
0answers
12 views

Add new post dynamically in dropdown menu

I am making a Wordpress site with DIVI theme. Suppose I have two categories complete project and ongoing project. These two categories are already in Menubar with dropdown list. I manually create ...
0
votes
0answers
15 views

CSS button with dropdown - unable to centralise dropdown menu with button

I am trying to make a simple button, which when hovered will have a dropdown menu with region names and below this buttons for countries. I have made the menu with css using some code I scavenged ...
0
votes
0answers
10 views

Dropdown Menu Still Not Working [duplicate]

I do not mean to be rude by but there was an issue from last week that a fellow user attempted to explain without being fully clear and just left it hanging: Dropdown menu problem on homepage only? I'...
0
votes
1answer
67 views

Add a <select> drop down list with custom fields to comment form

This snippet does exactly what I need, except for the fact that it shows what type of user (Administrator, Editor, Author, Subscriber, Contributor) is posting the comment. I wanted to adapt it to ...
0
votes
0answers
18 views

Select parent post of parent post

I have custom post types. grandparent, parent and child. With this code I can select the grandparent of the parent in the dashboard. function add_grandparent_to_parent_dropdown() { add_meta_box('...
0
votes
0answers
8 views

Drop down menus for all available pages/posts

I need several drop down menus to appear next to some text. I am very new to WordPress development so bare with me. I only have the HTML part of the code and I'm not so sure about how to add the ...
0
votes
0answers
21 views

drop down menu not working on wordpress it will redirect to base url

I have faced an issue on WordPress dropdown menu. When I click the link it will be redirected to base_url but the main menu is working properly. I changed the permalink to Post name but it still not ...
0
votes
0answers
15 views

Get_term_meta() always returns false

I added an extra field (dropdown list with select options), when the user creates or edits a category from the WordPress dashboard. I am also able to store the selected value in the wp_termmeta table. ...
0
votes
0answers
11 views

Making drop down menu images the same dimensions as others?

I am working with a website which had been previously professionally designed. On the drop down menu, they had attached images (seemingly without a plugin) of a certain size. None of the image ...
0
votes
0answers
10 views

Menu doesn't collapse after choosing menu item (mobile only)

I have a problem with my menu on mobile. After selecting the item I want from the menu, it doesn't collapse and I have to manually click on the "x" to close it. I am trying to fix with this jquery: ...
0
votes
0answers
14 views

Parent menu item with character space breaks dropdown for submenu

My team has a WordPress site with a custom FoundationPress theme. One of the primary nav items is "About us", this item has secondary items nested beneath it in a submenu. This is configured in the ...
0
votes
0answers
33 views

Dropdown menu Cannot click on Parent Page

I am trying to: create a Primary Navigation with Drop Downs. I have a parent page called Classes and some child pages in the drop down. I would like the Parent Classes link in the Dropdown to be a ...
0
votes
1answer
76 views

Set default option in dropdown of WP_Query?

Edit: I have an archive page for a Custom Post Type. Each article that appears on this page has information entered via Advanced Custom Fields about that article, and a button that opens a modal ...
3
votes
2answers
50 views

Block Editor: add an aria-label to an option inside a SelectControl

I'm building a block that has, among other things, a FontAwesome icon. I'm currently letting users choose which icon by using a WP <SelectControl>. For individual <option>s, there is a ...
0
votes
3answers
31 views

Wordpress menu issue - if there are child links partents won't click

I am working on this site for my own business and when I create a menu with child links, as per below image, only last child of that drop down menu, it actually clicks and loads a page. If I click ...
0
votes
0answers
8 views

woocommerce Product Dropdown selection check the description need help

hello i want to make something like this so a client can choose what he wants and what he desire to go and then a price will show is that possible if yes is their a plugin will need your help thank ...
0
votes
0answers
21 views

Dropdown list that loads Product Comment Form

I am trying to create a dropdown of all product in my WooCommerce store and based on the selected product I want to display that products comment form. I want to create a page with this code in it. ...
0
votes
1answer
47 views

Convert UL to dropdown list not working

I am running a plugin called Divi Staff to show the staff on the website. I don't like how the specialisms are displayed and wanted to convert them to a dropdown list. I have tried to get this to work ...
0
votes
1answer
28 views

Bootstrap drop down Navigation Menu in WordPress

I am trying to build a Wordpress theme with boostrap.almost every part is complete but the nav menu is giving me some trouble for days. I would like the dropdown to work like boostraps dropdown, but I ...
0
votes
0answers
15 views

dropdown Nav item issue

Hello guys I am working on a wordpress project And i am searching for a sticky dropdown menu that holds lists of city. -> set the selected city to the menu label -> and filter the appointments for ...
0
votes
0answers
38 views

Cannot save with wp_dropdown_pages() in page options

I don't understand why, the custom select option works, but even when wp_dropdown_pages() is outputting the same exact HTML, it doesn't save as the select option does! I'm out of ideas :( Here's my ...
0
votes
1answer
317 views

Dropdown Select Post Filter

I would like to display the posts when I click on an item with the dropdown select Currently, my select is OK, all my terms are displayed and all posts too. I just want to know of it's possible to ...
0
votes
1answer
349 views

Get the selected option from drop down list

I created a dropdown list using data from the db to fill the options. This is working fine. Now I want to get the chosen value to select all posts with that value from the db. I have been searching ...
1
vote
1answer
320 views

Using a shortcode to create a dropdown menu from wp_nav_menu list items

I'm using the following function that I found online to render each page's individual nav items to the page: function print_menu_shortcode($atts, $content = null) { extract( ...
0
votes
0answers
23 views

Drodown list return issue

I made a function that doesn't work properly: it correctly returns the slug of the selected tags except the first one in the list. Someone can help me understand why please? The code is below ... ...
1
vote
0answers
24 views

Options page - dropdown of users

I want to create an options page in WPAdmin that will let me select among registered post type "Members" and anoint them as "captains". Here is my code so far but the dropdown is not functioning ...
0
votes
1answer
39 views

How to elect position of new item output in a dropdown when using add_filter

Hello I am using the suggested snippet here to add a new term to a dropdown menu: https://wpjobmanager.com/document/applications-customising-application-statuses/ which is: add_filter( '...
0
votes
1answer
16 views

Dropdown Value from DB Entry

I am capturing a month in my database and the value (integer) is being recorded but when I try to add the selected to the drop down so when the user comes back it reflects the month I can't figure out ...
0
votes
1answer
37 views

Navigation dropdown issue, need it to work on hover

I have created my own theme from Bootstrap 3, everything went ok except for the navigation. After many hours trying ot figure out why my navigation didn’t drop down, I finally fixed and thought that ...
1
vote
1answer
199 views

Filter dropdown in users.php “delete user” bulk edit screen

I recently attempted to delete an administrator user. Using the bulk editor, I selected "delete" and was presented with the option to assign their content to another user. However, the dropdown ...
1
vote
1answer
725 views

WooCommerce Country Drop Down colours CSS [closed]

I have been trying to change the colours for the selected and hovered country in the country dropdown on the checkout page on a web site I am developing which is http://chi-medics.com/ No matter what ...
1
vote
0answers
73 views

Make Categories a Dropdown Menu in Media Library

I would like the categories menu to appear as a drop-down in both the list mode and grid mode view of the Wordpress media library. As of now, it only appears as a drop-down in list mode. List Mode - ...
0
votes
1answer
146 views

Dropdown select filter and categories list

I have recently visited this website and came to know that it is running on wordpress. I have been looking for dropdown select filter (Banks Filter) and categories list as same as on that website. ...
0
votes
2answers
2k views

Remove “Choose An Option” on Product Variation & Auto Select Instead

I have a specific dropdown field on variable products on my WooCommerce site that only ever has one option available. Example: the customer chooses the item “type”, then “color”, and finally “part ...
0
votes
2answers
288 views

Woocommerce Category Sort Dropdown

In Woocommerce Category page default sort dropdown has like below options. My question is what/how products sort by Popularity ? Not a code What is the measurement ? like if sort Price: Low to High,...
0
votes
1answer
41 views

Show all authors in drop down panel while choosing author for a post

I would like to see all authors when I am choosing author for a specific post, yet I can only see around 25 of them. We have around 230 authors. How can I see them all?
0
votes
2answers
735 views

Change The Woocommerce Product Categories Dropdown Widget Placeholder Text

I've searched everywhere on the internet and tried to code it myself I want to change the default "Select A Category" placeholder text to "Select A Sub Category" so far I have tried this but it's not ...
0
votes
1answer
21 views

Unregistered taxonomy apears still as emtpy filter list

I unregistered a custom taxonomy form the theme I'm using: function wpse314876_unregister_taxonomy() { unregister_taxonomy_for_object_type( 'page_category', 'page' ); } add_action( 'init', '...
1
vote
0answers
127 views

How to create a dropdown select of all items in an ACF field group

I have a series of Field Groups, each attached to a specific product category (woocommerce) and I need to be able to access ALL the data regarding each field group on the product category page. This ...
0
votes
1answer
2k views

Sorting dynamic select/dropdown for Contact Form 7 of Modern Tribe Events posts

What I have is a dynamic dropdown/select box in Contact Form 7 I believe to be based on this: https://gist.github.com/morgyface/56474f0a37abb7d622880daf6eff6e40 It's been a while since I worked on ...
1
vote
2answers
2k views

Display custom taxonomy as dropdown list

I want to display list of custom taxonomies as a dropdown list. I've found the solution here, @alexufo 's answer Display a custom taxonomy as a dropdown on the edit posts page But the problem with ...
-1
votes
1answer
96 views

css .active dropdown selects all links

I'm using bootstrap navwalker to show my menu. But when i use the .active tag to on a dropdown link all the elements get te the tag. (as show in the picture) (only "Jeugd bestuur" and "Bestuur" sould ...
0
votes
0answers
19 views

Show archives as a drop-down in the main navigation menu

I am using the Independent Publisher: 2 theme. It looks like this in action. I would like to be able to access my blog archives by clicking on the navigation menu, as a drop-down. In other words, I ...
1
vote
0answers
678 views

Ultimate Member callback function issue

I am trying to filter child drop-down inputs based on parent dropdown. For example, if I select a state I need to show the cities only in the selected state. What I have done so far is added this ...
0
votes
0answers
101 views

wp_dropdown_users array for param selected

The wp_dropdown_users has the param: 'multi' (bool|int) Whether to skip the ID attribute on the 'select' element. Accepts 1|true or 0|false. Default 0|false. But the param selected only allow a ...