dpodesta

How to chamge the CSS

8 posts in this topic

Can I create custom layouts. I tried copying the accordion folder and renaming it but doesn't work.

What;s the best way to alter the css?

Thanks

David

Share this post


Link to post
Share on other sites

Hi David.

Are you sure you changed both of Folder and File's name (accordion.php in the folder) ?

There is other way to make a customization.

Please open folder /templates/your_templates/html

Then create folder mod_bt_tabs then copy folder themes of the module to here.

You can change css or js whatever you want ;)

Good luck

Share this post


Link to post
Share on other sites

Please try this solution.

Open file mod_bt_tabs/tmpl/themes/accordion/js/accordion.js

Find 2 lines

BTT(e.data.Option.ID_TAB +' .tab-button').removeClass('on');

BTT(e.data.Option.ID_TAB + ' .tab-content').slideUp(e.data.Option.DURATION);

Change them to

if(BTT(this).hasClass('on')){
BTT(e.data.Option.ID_TAB +' .tab-button').removeClass('on');
BTT(e.data.Option.ID_TAB + ' .tab-content').slideUp(e.data.Option.DURATION);
}

It will help you not close tab when click others but close if you click itself

Share this post


Link to post
Share on other sites