Accordion style typography in Hot Flat template

More
2 months 1 day ago #47585 by milos
Please change the code you added with:
<?php JHtml::_('bootstrap.framework');
$doc->addStyleSheet($this->baseurl . '/media/jui/css/bootstrap.min.css'); ?>

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

More
2 months 5 hours ago #47588 by Danimeeka
I made that change (I should have realised it was php) but that threw the following error:

Call to a member function addStyleSheet() on null

Thanks,
Julia.

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

More
1 month 4 weeks ago #47590 by milos
Hello,

Strange, the file should be in place if you are using the latest Joomla version. So, either upgrade to the latest Joomla version or from the latest Joomla version package (downloaded from joomla.org) extract file /media/jui/css/bootstrap.min.css and upload it to your website (using FTP) in the same location.

Thanks,
Milos

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

More
1 month 4 weeks ago #47592 by Danimeeka
Hi Milos,

It is strange. I'm using the latest version of Joomla. I checked for the presence of media/jui/css/bootstrap.min.css and it is in place, exactly the same filesize and date as that installed in the website I have built using the Leaves template.

I did not reinstall the file.
In Leaves, the code you gave me is wrapped in an IF statement:
if ($loadBootstrap) {
JHtml::_('bootstrap.framework');
$doc->addStyleSheet($this->baseurl . '/media/jui/css/bootstrap.min.css');
}
Would this help?
Thanks,
Julia.

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

More
1 month 4 weeks ago - 1 month 4 weeks ago #47594 by milos
Hello,

No sorry, you don't need IF statements, but you need a line BEFORE the code I gave you. So, this is the final code:
<?php
$doc = JFactory::getDocument();
JHtml::_('bootstrap.framework');
$doc->addStyleSheet($this->baseurl . '/media/jui/css/bootstrap.min.css');
?>

Best regards,
Milos
Last edit: 1 month 4 weeks ago by milos.

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

More
1 month 4 weeks ago #47595 by Danimeeka
Yes, that did it! Wonderful - thanks Milos!
Julia.

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

Moderators: milos
Time to create page: 0.113 seconds