By LAC Webadmin on Wednesday, 17 May 2017
Posted in Technical Issues
Replies 1
Likes 0
Views 446
Votes 0
Hi There,

How does ES v2.x load module CSS? Did you guys merged it with the theme CSS?

Looking at ES v2 modules library, there is a method named requireCSS() but the code is just loading the theme css. If I am going to develop a 3rd party module for EasySocial, how do I load my module CSS using modules library or using ES libraries?

Thanks,

Jackson
Yes, all the module styling will complied as 1 single css file then load on the page.

What my suggestion is load that module styling itself, i think you can use following code to achieve this :

$document = JFactory::getDocument();
$url = 'http://site.com/style.css';
$document->addStyleSheet($url);
·
Wednesday, 17 May 2017 11:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post