End of Support for Joomla 3 - Forum closed
Why data-toggle only works when login to website?
- karenlee59
- Offline Topic Author
- Fresh Boarder
-
- Posts: 9
- Thank you received: 0
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.
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.
- karenlee59
- Offline Topic Author
- Fresh Boarder
-
- Posts: 9
- Thank you received: 0
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 ');
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 ');
by karenlee59
Please Log in or Create an account to join the conversation.
Moderators: joomlaplates