How do I remove the category title from my blog?
-
Hi guys,
I don’t know how to remove the category title in my blog – could you please help?
Here’s the blog: https://cometoydc.com/category/podcasts/
You can see the category title is: All posts in Podcasts
I’ve checked out other help posts on here re. this, but the solutions I’ve tried keep stuffing up my blog. I’m probably just implementing them wrong. Here’s one I found: https://www.ads-software.com/support/topic/how-to-remove-category-title-1
In archive.php, I have the following:
<div class="navigation page-navigation"> <div class="nav-next"><?php next_posts_link(__('← Older Entries', 'zilla')) ?></div> <div class="nav-previous"><?php previous_posts_link(__('Newer Entries →', 'zilla')) ?></div> <!--END .navigation .page-navigation --> </div> <?php else : if ( is_category() ) { // If this is a category archive printf( __('<h2>Sorry, but there aren\'t any posts in the %s category yet.</h2>', 'zilla'), single_cat_title('',false)); } else if ( is_date() ) { // If this is a date archive echo(__('<h2>Sorry, but there aren\'t any posts with this date.</h2>', 'zilla')); } else if ( is_author() ) { // If this is a category archive $userdata = get_userdatabylogin(get_query_var('author_name')); printf(__('<h2>Sorry, but there aren\'t any posts by %s yet.</h2>', 'zilla'), $userdata->display_name); } else { echo(__('<h2>No posts found.</h2>', 'zilla')); } endif; ?> <!--END #primary .hfeed--> </div>
Is the correct code to remove in there?
Any help would be great!
Thanks,
A.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How do I remove the category title from my blog?’ is closed to new replies.