Monday, 24 November 2014 01:20

beggarly

Remove CSS from Head

Filters news by the current section and category

Remove CSS from Head

Postby ltempest » Mon Nov 30, 2009 4:57 pm

How do i remove the CSS insert that is put in the HEAD of my document and instead copy those styles to my template stylesheet?

Thanks

Lee
ltempest
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Mon Nov 30, 2009 4:56 pm

Re: Remove CSS from Head

Postby ltempest » Mon Nov 30, 2009 5:23 pm

OK found a solution, but don't forget to copy the css from the source of your page first and paste this into your template css file.

Once you have done this open mod_filterednews.php and find these two lines of code at the bottom of the file:

Code: Select all
$doc =& JFactory::getDocument();
$doc->addStyleDeclaration($css);   


Comment out the bottom line as so:

Code: Select all
$doc =& JFactory::getDocument();
// $doc->addStyleDeclaration($css);


This will now remove the css from the head of your document.

Hope it helps.

Lee
ltempest
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Mon Nov 30, 2009 4:56 pm


Return to Filtered News



Who is online

Users browsing this forum: No registered users and 1 guest