Totara Learn Open Discussions

Este foro de discusión ha sido eliminado.

 
Craig Eves
Re: Can we add external css or style tag and JavaScript into an HTML block?
de Craig Eves (Totara Support) - Tuesday, 4 de August de 2020, 17:02
Grupo Totara

Hi Kanaat

Any non standard content or scripts will be deleted by the editor to prevent malicious content being inserted.

I think the best way to apply CSS to a specific block would be to add the CSS code as Custom CSS under Site admin > Appearance > Themes > Basis

Apply the CSS code to the block instance for example if the block id is 9 then the CSS can be applied to just that block as below

#inst9.block_calendar_month .header{background-color: #008aaf;color:#FFF;}

Regards