Shape 5

Joomla Templates => Velocity - Club => : kflavel01 November 26, 2015, 03:08:08 AM



: S5 Accordion Menu pull back up when arrows are clicked
: kflavel01 November 26, 2015, 03:08:08 AM
Hello,
I am using the S5 Accordion Menu and it is working fine but I have noticed that when you click on the menu and it drops down to reveal the submenus you cannot then click back on the  arrow to pop the submenus back up. Is there away to do this?

Here is my accordion menu on the left http://webserver.datapath.co.uk/datapath-products

Regards,
Karen


: Re: S5 Accordion Menu pull back up when arrows are clicked
: mikek November 26, 2015, 06:53:25 AM
Hello,

Please be sure to post your questions in the correct forum board. This board is for the Velocity template, but you are not using that template on your site.

First, clicking the title again will close the accordion by default, you can see that on any of our latest demos. First, I would suggest updating the module to the latest files. Second, have you made any modifications to the module? There is an extra <a> call that I do not know where it is coming from:

This is what your site looks like:

<h3 class="s5_am_toggler s5_am_parent">
   <a href="/graphic-cards-products">
      <span class="s5_accordion_menu_left">
         <span class="mainlevel">
            <span>Graphic Cards</span>
         </span>
      </span>
   [/url]
</h3>


And this is what it's supposed to be:


<h3 class="s5_am_toggler s5_am_open  s5_am_parent">
   <span class="s5_accordion_menu_left">
      <a class="mainlevel" href="/graphic-cards-products">
         <span>Graphic Cards</span>
      [/url]
   </span>
</h3>


: Re: S5 Accordion Menu pull back up when arrows are clicked
: kflavel01 November 26, 2015, 11:11:17 AM
Sorry If I had posted in the wrong area but I am using the Velocity Template its just been modified. Yes I had altered the PHP in order for the whole area to be the link instead of just the words.

The Accordion displays the submenus on the first click but on the 2nd click it just re-opens. What I want it to do is close the submenus again on the 2nd click, is this possible?

Thanks


: Re: S5 Accordion Menu pull back up when arrows are clicked
: mikek November 27, 2015, 07:30:55 AM
Hello,

Clicking the same link again a second time will close the same menu item to close again. You can see that on a default installation here:

http://www.shape5.com/demo/game_world/index.php/extensions/s5-accordion-menu

Click "Extensions" and that same item will open and close.

I cannot debug a modified version of the module for you. The entire area is not meant to be a link or it will not perform correctly.


: Re: S5 Accordion Menu pull back up when arrows are clicked
: kflavel01 November 30, 2015, 03:16:07 AM
Hello, I changed the module plugin back to its original state as it wasn't quite working correctly.

Yes thats the issue its meant to drop up and down when you click on the arrow but it doesn't do that. I have even tried installing the new version of the plugin but it still doesn't work how it is mean't too.

Thanks


: Re: S5 Accordion Menu pull back up when arrows are clicked
: mikek November 30, 2015, 08:18:26 AM
Hello,

I would suggest disabling any third party extensions you have enabled to see if one is interfering. The default script of the module will open and close as shown on the demo link I provided above, so something is most likely interfering.

Looking at the source of your site I see several javascripts that aren't called correctly, this one for example:

<script src="http://58ac40c7a9f1bb601417-136b82a13e0a018a3b4d7f50924b6a9c.r24.cf3.rackcdn.com/lightbox/js/jquery-1.11.0.min.js?1448476593"></script>

Jquery should never be called on its own outside of the Joomla core like this script is doing. Jquery is meant to be called only from the core Joomla js files to avoid multiple scripts calling Jquery and causing conflicts.

Disabling third party scripts is the best way to determine if one is interfering.


: Re: S5 Accordion Menu pull back up when arrows are clicked
: kflavel01 November 30, 2015, 11:07:48 AM
Thanks for getting back to me. Its really weird but I have just had a little go on the menu and it seems to be working absolutely fine which is really odd. The only thing I could think of is that we are running a CDN and I had just deleted all the cache files and restarted it.

Thanks for your help though, If I have any further issues I will have a look at those Jquery scripts.

Thanks