Accordion style typography in Hot Flat template

  • milos
    Support Staff
  • Moderator
  • Moderator
More
4 years 10 months ago #47585 by milos
Please change the code you added with:
Code:
<?php JHtml::_('bootstrap.framework'); $doc->addStyleSheet($this->baseurl . '/media/jui/css/bootstrap.min.css'); ?>

Please Log in to join the conversation.

More
4 years 10 months 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 to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
4 years 10 months 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 to join the conversation.

More
4 years 10 months 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 to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
4 years 10 months ago - 4 years 10 months 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:
Code:
<?php $doc = JFactory::getDocument(); JHtml::_('bootstrap.framework'); $doc->addStyleSheet($this->baseurl . '/media/jui/css/bootstrap.min.css'); ?>

Best regards,
Milos
Last edit: 4 years 10 months ago by milos.

Please Log in to join the conversation.

More
4 years 10 months ago #47595 by Danimeeka
Yes, that did it! Wonderful - thanks Milos!
Julia.

Please Log in to join the conversation.

Time to create page: 0.313 seconds
Powered by Kunena Forum