Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
adding another css
I'd like to add a css file for when someone prints the page and I can't figure out where to put the link to call the css page. any help would be greatly appreciated.
0
Best Answers
-
sahotataran ✭✭✭in
vanilla->applications->dashboard->modules->class.headmodule.php
there is functionAddCss($HRef, $Media = '', $AddVersion = TRUE, $Options = NULL)
you can add your PRINT CSS file in yourthemedirectory->design->print.css
and call function in your themehooks aspublic function Base_Render_Before($Sender) { $Sender->Head->AddCss("/design/print.css","print"); }
There was an error rendering this rich post.
0 -
UnderDog MVPRead about themehooks here:
http://vanillaforums.org/docs/theme-hooks
Read documentation here:
http://vanillaforums.org/docsThere was an error rendering this rich post.
0
Answers
vanilla->applications->dashboard->modules->class.headmodule.php
there is function
AddCss($HRef, $Media = '', $AddVersion = TRUE, $Options = NULL)
you can add your PRINT CSS file in your and call function in your themehooks as
public function Base_Render_Before($Sender) { $Sender->Head->AddCss("/design/print.css","print"); }
There was an error rendering this rich post.
thanks for your help!
http://vanillaforums.org/docs/theme-hooks
Read documentation here:
http://vanillaforums.org/docs
There was an error rendering this rich post.