Articles:
- How to delete a course
- Copyright protection of your content on Kwiga
- Public or trial lesson
- How to change the status of a lesson to draft and hide it from students
- Usage of checkpoints
- How to add an assignment to a lesson
- How to create a task with mandatory review by an assistant
- How to create a task for different offers
- How to create a test with scores and automatic approval
- How to create and conduct a quiz among students on the course
- Downloading video files
- Contents of the lesson, all types of activities in the lesson
- How to add time codes to the video
- How to add button to the lesson
- Inserting iframe code
- Adding fractions, mathematical functions, formulas
- How to add text with spoiler to the lesson
- How to create a course on the Kwiga platform
- How to create a marathon
- How to add a cover to a course
- Course Program Display Options
- How to add a public face to a course
- How to add a team to a course
- Course preview with different access levels
- Block above the lessons (top banner)
- Setting delays, schedule for opening and closing lessons (dripping content)
- Report on student progress on the course
- Analytics of assignments completion on the course
- Course sales report
- How to create a copy of the course
- How to copy lesson content
- Assistant’s Access to Practical Assignments
We will explain how to add a button to a lesson, marathon, course page, or module description.
In this article:
On Kwiga, you can add a button in two ways:
-
Quick method – allows you to set the button’s color and text.
-
Using code – lets you edit any parameters such as border radius, size, outline color, height, and more.
Quick Addition
Open the lesson where you want to add a button and insert a “Text, Image, Code Embedding” element. Click on the area where you want to place the button and select +Button from the text editor toolbar.
In the menu that opens, you can add a link, set the button name, and customize the button and text color. Click Submit, and the button will be added to your lesson!
Adding a Button via Code
You can add a button to a course lesson or marathon using HTML code. We’ll show you how to do this below.
Open the lesson where you want to add a button and insert the “Text, Image, Code Embedding” element.
Then open the code editor (if you don't see the text editing toolbar — click in the white area to activate the text input field):
The code editor will open (a black area on the screen), and at the top of the menu, you’ll see buttons for adding ready-made code templates. To create a button, select Button:
You will see the code on the page, and above it, you will see your button.
You can also customize the font size on the button, padding, the button’s width, and adjust the border radius.
You can set the button color using RGB or HEX code, a converter, or a color picker tool.
Placing multiple buttons in a row
To create multiple buttons that are placed next to each other, additional code is required. Below is the code for three buttons with the text "Base", "Comfort", and "Pro" in three different colors. You can edit the corresponding parts of the code, changing the text, color, button format, and also remember to add the link.
<!-- Example Button -->
<div id="buttons-container">
<a id="my-button" href="/"> Base </a>
<a id="my-button" href="/"> Comfort </a>
<a id="my-button" href="/"> Pro </a>
</div>
<style>
#buttons-container {
display: flex;
grid-gap: 20px;
justify-content: center;
}
@media(max-width: 640px) {
#buttons-container {
flex-direction: column;
}
}
#my-button {
display: flex;
margin: 0 auto;
width: 100%;
padding: 13px 20px;
border-radius: 20px;
color: rgb(255, 255, 255);
background: orange;
justify-content: center;
&:first-child {
background: green;
}
&:last-child {
background: purple;
}
}
</style>
The yellow-highlighted areas indicate where the button color is specified.
Didn't find the answer? Contact the support service via online chat or Telegram