• Resolved mrretail

    (@mrretail)


    Hi there,
    When I set the first question to be open by default, it doesn’t actually open. The dropdown arrow next to the question changes to the open version but the answer remains closed.

    Also, if I choose to show the group name, it shows it in plain paragraph text, whereas it should be a heading, e.g. H2, otherwise what is the point of showing it to the public? Perhaps add the same option you provide for the questions tag, where you can select the heading size, including paragraph if preferred.

    Otherwise, looks like a great plugin!

    Thank you, Bryan

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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!

    Thread Starter mrretail

    (@mrretail)

    Thanks for the great answer @wpjoli
    The function you provided works well and I look forward to the update.

    Have a great day!
    Cheers.

    Thread Starter mrretail

    (@mrretail)

    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. ??

    Thread Starter mrretail

    (@mrretail)

    Hello again,
    Just a gentle reminder to fix this, as it still has the same issue. ??

    Cheers,
    Bryan

    Thread Starter mrretail

    (@mrretail)

    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!

    Thread Starter mrretail

    (@mrretail)

    Thank you!

    Works well. Great job.

    All the best, Bryan

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘First question does not open by default’ is closed to new replies.