Website Building » Wix » How Do I Create a Submenu on Wix?

How Do I Create a Submenu on Wix?

Last updated on January 3, 2023 @ 10:26 pm

There are a few different ways that you can go about creating a submenu on Wix. You can either use the Wix Editor, which is a drag-and-drop website builder, or you can use the Wix Code, which is a more advanced way of building a website.

If you want to use the Wix Editor, then you can simply add a new page to your site and then drag and drop the elements that you want to appear on the submenu. You can also add links to other pages on your site, or even external websites. Once you have everything in place, you can then save your changes and preview your site to see how it looks.

GREAT NEWS:

Exciting update! We've collaborated with Wix to offer WBI users with a free plan for all website creation needs - Explore the details here.

PRO TIP: If you are using Wix to create a website, be aware that there is no easy way to create a submenu. You will need to use HTML code to create one.

If you want to use Wix Code, then you will need to add a new page to your site and then insert the following code into the section:

<script type="text/javascript">
    $(document).ready(function() {
        $("#menu").on("click", "li", function(e) {
            e.preventDefault();
            $(this).toggleClass("active");
        });
    });
</script>

This code will create a menu that when clicked on will reveal a submenu. You can style this menu however you like using CSS. Once you have added the code, you can preview your site to see how it looks.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.