Hello there! Welcome to Youjoomla Support Forums

We are Web Development Company specializing in Joomla Templates , Joomla Extensions and WordPress Themes development . You are not able to see some forum threads due to your memberhip level. To unlock all forums and special customer support please take few moments to signup . If you are just searching for free joomla templates , or free joomla extension support simply head to our Free Joomla Support forums and open a new thread. Our moderators will help you as soon as possible. To spead up the response time please take few seconds and go over forum rules

Have fun!

YJSG Tabs to change to Accordions on responsive breakpoint

01-03-2016, 09:58 PM
# 6 (permalink)
aaronbensonlive
I used the "yjsg_custom_params.php" file, following the instructions here:

http://www.yjsimplegrid.com/document...rams-file.html

and here:

http://yjsimplegrid.com/documentatio...avascript.html

It worked!!!

I added my CSS, JS and the JQuery function call all in there. Sort of like this for a test class called metamxTabs:

Code:

$YjsgCustomJS= array();
$YjsgCustomJS[] = $yj_site.'src/jquery.responsiveTabs.js';
// Loads the script
$document->addStyleSheet(JURI::base() . 'templates/eximium/css/responsivetabs/responsive-tabs.css');
$document->addStyleSheet(JURI::base() . 'templates/eximium/css/responsivetabs/style.css');
//Loads the CSS
$yjsg_js.="jQuery(function($) {
     $('#metamxTabs').responsiveTabs({
     startCollapsed: 'accordion'
   });
 })";
//Calls the function
However, its too clumsy a solution for me to use. As I mentioned in my original post, I am using both the shortcode tabs, and also the module position tabs. So, i'd have to rewrite some of the core tabs plugin in order to get my classes on there, and it ended up being too clunky a solution for me.

So, For my hero position on the Home Page I'm using the module position slider instead of the tabs, I added a mock version of the tabs navigation in my module for desktop navigation, and then the slider pagination for small displays. This is a bit better, and less work for me .

Thanks for the help. I'm setting up the live site and will purchase the licence for the clients domain. All the code headers are completely preserved, so think I'll bo OK for the TOS.

I love this framework. As I get through the fine grain work, it seems you guys thought of everything, and when I want to customize its really pretty flexible. Awesome Job.
Thread Tools
Display Modes

Powered by vBulletin®
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

Members Login

Username
Password