Include/Embed stylesheet properly Expression Engine

It’s pretty easy to create stylesheet in expression engine from backend. But we need to take care about it when we create it or when we include it on our template.

1. it will better to create static stylesheet instead of create weblog stylesheet.

2. include your weblog stylesheet as follows.

<link rel=”stylesheet” href=”{stylesheet=styles/screen.css}”  type=”text/css” media=”screen, projection” />

instead of

<link rel=”stylesheet” href=”{path=styles/screen.css}” type=”text/css”  media=”screen, projection”  />

because EE parser engine parse stylesheet template as regular weblog template which may make slower your application. but if you want to
put weblog queires inside any stylesheet template, you must have to use second tag.
3. Enable cache for your templates.

Then, your application become faster.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.