How to Build a Scalable Showit FAQ (with a Simple Code Snippet)

Enjoying these free resources?

Your support helps keep this site running and growing!

If you’re building a website on Showit, you know how important a well-organized FAQ section can be for your visitors. But as your list of questions grows, managing a Showit FAQ can quickly become time-consuming—especially if you want to keep things easy to update and error-free. In this post, I’ll show you a streamlined way to create a dynamic, expandable Showit FAQ using a single code snippet, so you can add as many questions as you want, whenever you want.


Why a Scalable FAQ Matters

A typical Showit FAQ might start with just a few questions, but as your business grows, so does your list. Manually setting up expand/collapse actions for each question and answer pair is not only tedious, but it also increases the risk of mistakes. Plus, if you want to add more questions later, you’d have to repeat the process all over again.


The Solution: One Showit Code Snippet for All Your FAQ Needs

The good news? You can automate your Showit FAQ with a single, reusable code snippet. Here’s how:

  • Consistent Naming: Name your question canvases as Question-1, Question-2, etc., and your answer canvases as Answer-1, Answer-2, etc.
  • Easy Duplication: When you duplicate these canvases in Showit, the numbering updates automatically.
  • Hidden Answers: Set your answer canvases to “Hidden to start” on desktop and mobile so they only appear when toggled.

The Showit Code Snippet

To make your Showit FAQ expandable and easy to manage, just add this code snippet to your site’s custom head HTML:

<script src="https://cdn.jsdelivr.net/gh/Pratik-Khaling/doitwithshowit@main/showit_faq.js"></script><style>  

What does this Showit code snippet do?

It automatically links each question to its corresponding answer based on the numbering in your canvas names. When a visitor clicks a question, the answer smoothly expands or collapses, and the icon rotates for a clear visual cue.


Where to Add the Code in Showit

If you are using a canvas set:
Go to Site settings → Integration → Custom Code → Add custom HTML to the head of your page.

If you are not using a canvas set:
Use the Advanced settings → Custom Head HTML box in the right-hand pane.


How to Set Up Your Showit FAQ

  1. Create your first question and answer canvases:
    Name them Question-1 and Answer-1.
  2. Duplicate as needed:
    Showit will automatically increment the numbers (e.g., Question-2, Answer-2).
  3. Hide answers by default:
    Set your answer canvases to “Hidden to start”.
  4. Add an icon:
    Add a ► icon to your question canvas and rotate it 90° to look like ▼. The code will rotate it further when expanded.

Adding More Questions to Your Showit FAQ

Whenever you need to add more questions, just duplicate the last pair and update the content. As long as you keep the numbering sequential, the Showit code snippet will handle everything else.


What to Tell Your Client

Let your client know they can add as many questions as they want—just keep the numbering in order. No extra setup required!


Bonus: Ready-to-Use Showit FAQ Example

Want to see this in action or import it directly into your own Showit site? Here is a sharekey for you:

PbwXgkY6zjNb304568

Just use this sharekey in Showit to import a fully working FAQ section, complete with the code snippet and all the setup done for you.


In Summary

With this approach, you can build a robust, scalable Showit FAQ section that’s easy to maintain and expand. The single Showit code snippet keeps your workflow simple and your site error-free, no matter how many questions you add. If you have any questions or want to see more Showit code snippets in action, let me know!

Enjoying these free resources?

Your support helps keep this site running and growing!

5 1 vote
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

YOU MAY ALSO LIKE

Text Reveal Animation | Showit Code Snippet

A text reveal animation is a stylish and sophisticated way to elevate the visual appeal of your website. By incorporating this dynamic effect, you can create an engaging experience that captures your visitors' attention and leaves a lasting impression. With the help...

Custom Scroll-Triggered Advanced Animations | Showit Code Snippet

If you're a Showit user looking to add some extra flair to your website, scroll-triggered animations are a fantastic way to engage your visitors. While Showit is known for its drag-and-drop simplicity, adding custom animations often requires a bit of custom code. In...

Hover to Expand Image Effect in 2 Simple Steps | Showit Code Snippet

Recently, Showit introduced an exciting update that allows users to add custom class names to elements. This opens up endless customizations and styling possibilities. Hover to expand image is a subtle yet effective animation that can enhance the visual appeal of your...