WordPress.org

Ready to get started?Download WordPress

Forums

TF FAQ
Code patch for enabling the usage of lists inside the answers. (1 post)

  1. Crantea
    Member
    Posted 2 years ago #

    The plug-in wraps the answer in between paragraph tags (<p>).

    When using lists (ul / ol), the show / hider stops functioning correctly.

    The fix for this is easy:

    Inside the "tf-faq.php" in the plug-ins root, simply change <p class="tffaq-answer .... </p> to <div class ... </div>.

    The specific lines are the following (line #62 in plug-in version 0.1.2)

    $new_content .= '<p class="tffaq-answer sticky" id="tffaq-answer-'.$question->id.'" style="display: none;"> '.$question->answer.' </p>';

    $new_content .= '<div class="tffaq-answer sticky" id="tffaq-answer-'.$question->id.'" style="display: none;"> '.$question->answer.' </div>';

    Hope this will find it's way into the plug-in's code.

    http://wordpress.org/extend/plugins/tf-faq/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic