Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Excerpts, Read more, Pagination (http://forum.bytesforall.com/forumdisplay.php?f=20)
-   -   Category title on category page, not on each post excerpt kicker (http://forum.bytesforall.com/showthread.php?t=1634)

paulae May 12, 2009 10:32 AM

Category title on category page, not on each post excerpt kicker
 
http://www.larchmontgazette.com/?cat=5

I want the words Career Doctor to appear as a title for the whole page here, and not have to have it appear at the top of each excerpt in this category. I can't figure out how to do this using the theme options.

I'd also like the category titles like this to be bolded or otherwise more like titles.

Flynn May 13, 2009 06:33 PM

You could put this into index.php right after <?php get_header(); ?>

PHP Code:

<?php if ( is_category() ) { ?><h3><?php single_cat_title(''); ?></h3><?php ?>


janey73 Jun 19, 2009 02:16 PM

I get a syntax error when I copy and paste this line into the designated place in the code. Please advise.

juggledad Jun 20, 2009 09:39 AM

There is a missing '{' in the code, use this instead
HTML Code:

<?php if ( is_category() ) { ?><h3><?php single_cat_title(''); ?></h3><?php } ?>

janey73 Jun 22, 2009 11:33 AM

Excellent! Thank you so much! That did it.


All times are GMT -6. The time now is 11:58 PM.

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