requireCss()
Description
Lets you include external CSS files without having to write tags. It works like PHP's include_once, making sure that a single file is never included more than once.
Usage
<?php
echo requireCss( $file, [$global] );
?>
Parameters
$file
- required
- string
The URL to the file (can be relative or absolute, but best with absolute)
$global
- optional
- true or false
- default is false
If true, the function will look for the file in the ../site/css folder.
Examples
Include an extra CSS file (not main.css) from theme folder
<?php
echo requireCss( themeUrl() . "css/print.css" );
?>
-
FAQ
- What is the Page Type and how do I use it?
- How do I make blog pagination work?
- How can I make next/previous buttons to navigate my projects?
- How do I include Vimeo, YouTube, SoundCloud etc in my projects, pages, blog posts?
- How do I make excerpts for my blog posts? (Using the {more} tag)
- View all (2 more)
-
General Documentation
-
Themes
-
Code Documentation