- Posts: 6898
- Thank you received: 737
Accordion style typography in Hot Flat template
- 
        milos
 Support Staff
- 
            
				  
- Moderator
- 
              
        Less
        More
        
            
    
        
            
        
                6 years 4 months ago                #47585
        by milos
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by milos on topic Accordion style typography in Hot Flat template            
    
        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.
- 
        Danimeeka
 Active member
- 
            
				 Topic Author Topic Author
- Member
- 
              
        Less
        More
        
            
    
        - Posts: 206
- Thank you received: 0
            
        
                6 years 4 months ago                #47588
        by Danimeeka
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by Danimeeka on topic Accordion style typography in Hot Flat template            
    
        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.
Call to a member function addStyleSheet() on null
Thanks,
Julia.
Please Log in to join the conversation.
- 
        milos
 Support Staff
- 
            
				  
- Moderator
- 
              
        Less
        More
        
            
    
        - Posts: 6898
- Thank you received: 737
            
        
                6 years 4 months ago                #47590
        by milos
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by milos on topic Accordion style typography in Hot Flat template            
    
        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
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.
- 
        Danimeeka
 Active member
- 
            
				 Topic Author Topic Author
- Member
- 
              
        Less
        More
        
            
    
        - Posts: 206
- Thank you received: 0
            
        
                6 years 4 months ago                #47592
        by Danimeeka
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by Danimeeka on topic Accordion style typography in Hot Flat template            
    
        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.
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
- 
              
        Less
        More
        
            
    
        - Posts: 6898
- Thank you received: 737
            
        
                6 years 4 months ago         -  6 years 4 months ago        #47594
        by milos
    
    
    
            
            
            
            
                                
    
                                                
    
        Replied by milos on topic Accordion style typography in Hot Flat template            
    
        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:
Best regards,
Milos
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: 6 years 4 months ago  by milos.            
            Please Log in to join the conversation.
        Time to create page: 0.114 seconds    
    