Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,075 of 9,075 pages
About the help in other languages
All help pages

Module 3: Stylesheets and scripts through the packer

The third module of Theme design. Learners list their stylesheets and scripts in design.ini, see what the ezjscore packer does with them, learn the routine after a change, and make their theme ready for a Content…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/trainers/theme-designers/module-03-stylesheets-and-scripts/README.md

On this page

Module 3: Stylesheets and scripts through the packer

A theme's look lives in its stylesheets and its behavior in its scripts. In Exponential both are named in design.ini and delivered by the ezjscore packer, never linked by hand. In this module learners add files to training_theme the Exponential way, compare packed and unpacked pages, learn the three caches that remember an old stylesheet, and remove every reason for inline code so their theme can run under the shipped Content Security Policy.

At a glance

CourseTheme design
Duration2 hours 55 minutes (with one 10-minute break)
Lessons4
LevelBeginner to intermediate

Lessons

LessonDurationWhat learners do
Lesson 3.1: Listing stylesheets and scripts in design.ini45 minutesAdd training.css to the frontend list, require article.css from one template
Lesson 3.2: The ezjscore packer45 minutesSwitch the packer off and on for one siteaccess, find a packed file and read its name
Lesson 3.3: After a stylesheet change30 minutesRun the clear routine, hard reload, compare the packed names
Lesson 3.4: A theme ready for a Content Security Policy45 minutesRead a report-only violation, replace inline code with classes, data attributes and a script file

Preparing this module

  • Learners' training_theme from module 2 working on their public siteaccess, with the skip link and breadcrumb of lesson 2.2.
  • A browser with developer tools (console and network panel) on every learner computer; show where they are before lesson 3.4.
  • Check on a copy of the lab that extension/ezjscore/settings/ezjscore.ini has Packer commented out and that DevelopmentMode is disabled, so the packer is on at the start of lesson 3.2.
  • If the lab runs on Velocity, have php bin/php/console exp:velocity cache clear --apply on the board for lesson 3.3.

Timing plan

PartMinutes
Lesson 3.145
Lesson 3.245
Break10
Lesson 3.330
Lesson 3.445
Total175

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x