- Posts: 3
- Thank you received: 0
OS Property support center
disable bootstrap stylesheets
- Roos
- Topic Author
- Offline
- New Member
Less
More
10 years 3 months ago #38985
by Roos
disable bootstrap stylesheets was created by Roos
Hi Dam,
I already have bootstrap (css + js) loaded via my own Joomla template.
So I disabled "Load bootstrap" in the tab General setting (version 2.4).
But there are still bootstrap stylesheets in the head :
components/com_osproperty/js/bootstrap/css/bootstrap.css + bootstrap-responsive.css
I also do not use the google fonts.
Of course I can override this, but is there an easy solution ?
Thanks, Roos
I already have bootstrap (css + js) loaded via my own Joomla template.
So I disabled "Load bootstrap" in the tab General setting (version 2.4).
But there are still bootstrap stylesheets in the head :
components/com_osproperty/js/bootstrap/css/bootstrap.css + bootstrap-responsive.css
I also do not use the google fonts.
Of course I can override this, but is there an easy solution ?
Thanks, Roos
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12520
- Thank you received: 1621
10 years 3 months ago #39000
by Mr. Dam
Replied by Mr. Dam on topic Re: disable bootstrap stylesheets
Hi,
Can you please submit ticket and send your site information like url, super admin account, ftp account. I will check the issue for you
Thanks
Dam
Can you please submit ticket and send your site information like url, super admin account, ftp account. I will check the issue for you
Thanks
Dam
Please Log in or Create an account to join the conversation.
- kalesh.suby
- Offline
- Premium Member
Less
More
- Posts: 106
- Thank you received: 1
10 years 3 months ago #39535
by kalesh.suby
Replied by kalesh.suby on topic Re: disable bootstrap stylesheets
Same issue - Bootstrap is loading even though its disabled in OsProperty settings - How was this fixed? Thanks
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12520
- Thank you received: 1621
10 years 3 months ago #39539
by Mr. Dam
Replied by Mr. Dam on topic Re: disable bootstrap stylesheets
OK Kalesh, i will find the reason of this problem
Thanks
Dam
Thanks
Dam
Please Log in or Create an account to join the conversation.
- farzad
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
6 years 3 weeks ago #110305
by farzad
Replied by farzad on topic Re: disable bootstrap stylesheets
hello,
how are you?
I have the same problem
You could fix the problem?
This problem still exists in the latest version of osproperty
thanks
how are you?
I have the same problem
You could fix the problem?
This problem still exists in the latest version of osproperty
thanks
Please Log in or Create an account to join the conversation.
- Mr. Dam
- Offline
- Administrator
Less
More
- Posts: 12520
- Thank you received: 1621
6 years 3 weeks ago #110306
by Mr. Dam
Replied by Mr. Dam on topic Re: disable bootstrap stylesheets
Hi Farzad,
You mean that when you select Not to load Bootstrap at OS Property configuration, the bootstrap library is still be loaded at front-end of OS Property pages?
Thanks
Dam
You mean that when you select Not to load Bootstrap at OS Property configuration, the bootstrap library is still be loaded at front-end of OS Property pages?
Thanks
Dam
Please Log in or Create an account to join the conversation.
- farzad
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 0
6 years 3 weeks ago #110325
by farzad
Replied by farzad on topic Re: disable bootstrap stylesheets
hi
thanks for your response
Yes, that's it
please check : components\com_osproperty\helpers\helper.php and line 913
back end default language Persian OR Arabic -> Direction is RTL
So,Because the RTL language is in any case bootstrap_rtl.css and bs3.css is loaded
This is my analysis. Maybe I'm wrong too
please check it
public static function loadBootstrap($loadJs = true)
{
global $configClass;
$app = JFactory::getApplication();
$current_template = $app->getTemplate();
$language = JFactory::getLanguage();
$configClass = self::loadConfig();
$rootUrl = JURI::root(true);
$document = JFactory::getDocument();
if (($configClass == 1) or (version_compare(JVERSION, '3.0', 'lt'))) {
if ($loadJs) {
$document->addScript($rootUrl . '/components/com_osproperty/js/bootstrap/js/jquery.min.js');
$document->addScript($rootUrl . '/components/com_osproperty/js/bootstrap/js/jquery-noconflict.js');
$document->addScript($rootUrl . '/components/com_osproperty/js/bootstrap/js/bootstrap.min.js');
}
}
if ((int)$configClass == 0) {
$document->addStyleSheet($rootUrl . '/components/com_osproperty/js/bootstrap/css/bootstrap.css');
$document->addStyleSheet($rootUrl . '/components/com_osproperty/style/bs2.css');
if (file_exists(JPATH_ROOT .'/templates/'. $current_template . '/html/com_osproperty/css/bootstrap_adv.css')) {
$document->addStyleSheet($rootUrl .'/templates/'. $current_template.'/html/com_osproperty/css/bootstrap_adv.css');
}else {
$document->addStyleSheet($rootUrl . '/components/com_osproperty/js/bootstrap/css/bootstrap_adv.css');
}
}else{
$document->addStyleSheet($rootUrl . '/components/com_osproperty/style/bs3.css');
}
if ($language->isRTL()) {
$document->addStyleSheet($rootUrl . '/components/com_osproperty/js/bootstrap/css/bootstrap_rtl.css');
}
}
thanks for your response
Yes, that's it
please check : components\com_osproperty\helpers\helper.php and line 913
back end default language Persian OR Arabic -> Direction is RTL
So,Because the RTL language is in any case bootstrap_rtl.css and bs3.css is loaded
This is my analysis. Maybe I'm wrong too
please check it
public static function loadBootstrap($loadJs = true)
{
global $configClass;
$app = JFactory::getApplication();
$current_template = $app->getTemplate();
$language = JFactory::getLanguage();
$configClass = self::loadConfig();
$rootUrl = JURI::root(true);
$document = JFactory::getDocument();
if (($configClass == 1) or (version_compare(JVERSION, '3.0', 'lt'))) {
if ($loadJs) {
$document->addScript($rootUrl . '/components/com_osproperty/js/bootstrap/js/jquery.min.js');
$document->addScript($rootUrl . '/components/com_osproperty/js/bootstrap/js/jquery-noconflict.js');
$document->addScript($rootUrl . '/components/com_osproperty/js/bootstrap/js/bootstrap.min.js');
}
}
if ((int)$configClass == 0) {
$document->addStyleSheet($rootUrl . '/components/com_osproperty/js/bootstrap/css/bootstrap.css');
$document->addStyleSheet($rootUrl . '/components/com_osproperty/style/bs2.css');
if (file_exists(JPATH_ROOT .'/templates/'. $current_template . '/html/com_osproperty/css/bootstrap_adv.css')) {
$document->addStyleSheet($rootUrl .'/templates/'. $current_template.'/html/com_osproperty/css/bootstrap_adv.css');
}else {
$document->addStyleSheet($rootUrl . '/components/com_osproperty/js/bootstrap/css/bootstrap_adv.css');
}
}else{
$document->addStyleSheet($rootUrl . '/components/com_osproperty/style/bs3.css');
}
if ($language->isRTL()) {
$document->addStyleSheet($rootUrl . '/components/com_osproperty/js/bootstrap/css/bootstrap_rtl.css');
}
}
Please Log in or Create an account to join the conversation.
Moderators: Mr. Dam, Nguyen Phu Quan
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.