Okay
  Public Ticket #3083434
drop down menus in content/column
Closed

Comments

  •  19
    mjoakton started the conversation

    Hi there,
    Are there any  options to have dropdown nav bars within the page content or a column within wpbakery?

    Many thanks, Tom

  •  277
    Noah replied

    Hi Tom,

    No there is no option for that.
    There is a page submenu element but that will not provide a dropdown.

    Cheers.

  •  19
    mjoakton replied

    OK thanks Noah. That is what I assumed. Is there any other solution that you can recommend?

    I have used the toggle previously on another site.

    Is there a way to have 2 very destinct styles for the toggle panels? 1 for page items and 1 for housing the menu - eg. the main content toggles are unchanged and the menus carry a menu symbol?


  •  1,643
    Judith replied

    Hello There,

    Do you have a website with a similar feature of the toggle panel so that we can get a better understand of the feature you are asking for.

    Thanks.

  •  19
  •  8,402
    Tahir replied

    Hey Again,

    Try using the SubMenu Page Element instead of the toggles and check.

    Thanks 


    ThemeNectar Support Team 

  •  19
    mjoakton replied

    The Submenu page element does not expand and collapse though. Or can it?

  •  277
    Noah replied

    Hi there,

    No it does not expand of collapse. Please use it to see it limitations.

    Also try the accordion element as it expands  to expose a panel where you can add your own links.
    Thats the closest workaround we can think of with the example here https://www.infosecpartners.com/managed-security-services

    Cheers.

  •   mjoakton replied privately
  •  277
    Noah replied

    Hi Tom,

    The workaround we suggested earlier, have you tried it. Its the toggle panel element not the accordion element. Sorry about that. 

    Add that to the page, then add wp custom menu element to it and set the menu you want to show on the panel. 

    Its should show up on your page as a long bar you can click and then it reveals the menu underneath similar to the example link you provided.

    Could you please try it as its a really good workaround and CSS only will not work on the submenu element.

    Thanks.

  •  19
    mjoakton replied

    Hi, I have decided to use the page submenu element full width just below the main navigation. I think this is the best fit going forward from a management side of things and also from a user friendly perspective . 

    Is there a way to change the name to "Submenu" when the menu is in a drop down state?

    Would also be amazing if there was css to keep it as a dropdown.


    Many thanks, Tom

  •  1,643
    Judith replied

    Hello There,

    You can Say What plugin to translate as shown below:

    5640680592.png

    Thanks.

  •  19
    mjoakton replied

    OK great. That works well and solved another issue I had elsewhere. Thanks :-)

    Is there  a way to always show as a dropdown menu? For certain sections of the site I will have too many menu items to comfortably fit the width and don't want the menu to wrap over lines.

  •  1,643
    Judith replied

    Hi There,

    Please set the drop down as shown below:

    9832775340.png

    Please let me know whether I missed something.

    Thanks.

  •  19
    mjoakton replied

    Hi Judith,
    This is for the page submenu element in wpbakery not the main site navigation. I would like the submenu element to always display as a dropdown rather than a long bar of links.

    Thanks, Tom

  •  277
    Noah replied

    Hi there,

    To get the submenu element to show as a dropdown always then use this CSS:

    .page-submenu li{
        display:block !important;
    }
    

    It will add more vertical space at the top and its best you let the submenu wrap itself horizontally at the top. 

    Another option maybe you can look into is the full screen rows shown here https://themenectar.com/docs/salient/page-metaboxes/#fullscreenrows just a suggestion.

    Cheers.

  •  19
    mjoakton replied

    Hi, Thanks for that. Unfortunately that just shows an expanded verticle menu. Not an actual dropdown menu that can be selected. Can it behave like a dropdown menu like it does on a mobile device?

    Attached files:  dropdown.png

  •  1,643
    Judith replied

    Hi There,

    I am afraid this is not possible with the page submenu element.

    Thanks.

  •  19
    mjoakton replied

    Sorry, I am curious to how the mobile break point is determined?

  •  277
    Noah replied

    Hi there,

    Its hard wired into the CSS and its not something that can be easily changed up.
    Its uses media queries for most of the common screen sizes \ widths.

    Cheers.

  •  8,402
    Tahir replied

    Hey Again,

    Add this into the Custom CSS box in your Salient Theme Options panel (We write all Custom CSS in the Live Browser to ensure accuracy. If you cannot see any changes, make sure there is no red cross in the Custom CSS Box as any syntax error would cause all CSS under that line of code to not show up on the Frontend):

    .page-submenu .mobile-menu-link {
        display: inline-block
    }
    .page-submenu ul {
        position: absolute;
        top: 48px;
        left: 0;
        width: 101%;
        display: none;
        z-index: 1000;
    }
    .page-submenu[data-alignment=left],.page-submenu[data-alignment=right] {
        text-align: center
    }
    #boxed .page-submenu ul {
        width: 100%
    }
    #ajax-content-wrap .page-submenu ul li {
        display: block;
        margin: 0
    }
    .page-submenu .full-width-content {
        position: relative
    }
    .page-submenu ul li a {
        border-top: 1px solid rgba(255,255,255,.2);
        padding: 10px 20px
    }
    .page-submenu[data-bg-color="#ffffff"] ul li a {
        border-top: 1px solid rgba(0,0,0,.08)
    }
    .page-submenu ul[style*="none"] {
        display: none !important;
        height: auto!important;
    }

    Thanks


    ThemeNectar Support Team 

  •  19
    mjoakton replied

    Hi Tahir, 

    Thabks so much for taking the time. That is nearly perfect. 

    Only issue I have is that the menu is displaying as being in its open state, rather than closed when the page first loads.

    Thanks, Tom


  •  1,643
    Judith replied

    Hi There,

    Please try this css:

    .page-submenu ul[style*="none"] {
        display: none !important;
    }

    Thanks.

  •  19
    mjoakton replied

    Thanks Judith, Unfortunately that didn't change anything.


  •  1,643
    Judith replied

    Hi There,

    Please send in your admin login credentials so that we can check this out further.

    Thanks.

  •  19
    mjoakton replied

    Hi, Sure. Our development site is behind a security plugin - so will need your IP address to whitelist you first.

    Thanks, Tom

  •  8,402
    Tahir replied

    Add this CSS in addition to the CSS earlier provided by me.

    .page-submenu ul{
        display: none !important;
    }
    .page-submenu ul[style*="block"] {
        display: block !important;
    }

    Thanks


    ThemeNectar Support Team 

  •  19
    mjoakton replied

    Perfect! Thanks so much Tahir