Forum Support

Shape 5
March 28, 2024, 02:03:40 PM *
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: Open another tab instead of first one  (Read 628 times)
rgaller
Jr. Member
**
Offline Offline

Posts: 24



« on: March 15, 2016, 04:47:21 PM »

Hi,

in my Accordeon example, the first tab ist open when opening the page. Is there a way to either close all tabs OR open another tab (eg the last one?).

http://www2.rgaller.bplaced.net/index.php/bewerbe

Thanks,
Roland
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: March 16, 2016, 07:51:04 AM »

Hello,

There is not a way to have them all close, the script is designed for one to always be open. You could change the one that is open but it will require some modifications to the extension:

1. Make sure that the auto duration is set to 0 in the module's backend.

2. Edit the module's helper.php file and find this at line 281:

document.getElementById("s5_va_accordion").style.display = "block";

Just above that add:

jQuery(s5_va_accordion_toggler[1]).trigger('click');

3. Change the "1" in the code above to the accordion you want opened. They are offset by 1, ie: 0 = slide 1, 1 = slide 2, etc.
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
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.