Hi there,
This is definitely on the list of to-do items. I just pulled everything together for the first release last night. For now I would recommend that you add category titles manually before the shortcode. For example:
<strong>General</strong>
[qa cat="general"]
<strong>Technology</strong>
[qa cat="technology"]
Etc.
Hope that works for you!
Dalton
Just wanted to update this post to let you know that category titles are now automatically added when you insert a FAQ!
Cheers,
Dalton
Dalton,
Thanks for a great plugin.
How would I change the font size of the category title? ie: I’d like to make mine all <H2>
Thanks so much.
-Joe
Hi Joe,
If you want to make them H2, you’re going to have to edit the plugin file. Line 92:
if (!empty($cat)) {$qa_shortcode .= '<p class="faq-catname">'.$catname.'</p>';}
change that to:
if (!empty($cat)) {$qa_shortcode .= '<h2>'.$catname.'</h2>';}
Although if you can live without the H2 and just want to change the style, I would recommend that you just add some styles to your theme’s style.css, maybe like this:
div.entry-content p.faq-catname {font-size:15px !important;}
That way your changes will be saved even if you have to re-install the plugin.
Dalton,
Thanks. I tried that and got an error and the plugin broke. I went back and tried this:
if (!empty($cat)) {$qa_shortcode .= ‘<h2 class=”faq-catname”>’.$catname.'</p>’;}
This worked but make the regular text way smaller….
Any thoughts?
-Joe
Forgot to close the H2 tag, this worked great:
if (!empty($cat)) {$qa_shortcode .= ‘<h2 class=”faq-catname”>’.$catname.'</p>’;}
Thanks,
Joe