[Plugin: FAQ You] Hacks and CSS updates
-
Hi,
I have just started using this plugin and it rocks!! But like soo many have pointed out, there are a couple of styling elements that need adjusting to make it “look” and “function” better.Now I am no pro and anything WP orientated. These are just the changes that I made to suit me.
//Allow some html in the question or answer in the admin panel.
change line 27 of faq.php to become:
$new_content = $content;
I removed the strip_tags() function allowing html to be passed into the variable. (Thanks to @phrequency for that one)I have only been able to get basic html to work.
//Style the questions and the answers
Added the following to my theme css.
Questions
p.faq-question { font-size: 16px; padding: 5px 5px 5px 5px; margin: 0 0 10px 0; background-color:#F2F2F2;}
Answers
p.faq-answer { font-size: 13px; line-height: 16px; padding: 10px 10px 10px 10px; margin: 0 0 10px 0; background-color:#F2F2F2;}
//Box height in admin panel
Questions
In line 833, you can change the height (style=”height: 400px;”) of the textarea that you enter the faq answer into on the admin screen:<textarea id="excerpt" name="faq_question"style="height: 50px;"><?php echo $edit_question->question?></textarea>
Answers
In line 847, you can change the height (style=”height: 400px;”) of the textarea that you enter the faq answer into on the admin screen:<textarea id="content" name="faq_answer" style="height: 400px;"><?php echo $edit_question->answer?></textarea>
These are just my changes. Would be interested if anybody else has made similar ones.
- The topic ‘[Plugin: FAQ You] Hacks and CSS updates’ is closed to new replies.