Plugin Author
WPJoli
(@wpjoli)
Hi Bryan,
I double checked about the first question issue and you’re right, it’s not working as expected right now. I know what’s wrong though (because of something changed in the latest update) and it will require a little fix. Sorry about that, I will be releasing an update soon.
The group name is output “raw” by default. It can be further customized by using the following filter:
Add this to your theme’s functions.php:
add_filter('joli_faq_seo_faq_group_name', function($title){
return '<h2>' . $title . '</h2>';
});
Thank you for the nice remark 🙂
Cheers!
Thanks for the great answer @wpjoli
The function you provided works well and I look forward to the update.
Have a great day!
Cheers.
Just for those reading this who can’t access their functions.php (or don’t want to), I found that because this heading is in raw output, you can easily change how it looks by adding the heading tags to the FAQ Group name from within the plugin.
Simply go to “FAQ Editor” and click the edit pencil next to the name of the group, then add <h2> at the beginning of the heading and </h2> at the end.
To vary the size, change the number from 2 to 3 or whatever heading size suits you best.
Hope this helps. 🙂
Hello again,
Just a gentle reminder to fix this, as it still has the same issue. 🙂
Cheers,
Bryan
By the way, do you have any CSS code that will make all questions open by default, not just the first question?
Thanks again.
Plugin Author
WPJoli
(@wpjoli)
Hi,
Sorry for the delay, I will be taking care of that bug asap.
By the way, do you have any CSS code that will make all questions open by default, not just the first question?
I could give you a tweak but it may not be optimal as the FAQs display is handled with js using the actual height of each answer dynamically for smooth transitions.
You would need to do something like this:
.jfaq-wrap div[class*="--jfaq-theme-"] .jfaq--answer {
opacity: 1 !important;
overflow: auto !important;
max-height: inherit !important;
}
However keep in mind the toggles will continue working but will achieve nothing.
There is a “Flat layout” option in the Pro version that outputs all the FAQs as plain content, without toggles or anything fancy whatsoever.
Hope this helped,
Cheers!