Jump to content
Sign in to follow this  
stephwise

Modify Category Page

Recommended Posts

stephwise

Category pages are making me crazy! I am trying to modify the text the category pages. My ultimate goal is to have a particular logo at the top of each category page, but after extensive research I have discovered that this is not as easy as it sounds. I have I have added this hook to my functions.php: add_action('pagelines_inside_top_theloop','cat_title'); function cat_title(){?> <?php if (is_category()):?> <?php echo single_cat_title(); ?> <?php endif;?> <?php } Is there any way I can either modify the hook or css to style the text? Or even better can I have it call a specific image based on the category?

Share this post


Link to post
Share on other sites
stephwise
I'm not sure why it inserted the emoticon. Here is the hook again: add_action('pagelines_inside_top_theloop','cat_title'); function cat_title(){?>

Share this post


Link to post
Share on other sites
Simon
Just wrap it in a class, btw use the code button ;) Also you are being over generous with open and close php tags, if its all php why are you closing it on every line? [code]function cat_title(){ if (is_category()) echo sprintf( '

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×