Title: Bug with drop menu and custom code
Last modified: November 27, 2018

---

# Bug with drop menu and custom code

 *  Resolved [belevsj](https://wordpress.org/support/users/belevsj/)
 * (@belevsj)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/bug-with-drop-menu-and-custom-code/)
 * Hello. Here is the problem I got. I found a custom code that brings a countdown
   until the sale offers ends. I found that really nice plugin called Axl Woo Sales
   Countdown, but when it’s working it’s hurting the website.
 * When the plugin is on or I have dropped it as a custom code my drop menu is not
   working:
    [http://s346.photobucket.com/user/belev_sj/media/notworking-menu_zpsoiyrjbkj.png.html](http://s346.photobucket.com/user/belev_sj/media/notworking-menu_zpsoiyrjbkj.png.html)
 * I have no idea why, a friend told me that this is the problem:
    [https://cl.ly/68e1db77b4ee](https://cl.ly/68e1db77b4ee)
   [https://cl.ly/d20db9c9c7db](https://cl.ly/d20db9c9c7db)
 * I’m a total rookie in coding, so I have no idea why is this happening and how
   to fix it.
 * The second problem is again with drop menu, but this time it isn’t affected by
   the plugin.
    [https://i346.photobucket.com/albums/p430/belev_sj/notworking-menu-product-categories_zpsspfj3a9v.png](https://i346.photobucket.com/albums/p430/belev_sj/notworking-menu-product-categories_zpsspfj3a9v.png)
 * Even as I marked to not show empty categories, it does. Some of the categories
   have listed as having a single product are also empty. I believe I know what 
   is the problem, but again I have no idea why and how to fix it. The showed categories
   actually had products, which are right now listed as out of stock and hidden 
   from the shop, but still exist as products. I don’t want to delete them, since
   we might have the products again, but it is really uncomfortable to see their
   categories in the drop menu. I’ll gladly take advice how to fix that too.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbug-with-drop-menu-and-custom-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years, 6 months ago](https://wordpress.org/support/topic/bug-with-drop-menu-and-custom-code/#post-10925530)
 * Hey there,
 * Thanks for the clear issue description!
 * > I found that really nice plugin called Axl Woo Sales Countdown, but when it’s
   > working it’s hurting the website.
   > When the plugin is on or I have dropped it as a custom code my drop menu is
   > not working:
 * If the problem. is happening as soon as the plugin is enabled, then you know 
   the problem is due to the plugin. I recommend reaching out to the developers 
   of the Woo Sales Countdown plugin.
 * > Even as I marked to not show empty categories, it does. Some of the categories
   > have listed as having a single product are also empty. I believe I know what
   > is the problem, but again I have no idea why and how to fix it. The showed 
   > categories actually had products, which are right now listed as out of stock
   > and hidden from the shop, but still exist as products
 * Products that are set as hidden from the catalog won’t be included in that product
   count, so won’t trigger the category to be listed.
 * Which plugin or widget is creating that dropdown?
 *  Thread Starter [belevsj](https://wordpress.org/support/users/belevsj/)
 * (@belevsj)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/bug-with-drop-menu-and-custom-code/#post-10929074)
 * Hi again. Thank you for the reply at first!
 * I have contacted with the developer, but he is unable to help me out. He gave
   me a link to a forum of developers and i’m going to look for help there, I hope
   soon it will be fixed.
 * The drop menu seems to be a based in woocommerce app as I haven’t add it or get
   it manually, so it should be an woo widget.
 *  Plugin Support [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * (@fernashes)
 * Automattic Happiness Engineer
 * [7 years, 6 months ago](https://wordpress.org/support/topic/bug-with-drop-menu-and-custom-code/#post-10929894)
 * Hey there,
 * Thanks for letting us know – if you do find the solution, please share it so 
   the rest of us can also learn from it.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Bug with drop menu and custom code’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

## Tags

 * [product](https://wordpress.org/support/topic-tag/product/)
 * [promotions](https://wordpress.org/support/topic-tag/promotions/)
 * [sales](https://wordpress.org/support/topic-tag/sales/)

 * 3 replies
 * 2 participants
 * Last reply from: [Hannah S.L.](https://wordpress.org/support/users/fernashes/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/bug-with-drop-menu-and-custom-code/#post-10929894)
 * Status: resolved