WordPress.org

Ready to get started?Download WordPress

Forums

Q and A FAQ and Knowledge Base for WordPress
[resolved] [Plugin: Q and A] Ad title of categories (7 posts)

  1. gouffy41
    Member
    Posted 3 years ago #

    Hi,

    Thanks for this nice plugin.

    How to ad the categories titles on the front end?

    Thanks

    http://wordpress.org/extend/plugins/q-and-a/

  2. Dalton
    Member
    Plugin Author

    Posted 3 years ago #

    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

  3. Dalton
    Member
    Plugin Author

    Posted 3 years ago #

    Just wanted to update this post to let you know that category titles are now automatically added when you insert a FAQ!

    Cheers,
    Dalton

  4. joesmosax
    Member
    Posted 3 years ago #

    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

  5. Dalton
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  6. joesmosax
    Member
    Posted 3 years ago #

    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

  7. joesmosax
    Member
    Posted 3 years ago #

    Forgot to close the H2 tag, this worked great:

    if (!empty($cat)) {$qa_shortcode .= '<h2 class="faq-catname">'.$catname.'</p>';}

    Thanks,

    Joe

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags