• Resolved nono9x

    (@nono9x)


    Hi there,
    I don’t use jQuery Vertical Accordion Menu because my DW MINION theme also have it. But it doesn’t seem to expand whenever I point my mouse to it.
    I want these Accordions to expand whenever I point my mouse to, can you help me?

    This is the code of Accordion in main.css:

    .accordion {
      margin-bottom: 25px;
    }
    .accordion-group {
      margin-bottom: 10px;
    }
    .accordion-heading {
      border-bottom: 0;
    }
    .accordion-heading .accordion-toggle {
      display: block;
      padding: 10px 40px 10px 20px;
      font-size: 12px;
      line-height: 20px;
      text-transform: uppercase;
      position: relative;
      background: #7cc576;
      color: #ffffff;
      -webkit-border-radius: 2px;
      -moz-border-radius: 2px;
      border-radius: 2px;
    }
    .accordion-heading .accordion-toggle:hover {
      text-decoration: none;
    }
    .accordion-heading .accordion-toggle:after {
      content: "\f078";
      font-family: FontAwesome;
      position: absolute;
      right: 20px;
      font-size: 10px;
    }
    .accordion-heading .accordion-toggle.collapsed {
      background: #eee;
      color: #333333;
    }
    .accordion-heading .accordion-toggle.collapsed:after {
      content: "\f054";
    }
    .accordion-toggle {
      cursor: pointer;
    }
    .accordion-inner {
      padding: 15px 0 5px;
    }
Viewing 1 replies (of 1 total)
  • Theme Author DesignWall

    (@designwall)

    Please add this JS code to main.js file in folder path: (wp-content/themes/dw-minion/assets/js)

    $(function() {
        $('.accordion').on('mouseenter.collapse.data-api', '[data-toggle=collapse]', function(e) {
            var $this = $(this),
                href, target = $this.attr('data-target') || e.preventDefault() || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7
                ,
                option = $(target).data('collapse') ? 'show' : $this.data()
                $(target).collapse(option)
        })
    })
Viewing 1 replies (of 1 total)
  • The topic ‘How to make auto expand accordion?’ is closed to new replies.