1. Helix-II
  2. Wednesday, 23 April 2014
Hello everyone!
I use a shortcode [accordion] in my site. But when a new page open (load), then first item [accordion_item...] is expanded always. How can I do that all items in accordion were closed at loading/opening page?
Thank you!
Responses (6)
Hi,

Go to your project folder > plugins > system>helix>shortcodes>accordion.php

line #35
$html .= '<div id="'.Helix::slug($accordion['title']).'" class="accordion-body collapse' . ( ($key==0) ? " in" : "") . '">';


modify this to
$html .= '<div id="'.Helix::slug($accordion['title']).'" class="accordion-body collapse' . ( ($key==0) ? " " : "") . '">';


If this works please close the ticket

Thanks
Arun
  1. more than a month ago
  2. Helix-II
  3. # 1
Hi, I want to achieve the same outcome for the accordion shortcode, and attempted the solution above but it did not work for me.

I cleared cache and tested it in IE9 and Firefox 30.

Any other suggestions?

Thanks.
  1. more than a month ago
  2. Helix-II
  3. # 2
Hi,

PM your hosting details

Thanks
Arun
  1. more than a month ago
  2. Helix-II
  3. # 3
Arun Sasi wrote:

Hi,

PM your hosting details

Thanks
Arun


Hi Arun

Are you wanting FTP access ?

Thanks
  1. more than a month ago
  2. Helix-II
  3. # 4
Hi,

I will check it and revert you back.

Thanks
Arun
  1. more than a month ago
  2. Helix-II
  3. # 5
Hi,

Go to your template folder > open shaper_awetive> shortcodes> open accordion.php

line 40

$html .= '<div id="'.$id.'-accordion-'.$key.'" class="accordion-body collapse' . ( ($key==0) ? " in" : "") . '">';


to

$html .= '<div id="'.$id.'-accordion-'.$key.'" class="accordion-body collapse' . ( ($key==0) ? " " : "") . '">';



Thanks
Arun
  1. more than a month ago
  2. Helix-II
  3. # 6


There are no replies made for this post yet.
Be one of the first to reply to this post!


This forum is archived

This forum has been archived. Please use JoomShaper official support system.