The code editor (also known as custom code editor), available only on the Kajabi Pro plan, lets you view and edit the Liquid template files behind your pages. Kajabi template code is written in Liquid. With code editor access, Modify code appears in the more options (...) menu for your pages and templates. You can also open a Website Page's file directly from the page list this way.
Notes:
All Kajabi plans allow you to add custom code to your sites. The code editor is an advanced feature that allows more customization than Kajabi's standard custom code features.
If you update your template, changes you made in the code editor are overwritten. Customizations made in the theme builder are preserved. Learn how to update a template.
Open the code editor for a website template
To edit the code for your Standard Website Pages:
From the Dashboard, open the Website tab.
Under Design, locate the template you want to edit.
Click the down arrow on your live template, or open the more options (...) menu on a saved template.
Select Modify code.
Open the code editor for a Course template
From the Dashboard, open the Products tab, then Courses.
Select the Course you want to edit.
Click Customize.
Locate your Course template.
Open its more options (...) menu.
Select Modify code.
Show every lesson in a Course syllabus
By default, the syllabus only lists the first 10 lessons per module before showing a Show More link. If you want to display every lesson instead, edit product_syllabus.liquid in the Snippets folder.
Note: This only applies if the syllabus section's Syllabus Type setting is Posts. On the default Categories setting, the syllabus lists modules only — there's no lesson limit to edit.
Find the lesson loop and change the limit to show every lesson in a module:
{% for post in category.posts limit:10 %}Update the Show More link so it matches. If you changed the limit to a custom number, use that same number here. If you removed the limit entirely, delete this whole
{% if %}block — otherwise the link will show or hide at the wrong point:{% if category.posts.size >= 10 %}If you also want to change how many modules appear per page (not lessons), edit this separately:
{% paginate product.categories by 10 %}
Warning: Kajabi's own theme settings warn that removing the lesson limit can cause a Liquid error on products with a large number of lessons. Preview the page before saving if your Course has a lot of content.
Open the code editor for an Upsell page
From the Dashboard, click the Sales tab, then Pricing.
Click the Upsells tab.
Click the Upsell you want to edit.
Open the more options (...) menu next to Customize.
Select Edit code.
Open the code editor for a Landing Page template
From the Dashboard, open Website.
Click Landing Pages.
Locate the page you want to edit.
Open its more options (...) menu.
Select Modify code.
Note: Modify code is unavailable while a Landing Page has an A/B test in progress.
Edit template code
Refer to Kajabi's template documentation for an overview of each template directory.
Open the code editor for your template, using the steps above.
Select a directory.
Select a file.
Modify your code.
Click Save.
Optional: Click Preview.
Note: Kajabi Support can't help create or modify custom code. If you're new to editing code, consider hiring a professional.




