leochan369
Member
Posted 3 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
micromit
Member
Posted 3 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
leochan369
Member
Posted 3 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
micromit
Member
Posted 3 years ago #
You need to put image like this Please visit below link
and replay me
micromit
Member
Posted 3 years ago #
leochan369
Member
Posted 3 years ago #
micromit
Member
Posted 3 years ago #
if your interface control Panel is WP
Here is the solution
http://www.micromit.net/My-Uploads/naz1.gif
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');
leochan369
Member
Posted 3 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!
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
Sidders
Member
Posted 2 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');
}