Add custom CSS

Design and landing pages

Change the look of a course, page or checkout beyond the Design settings with your own CSS.

Custom CSS lets you change what the Design settings don't reach, such as hiding a part of the page or restyling one kind of element. Each course, membership, showcase, community, checkout page and landing page has its own, and it shows only on that item's pages.

Add CSS to a course, membership, showcase or community

  1. Open the item, and in the tool rail select Setup, then Custom CSS, right below Design.
  2. Select + Page element and pick the part you want to change. While you point at a part in the list, the preview outlines it, and picking it adds its CSS name to the box with empty braces after it.
  3. Type your rules between the braces. The preview beside the box changes as you type.
  4. Select Save changes. Nothing reaches your students until you do.
The Custom CSS panel next to the tool rail, with the Page element menu and Save changes at its foot.
  1. 1 In the tool rail, under Setup, select Custom CSS.
  2. 2 Select + Page element to add a part of the page.
  3. 3 Select Save changes when you're done.

On a checkout page, Custom CSS is under Setup too. On a landing page it's a tab at the top of the editor. Products have no custom CSS of their own; their checkout pages do. The box holds up to 50,000 characters.

Class names for the common parts

+ Page element lists only the parts on the page you're previewing. These are the ones creators ask about most:

  • Page background: body.pub
  • Buttons: .pub-btn
  • Hero image: .pub-hero
  • Lesson cards: .pub-lesson-card
  • Lesson list: .pub-lesson-rail__list
  • Lesson body: .pub-lesson-content
  • Progress bar: .pub-progress
  • Navigation: .pub-nav

For example, this hides the progress bar on every page of the course:

.pub-progress { display: none; }

Some parts can be hidden with a switch instead; Hide the progress bar or other parts of your course says which.

Why did my custom CSS disappear?

Applying a Design preset replaces an item's custom CSS with the preset's own, and Teachery's presets have none. A preset you saved yourself keeps the CSS the item had when you saved it. Keep a copy of your CSS before you try a new preset; see Save and reuse a design with presets.

Why does Save changes ask about my preset?

When the item wears a Design preset of yours that other items also use, saving asks whether to update only this item or the preset everywhere. Choose Update everywhere to send the CSS to every item wearing the preset, or Only this course (or the kind of item you're on) to keep it here.

Will my Teachery 3.0 CSS work here?

No. Teachery 4.0 pages use different class names, so CSS written for Teachery 3.0 won't find the parts it was written for. Rebuild each rule with + Page element, one part at a time. Tidy up a course you moved from Teachery 3.0 covers the rest of the clean-up.

More in Design and landing pages

Need More Help?

Send us an email and a real person will get back to you.

support@teachery.co