Forum Support

Shape 5
March 29, 2024, 03:32:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: S5 Accordion Menu pull back up when arrows are clicked  (Read 1192 times)
kflavel01
Jr. Member
**
Offline Offline

Posts: 83



« on: 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
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: 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>
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
kflavel01
Jr. Member
**
Offline Offline

Posts: 83



« Reply #2 on: 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
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: 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.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
kflavel01
Jr. Member
**
Offline Offline

Posts: 83



« Reply #4 on: 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
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #5 on: 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.
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
kflavel01
Jr. Member
**
Offline Offline

Posts: 83



« Reply #6 on: 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
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.