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. |
You could put this into index.php right after <?php get_header(); ?>
PHP Code:
|
I get a syntax error when I copy and paste this line into the designated place in the code. Please advise.
|
There is a missing '{' in the code, use this instead
HTML Code:
<?php if ( is_category() ) { ?><h3><?php single_cat_title(''); ?></h3><?php } ?> |
Excellent! Thank you so much! That did it.
|
All times are GMT -6. The time now is 10:40 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.