[Plugin: TF FAQ] Code patch for enabling the usage of lists inside the answers.
-
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.
- The topic ‘[Plugin: TF FAQ] Code patch for enabling the usage of lists inside the answers.’ is closed to new replies.