WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add thumbnail image to Category description (11 posts)

  1. leochan369
    Member
    Posted 5 years ago #

    I am trying to add a logo onto a category page which shows category descriptions. See example here:

    http://www.scrubs.co.nz/blogs/category/nzma-vital-signs/

    However the category description field does not allow me to enter html code. Is there any code that I can add in the theme page?

    Thanks

  2. micromit
    Member
    Posted 5 years ago #

    Hi

    Where do you want to add? on your side bar or your posting page ?
    just update your default code & send me the scree shot where do u want add the image exactly ...

    Thanx
    Micromit

  3. leochan369
    Member
    Posted 5 years ago #

    On the post. It would be inserted like this one:

    http://www.scrubs.co.nz/blog/index.php?id=4

    Right aligned on the category description (ie. next to "NZMA's Vital Signs email bulletin")

    Thanks heaps

  4. micromit
    Member
    Posted 5 years ago #

    You need to put image like this Please visit below link
    and replay me

  5. micromit
    Member
    Posted 5 years ago #

  6. leochan369
    Member
    Posted 5 years ago #

  7. micromit
    Member
    Posted 5 years ago #

    if your interface control Panel is WP
    Here is the solution
    http://www.micromit.net/My-Uploads/naz1.gif

  8. Justin Tadlock
    Member
    Posted 5 years ago #

    Add this PHP to your theme's functions.php file and you can input any HTML you want in the category description:

    remove_filter('pre_term_description', 'wp_filter_kses');
  9. leochan369
    Member
    Posted 5 years ago #

    Hi micromit

    The screenshot that you sent through seems like a post, not a category description.

    Hi Greenshady

    Exactly what I am looking for!

    Thank you both for your help!

  10. syncbox
    Member
    Posted 4 years ago #

    hmmm... when I do that (use a functions.php file and add the above code, I get a header already sent error in the admin when trying to update the category description in version 2.8.4

    just fyi

  11. Sidders
    Member
    Posted 4 years ago #

    For 2.84 I add this code to functions.php and it seems to do the trick;

    $filters = array('pre_term_description', 'pre_link_description', 'pre_link_notes', 'pre_user_description');
    foreach ( $filters as $filter ) {
    	remove_filter($filter, 'wp_filter_kses');
    }

Topic Closed

This topic has been closed to new replies.

About this Topic