Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Replacing Category title with own image (http://forum.bytesforall.com/showthread.php?t=1816)

mcbanks May 28, 2009 04:11 AM

Replacing Category title with own image
 
I have been unsuccessfully trying to replace the standard 'Categories' title with an image. Has anyone done this and if so how?

mrsmommy Aug 12, 2009 11:12 PM

1 Attachment(s)
Trying to bring this thread back to life (since I can't find any other threads about this)...

See attached picture of what I'm trying to do on my category pages.

Thanks for any help!

Flynn Aug 13, 2009 03:07 PM

You can put this into Style & edit CENTER COLUMN -> Content ABOVE the LOOP
PHP Code:

<?php if ( is_category() ) { ?>
<img src="/path/to/images/<?php echo $wp_query->get_queried_object_id(); ?>.gif" alt="" />
<?php ?>

And in /path/to/images/ upload a [ID-of-category].gif for each category, i.e. 12.gif, 17.gif, 21.gif


All times are GMT -6. The time now is 11:24 AM.

Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.