End of Support for Joomla 3 - Forum closed

Why data-toggle only works when login to website?

Why data-toggle only works when login to website? was created by karenlee59

Posted 6 years 11 months ago #20944
Hello,

I have the same page that has data-toggle working in other template but not working in X2 template.
Do you have any idea why data-toggle = "tab" and data-toggle="modal"only works when I login to the website in X2 template?
Is there a security setting in X2 template to prevent data-toggle to work only if login?

Thank you.
Last Edit:6 years 11 months ago by karenlee59
Last edit: 6 years 11 months ago by karenlee59.

Please Log in or Create an account to join the conversation.

Replied by karenlee59 on topic Why data-toggle only works when login to website?

Posted 6 years 11 months ago #21007
I finally fixed the problem!!

In case any one wants to make the data-toggle works here is the solution:

I have to add the following 2 lines in the "//add javascript" section in template.config.php (which is located in jp-x2 -> layouts)

// add javascripts
$this->addFile('js', '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js');
$this->addFile('js', ' maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js ');

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License