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.
Options

adding another css

edited October 2011 in Vanilla 2.0 - 2.8
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.

Best Answers

  • Options
    sahotataransahotataran Developer, Bay Area - CA ✭✭✭
    edited October 2011 Answer ✓
    in 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
    themedirectory->design->print.css
    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.

  • Options
    UnderDogUnderDog MVP
    Answer ✓
    Read about themehooks here:
    http://vanillaforums.org/docs/theme-hooks
    Read documentation here:
    http://vanillaforums.org/docs

    There was an error rendering this rich post.

Answers

  • Options
    sahotataransahotataran Developer, Bay Area - CA ✭✭✭
    edited October 2011 Answer ✓
    in 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
    themedirectory->design->print.css
    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.

  • Options
    themehooks? where is that?

    thanks for your help!
  • Options
    UnderDogUnderDog MVP
    Answer ✓
    Read about themehooks here:
    http://vanillaforums.org/docs/theme-hooks
    Read documentation here:
    http://vanillaforums.org/docs

    There was an error rendering this rich post.

Sign In or Register to comment.