Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    •  
      CommentAuthorphpgirl
    • CommentTimeJan 14th 2008
     # 1
    I would like to import another style sheet to use, in ADDITION to the default Vanilla style sheet, not instead of...I already have it created, I just need Vanilla to use it.

    Is this possible without modifying vanilla PHP and without having to cut/paste it into the vanilla.css file?
    • CommentAuthortimfire
    • CommentTimeJan 14th 2008 edited
     # 2
    You could create an extension:

    <?php
    /*
    Extension Name: My Style Sheet
    Extension Url: n/a
    Description: n/a
    Version: 0.1
    Author: n/a
    Author Url: n/a
    */

    if (isset($Head)) $Head->AddStyleSheet('extensions/MyStyleSheet/Whatever_You_Call_It.css'); // change the name to whatever you call your style sheet

    ?>


    Throw that code in a file called "default.php". Then place it, along with your style sheet, in a folder (in this example, called "MyStyleSheet") inside your extensions folder. Then enable it like any other extension.
    •  
      CommentAuthorphpgirl
    • CommentTimeJan 14th 2008
     # 3
    Wow, that worked perfectly. Thanks a lot!
Add your comments
    Username Password
  • Format comments as