Forums

[CC V4] Custom CSS not displaying

Bullfn33 18 May, 2012
Hi there,

I'm having trouble getting some custom CSS code to display in ChronoConnectivity. I placed it in the header box but it seems as though the code gets stripped because it gets placed inside form tags when viewing in the front end. I checked with V3 and the connections do not place custom code inside form tags. Can anyone verify that custom CSS code works or not in V4?

thanks all
GreyHead 19 May, 2012
Hi Bullfn33 ,

I don't know much about CCV4. I don't see an option to turn the form tags on and off, there certainly was one in CCv2.

I'm surprised that form tags affect CSS, You have it in Script tags presumably? You can use the Joomla! method to load it in the page head:
<?php
$doc =& JFactory::get Document();
$style = "
/* add CSS here*/
";
$doc->addStyleDeclaration($style);
?>

Bob
Bullfn33 22 May, 2012
I'm not sure exactly what was causing the CSS code to be stripped but the only difference I saw between version 3 and 4 was the form tags around it. When placed inside CC the page source showed the elements from the code but stripped the styling rules.

However, your solution worked great so thank you much Bob.
This topic is locked and no more replies can be posted.