Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #884681

    Is there a way to add a simple drop-down down menu to a page? I need something like what you use to list/display links to post categories, but want to be able to have the options in the drop-down link to pages instead of posts.

    Thanks!

    #884723

    Hey NicomIT,

    Please refer to the following. It is general tutorial on creating menus + dropdown in WordPress:

    http://www.wpbeginner.com/beginners-guide/how-to-add-navigation-menu-in-wordpress-beginners-guide/

    Best regards,
    Jordan Shannon

    #884754

    Thanks for the link Jordan. I have actually tried that, but when I create a new menu/widget and add it to a page it displays as a list style menu, not a drop-down. Is there a way to get it to display as a drop-down?

    I did manually create something (see the link in the private info). But I can’t select the links in the menu below the “Filter By:” text. It seems like something else on the page from the theme is overriding it. Any ideas why that is happening or how to fix it?

    #884784

    I created a test page that is uses a blank template with no header/footer and put the code for the drop-down on it and it seems to work fine. See the link below. It’s not using the Avia Layout Builder.

    #884827

    Hi,

    How did you add the menu? Please provide admin info so we can look into this further?

    Best regards,
    Jordan Shannon

    #885070

    Hi Jordan,
    All I did was add a code block on the first page with a couple divs and the text that appears on the mousover and items that appear below it. On the second page that uses a blank template I just copied and pasted the html into the WordPress editor under the “Text” tab without activating the Avia Layout Builder.

    Login info is below in the private info.

    Thanks!

    #885265

    Hi,

    I think we are miss-communicating a bit. So by dropdown do you mean like an options like like a form?

    Best regards,
    Jordan Shannon

    #888399

    Hi Jordan,
    Sorry for not getting back to you. I had posted a reply, but it looks like something happened to it and I don’t see it here now. Anyway, yes I think you are on the right track. Like options in a form or a pull-down like what you would see in the blog to select different categories. A good example would be if you went to appearance > widgets and added the “A list or dropdown of categories” widget to the sidebar in the website or created a new widget with that. But I want to link to pages in the dropdown, not categories. I hope that helps.

    #888634

    Hi,

    This may be possible with custom coding, but the work involved goes beyond the scope of support provided here in the forums.

    Best regards,
    Jordan Shannon

    #888877

    That’s actually what I ended up doing in two links I sent on December 5th. But it looks like something in the theme is preventing you from mousing over or selecting the links in the drop-down. So I was hoping you might know what is causing that.

    #889138

    Hi,

    Is it the filter by section? Please paste the code that was used to create the effect.

    Best regards,
    Jordan Shannon

    #889297

    Hi Jordan,
    Yes, that’s what I’m referring to. Here’s the code:

    <div class="dropdown">
    	<span><strong>Filter By:</strong></span>
        <div class="dropdown-content">
            <p><a href="/blog/arts-culture/">Arts & Culture</a></p>
            <p><a href="/blog/attractions/">Attractions</a></p>
            <p><a href="/blog/eat-drink/">Eat & Drink</a></p>
            <p><a href="/blog/entertainment-music/">Entertainment & Music</a></p>
            <p><a href="/blog/outdoor/">Outdoor</a></p>
            <p><a href="/blog/shopping/">Shopping</a></p>
    	</div>
    </div>

    And here is the CSS:

    .dropdown {
        position: relative;
        display: inline-block;
    }
    
    .dropdown strong {
    	color: #fff !important;
    	text-transform: uppercase;
    	background-color: #00548B;
    	padding: 15px 30px;
    }
    
    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        width: 200px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        padding: 12px 16px;
    	margin-top: 15px;
        z-index: 1;
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
    #889345

    Hi Jordan,
    I was able to figure out the issue. The elements on the page below the drop down were going over top of it. So adding this fixed the issue:

    #av_section_3, #after_section_3, #after_section_2 { 
      position: relative; z-index: 0 !important; 
    }
    #889347

    Hi,

    Great! I’m glad you were able to get this corrected. Did you need additional help, or shall we close this thread?

    Best regards,
    Jordan Shannon

    #889417

    No, I think I’m good. Thanks.

    #889435

    Hi,

    If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 16 posts - 1 through 16 (of 16 total)
  • The topic ‘Simple Drop-Down Menu’ is closed to new replies.