Get your tickets!

The code block in Rise lets you add your own HTML, CSS and JavaScript to a course, for example to build an interactive glossary, flashcards or a short quiz. Many people find ready-made code in the E-Learning Heroes community or let an AI chatbot generate it. Then comes the step where many stop: they open the code editor, see hundreds of lines and close it again. Most teams we train haven’t worked with code blocks yet.

In my 45-minute session "Unlock the Power of Rise Code Blocks" at Masters of Articulate in Köln, the goal was simple: help people who have never written code feel confident adapting a Rise code block. We worked along the four questions participants ask most often (where to change colours, fonts, the language and whether a block works on a phone) and answered them hands-on with two examples, a searchable glossary with clearly marked zones and a set of flashcards without any comments. The rows were full, and the feedback afterwards kept saying the same thing: this was what people had been missing to get started with the code block. This article follows the same path, with the glossary as the example that runs through all of it.

The glossary explains the terms you come across when you work with code blocks, from the basics to the three zones you’ll learn about below. Learners type a word into a search field, and the matching entries are highlighted. Filter buttons narrow the list down, for example to the basics or to tips and tricks. As I said in the session, you don’t search for technical terms, you search for what you want to know. In the session, the glossary was our reference from start to finish. In this article, it’s the real code behind every step, so you can follow along even if you weren’t there.

What a Rise 360 code block is made of

So let’s open the glossary’s code. Like most code blocks, it contains three languages, and each one has a clear job:

  • HTML puts the elements on the page. In a block, that’s a heading, a text, a button or a search field.
  • CSS decides how these elements look: colours, font, size, spacing and the layout on a phone. In the glossary, CSS sets the colours and the two-column layout.
  • JavaScript decides what happens when someone uses the block: a card that flips, feedback after a click or, in the glossary, the search and the filters. In the glossary, the list of terms also sits in the JavaScript.

All three usually sit in one file called index.html. The CSS is between <style> and </style>, the JavaScript between <script> and </script>. Knowing the three languages helps you read the code, but it doesn’t yet tell you which parts you can safely change. That’s what the zones are for.

Where you can make changes: three zones

A zone is a section of the code with one purpose. Most code blocks can be divided into three of them, and two are meant for you. The images below show the three zones on a simple house, with the matching code on the right. Look for the same comments in your own code.

Zone 1, look: colours, font family, font size and corners. Usually at the very top of the <style> area. Yours to change.

Zone 1 on the house is the paint. In the code, colours and fonts sit right at the top.

Zone 2, content: every text learners see, including the invisible labels for screen readers. Also yours to change.

Illustration of a house with the name sign marked as Zone 2, next to the matching content code
Zone 2 is the name sign. All visible texts are collected in one place.

Zone 3, technology: the logic that makes the block work. Leave it alone unless you know exactly what a change does.

‍

Illustration of a house with the light switch wiring marked as Zone 3, next to the matching code
Zone 3 is the wiring. Leave it to the electrician.

In the glossary, the three zones are marked as comments, so you can find them quickly among 411 lines of code. These comments don't appear automatically: I added them myself. For code you find or generate, AI can add them for you. You'll find the prompt further down. To change the glossary’s colour, you change one line: --color-accent. For the font, it’s two: --font-family and --font-size. That’s the key point of this article: once you know where to look, most changes are that small.

The same zones in the real glossary code: colours and fonts at the top, the technology below.

Four things people want to change

With the three zones in mind, let’s look at what people actually want to change. When I prepared the session, the same four things kept coming up:

  • Colours, to match the rest of the course.
  • Font and font size, to fit the design of the course.
  • Language, for courses that run in more than one language.
  • Layout on a phone, so the block also works on small screens.

Here’s where you’ll find each of them in the code.

Changing the colours

Colours sit in Zone 1, as hex codes such as #D61366. Well-built code stores each colour once as a CSS variable (--color-accent), so one change applies everywhere. Code without variables repeats the colour. In my session, the second example was a set of flashcards based on community code. There, the same pink appears twice, on the cards and on the arrow buttons. Miss one and your arrows stay pink.

For small changes like this, use the search and replace function in the Rise code editor: the magnifier icon at the top right, or Ctrl+F. Type the old hex code, check how many matches the counter shows, enter the new value and click All.

Changing the font and font size

The font is also in Zone 1. Change only the base size, and the headings scale with it. The surprise for most people: the block doesn’t use your Rise theme font. It runs in its own window (an iframe) and only sees what’s inside the block. So you set the font in the code, with fallback fonts in case it’s missing on the learner’s device.

Using the code in another language

Articulate Localization translates your Rise course, but code blocks aren’t part of it, and a manual XLIFF export doesn’t include them either. So you copy the block and translate the texts in Zone 2 yourself. Easy to forget: the aria-labels that screen readers read out and the lang attribute at the very top (lang="de" for German).

Checking the layout on a phone

Whether a block adapts to a phone depends on how the code is written. The glossary changes from two columns to one on a phone, because its CSS contains an @media rule for small screens. Code without such a rule won’t adapt. That’s why it’s worth checking every block in the phone view of the Rise preview.

The most common mistakes, and how to fix them

Once you start changing things, something will break sooner or later. That’s normal and part of learning. The cause is usually one of three things, and all three are easy to fix once you know them.

The missing comma

This one will happen to you. In Zone 2, content is often stored as a list. In the glossary, that’s the list of terms in the JavaScript, and each entry is separated from the next by a comma. When you copy an entry to add your own term, it’s easy to miss the comma behind the closing bracket. The result: the block suddenly goes almost blank.

‍

One missing comma after the new entry, and the glossary shows nothing but an empty search field.

Add the comma and everything is back. If you add your entry at the end of the list, the entry that used to be last now needs the comma. The rule: one comma between two entries.

Comma restored: the glossary is back. Look for this pattern after every closing bracket.

Curly quotes from Word

The second mistake isn’t in the code itself, but in where you edit it. Word turns straight quotes into curly ones, and code can’t read them. So never edit code in Word. Use the code editor in Rise or a plain text editor such as Notepad.

The missing completion line

The third mistake only matters if learners have to finish the block before they can move on. If you use a Continue block that requires the block above to be completed, switch on Set completion requirements in the Add code window. From then on, the block only counts as complete when your code reports it, with one line Rise gives you: window.parent.postMessage({ type: 'complete' }, '*'); That line belongs where learners are finished, for example after the result of a quiz. If the toggle is on and the line is missing, learners can’t get past Continue.

Two more tips before we move on: change one thing, then test it. And don’t worry if a block published for LMS or web doesn’t show in a local preview. It appears once it’s uploaded to your LMS or web host.

Let AI explain the code, not rewrite it

All three mistakes are easier to avoid when you can see what each part of the code does. In the glossary, that’s easy, because the zones are already marked. Code from the community often has no comments at all, like the flashcards in my session. This is where AI helps, if your company allows you to use it. Don’t ask the chatbot to improve or rebuild the code. Ask it to mark the zones instead. Here’s the prompt I use. I’ve tested it, and it works:

I'm working with a code block in Articulate Rise. I can't code. Add comments in English to the following code. They should show me:

ZONE 1 · LOOK: where I can change colours, font family, font sizes and spacing.

ZONE 2 · CONTENT: where the visible texts are, including aria-labels for screen readers.

ZONE 3 · TECHNOLOGY: which areas I'd better not change. In the comments, explain in simple words what the most important values mean (e.g. "background = background colour"). Important: Don't change anything in the code itself. Only add comments. Give me back the complete code. [Paste code here]

Small changes you then do yourself with search and replace. For bigger ones, such as layout or new interactions, give the AI one clear, narrow task. Keep the original block and test the new code in a second block first. More on AI in Articulate 360 AI integrations: what they do and how to use them.

When a code block is the wrong choice

AI makes it much easier to adapt code blocks, so it’s tempting to use them everywhere. I would be careful here. A code block should be the highlight of a Rise course, while the standard blocks do most of the work. No Rise course will consist of code blocks only: building and maintaining them takes a lot of time, and every change means opening the code again.

The same applies to courses that go into many languages: every language version of a code block is translated and maintained by hand.

And if you’re planning a large course that needs a lot of interactivity, build it in Storyline instead. Our guide Rise vs. Storyline: how to pick the right tool for your course helps with that decision.

Also note that the code block needs a standard Articulate 360 AI subscription. It isn’t part of Frontline.

So the next time you open a code block and see hundreds of lines, don’t close the editor. Find the zones, change one thing and test it. Everything else in the code can stay as it is.

Want to get more out of Rise and Articulate 360 AI? Join our Articulate 360 AI training. And if a block behaves differently once it’s in your LMS, TicTac Support helps you find out why.

FAQs: Customise the Rise 360 code block

What is the difference between the Rise code block and the code snippet block?

The code snippet block only displays code, as plain text in a box with a copy button, so learners can read it and copy it into their own project. It doesn’t run anything. The code block runs your HTML, CSS and JavaScript and turns it into a working element in the course, such as a glossary, flashcards or a quiz. If you only want to show code, use the code snippet block.

Can Articulate Localization translate code blocks?

Articulate Localization translates your Rise course. Code blocks are the one part you handle yourself: they aren’t included in Localization or in a manual XLIFF export. Copy the block for each language, translate the visible texts and the aria-labels for screen readers, and set the lang attribute at the top to the new language. It’s worth planning this step in whenever you schedule a translation.

Can the code block replace Storyline?

No. A code block is a way to make a Rise course stand out with single highlights, such as a searchable glossary, flashcards or a short quiz. No Rise course should consist of code blocks only, because building and maintaining them takes a lot of time. If you’re planning a large course that needs a lot of interactivity, Storyline is the better choice.

Want to talk more about this?

Get in touch with me.

Want to read more on similar topics?

5 Articulate Rise features you’re probably not using to their full potential

‍