Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #194204
    Adam T
    Participant

    Hi, is it possible to expand my subheadings by clicking on the subheading itself as well as the little arrows to the right?

    For example –

    http://www.animalsitting.co.uk

    I would like to be able to click services, and open up the lower headings rather than clicking the 2 little down arrows?

    Many Thanks, Adam

    #194950
    Friech
    Moderator

    Hi Adam,

    Thanks for writing in! Regretfully, at this time I am not entirely certain what it is you would like to accomplish based on the information given in your post. If you wouldn’t mind providing us with a little more clarification on what it is you’re wanting to do (a link to a similar example site would be very helpful, or perhaps some screenshots), we’ll be happy to provide you with a response once we have a better understanding of the situation.

    Thanks.

    #195318
    Adam T
    Participant

    Hi there,

    Please try

    http://www.hmv.com on an ipad

    When you click the menu, you can click on the subheadings themselves and they will expand.

    I would like this on my site, so that you can click the subheadings themselves and the menu expands, rather than just clicking the arrows to expand the menu?

    Also on a second note, when you open up my menu subheadings on an iPad, they seem to be very squashed to the left, and the click down arrows are on top of some of the sub headings rather than to the side of them?

    Many Thanks, Adam

    #195837
    Zeshan
    Member

    Hi Adam,

    Thanks for writing in!

    This behaviour is to make the parent link clickable as well as to open the submenu (upon clicking the arrows). However, if you wish to expand the submenu on clicking the parent menu link as well, you can try to achieve it by adding following code under Custom > JavaScript in the Customizer, though it will disable the parent menu link:

    jQuery(document).ready(function($) {
       var subMenuLink = $('.x-navbar .mobile .x-nav li.menu-item-has-children > a');
    
       subMenuLink.click(function(e) {
         e.preventDefault();
         $(this).siblings('.sub-menu').slideToggle(300);
       });
    });
    

    Thanks!

    #196511
    Adam T
    Participant

    Hi there,

    I have just added that code but it doesn’t seem to have had any effect?

    Many Thanks, Adam

    #196749
    Rad
    Moderator

    Hi Adam,

    I don’t see the script added at your site.


    Please re-add and clear your caching plugin’s cache.

    Thanks!

    #196994
    Adam T
    Participant

    Hi there,

    Sorry, I had added it to the css rather than the javascript, it works great now thank you.

    Can you just have a quick look at how the mobile menu is formatted when viewed on an iPad?

    If you click the mobile menu button and then services, the arrows are covering some of the sub heading ‘Home Cat Boarding’

    How can I change this?

    Many Thanks, Adam

    #197114
    Zeshan
    Member

    Hi Adam,

    Upon checking, you have added some custom CSS code in your website that’s causing this issue (see: http://prntscr.com/604gzd). To fix it, try inserting following CSS under Custom > CSS in the Customizer:

    @media (max-width: 979px) {
        .col-6 .menu-item {
            width: auto !important;
        }
    }
    

    Cheers!

    #197125
    Adam T
    Participant

    Hi there,

    That worked perfectly thank you!

    Adam

    #197219
    Christopher
    Moderator

    You’re welcome.

    #704032
    bsjoling
    Participant

    Lovely stuff… just done the same and cured an irritating niggle

    great stuff, many thanks

    #704071
    Thai
    Moderator

    Glad it worked, @bsjoling.

    If you need anything else, please let us know.

  • <script> jQuery(function($){ $("#no-reply-194204 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>