Skip to main content
Best Answer

Creating an FAQ Page via HTML & CSS (accordion)


Did this post help you find an answer to your question?
Show first post

39 replies

gstager
Hero III
Forum|alt.badge.img+7
  • Hero III
  • 891 replies
  • February 16, 2024
keiden wrote:

This is such great information! I am not very familiar with html/css so appreciate people willing to share! I’m being asked if I can add links in the answers, as well as images. I’m pretty sure links are possible, but what if we wanted a picture/screenshot. Is that even doable?

Sure - you can add pics to the answer portion of the accordion.

You may wish to determine a maximum size or force your images to a certain size with your CSS so that things do not become obnoxious.

You will need to add some CSS for the image so that it can properly appear and tuck away as you click the accordion.

Here is a screenshot of my sample that I put together. It has no connection to the text - it was just a small graphic I had available for the using.

 

 


  • Novice I
  • 4 replies
  • February 19, 2024

@gstager Thank you! So, I’d have to host the image somewhere to get a link and then paste that into the code? I’m just trying to put together options/samples for my manager to look at. I appreciate your help!


gstager
Hero III
Forum|alt.badge.img+7
  • Hero III
  • 891 replies
  • February 19, 2024

@keiden - yes, you’ll need to have public access to the file.

The link will go in the HTML similar to below…

<h2>What does NTEP stand for?</h2>
<img src="path/to/image.png">
<p>NTEP stands for National Type Evaluation Program.<br>

Again, you’ll likely want to style things or limit sizes so you don’t have a strangely expanding and contracting accordion.


  • Novice I
  • 4 replies
  • February 19, 2024

@gstager I appreciate you!


dwilburn
Guide III
Forum|alt.badge.img+3
  • Guide III
  • 307 replies
  • April 9, 2024

Hi, are these widgets or whole pages? I have been looking for a way to add a HTML or PDF page to a menu for our instructors. I do not have hosting servers to feed the iFrame or other solutions. And the HTML in the widget is so restrictive.

I don’t understand fundamentally how you are doing these pages.


gstager
Hero III
Forum|alt.badge.img+7
  • Hero III
  • 891 replies
  • April 9, 2024

@dwilburn -

I am working with a widget and you can choose any size of widget.

There are two main pieces to this.

The CSS and the HTML

This is code content that gets placed in two different areas.

The CSS is placed in your Branding and Look area found in the admin menu at the bottom of the left side menu.

The HTML is placed in your widget. ID names and classes for both must correspond with each other for them to work.

There are a number of entries for the accordion. Have a look at this post where I talk about my contribution to this topic.

Hope it helps.


dwilburn
Guide III
Forum|alt.badge.img+3
  • Guide III
  • 307 replies
  • April 9, 2024

Thanks 


gstager
Hero III
Forum|alt.badge.img+7
  • Hero III
  • 891 replies
  • April 9, 2024

As I read back - I realize I was really answering in context of the original thread.

If you want to make a PDF available for your folks - this is more a challenge on a page if you do not have external storage for files that you can link to.

I might offer the idea of making a special “course” just for those individuals and making use of the file repository to upload your PDFs as opposed to just using a page.


dwilburn
Guide III
Forum|alt.badge.img+3
  • Guide III
  • 307 replies
  • April 9, 2024

I am not attempting the accordion at this time. All I was trying to do was make an instructor guide that we have developed for the instructors.

After the TripAdvisor demo the other week, I thought I would just add one page with HTML to the menu, but it turns out you cannot do that without an external link / storage.

I have made little HTML faqs, but for this solution I am trying to take a multipage word doc, replicate it in HTML. Then add the page with one big widget to the menu.

But the limitations of the HTML in the widget are a pain. Never know what I can get away with unless I just toss it in there and try it.


gstager
Hero III
Forum|alt.badge.img+7
  • Hero III
  • 891 replies
  • April 9, 2024
dwilburn wrote:

… the limitations of the HTML in the widget are a pain.

Well, I won’t disagree with that.

Have you tried just using the WYSIWYG side of the widget?

No - you won’t get the high-level formatting abilities but you should be able to get your point across.


dwilburn
Guide III
Forum|alt.badge.img+3
  • Guide III
  • 307 replies
  • April 9, 2024

@gstager - that is fair. I have a tendency to try to find solutions manipulating the original content from word, but to your point, that can make you crazy.

I will backup up and try the simpler solution. Thanks


  • Novice III
  • 15 replies
  • June 28, 2024

Hi,

Do we know if this is possible for training material HTML pages? The accordion.

 

I have been trying but it doesnt seem to work 


Hello, I am having an issue similar to someone above, and I can’t seem to correct it. Please, can someone help?

My accordion looks like this: 

I took the code from here:  Take Platform Design to the Next Level


Olivia Devonshire wrote:

Hello, I am having an issue similar to someone above, and I can’t seem to correct it. Please, can someone help?

My accordion looks like this: 

I took the code from here:  Take Platform Design to the Next Level

I have managed to fix this issue on desktop by making sure the CSS is in the 7.0 custom CSS on the branding look and feel. However, it is not working on the mobile app. And just shows all the answers to the accordion but not the questions. Does anyone have a workaround for this, or know what I’m doing wrong? Many thanks!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings