Normally, it should be in the archive.php template file of your theme.
(see also: Template_Hierarchy)
Thread Starter
j0rdan
(@j0rdan)
The archive.php is just bland. I studied the Hierarchy. Could you at least point me in the right direction for what I should focus on? Here is the archive.php.
<?php get_header(); ?>
<div class="content">
<?php include (TEMPLATEPATH . '/leftsidebar.php'); ?>
<div id="primary">
<div id="current-content">
<?php include (TEMPLATEPATH . '/rollingarchive.php'); ?>
</div> <!-- #current-content -->
<div id="dynamic-content"></div>
</div> <!-- #primary -->
<?php get_sidebar(); ?>
</div> <!-- .content -->
<?php get_footer(); ?>
SO I need to change something in there?
Well, I said “normally” – and K2 is not a normal theme. They have their own support and you might have better chances there because most of us are not familiar with that development.
http://getk2.com/
http://getk2.com/forum/
Thread Starter
j0rdan
(@j0rdan)
Yea I was there. I could find anything related to my problem. You’re good with this stuff, Do you have any idea from just looking at the site what I could do?
You will have to do a search in all the template files to find those lines. I have never installed K2, so I have no idea how it works. And I have no intention to learn it. Sorry.
Thread Starter
j0rdan
(@j0rdan)
Ok, no biggy. Thanks anyways.
Thread Starter
j0rdan
(@j0rdan)
Alright moshu. I found it! I just need help w/ one little thing that maybe you would know. The link to the page is here–http://www.resourcetolife.com/?cat=1
here is the code
<?php /* Headlines for archives */ if ((!is_single() and !is_home()) or is_paged()) { ?>
<h2>
<?php // Figure out what kind of page is being shown
if (is_category()) {
if ($cat != $k2asidescategory) {
printf(__, single_cat_title('', false));
} else {
echo single_cat_title();
}
The line printf(__, single_cat_title(”, false)); is where I think I need to be focusing because I got rid of that stupid saying “Archive for “BLog Home” Category”. blah
But!!!! There is a line on the page right above a post. It is from the printf(__ part of the code. But, when I remove the line there is a syntax error. How can I remove the line without getting an error?
Thanks!
Thread Starter
j0rdan
(@j0rdan)
Thread Starter
j0rdan
(@j0rdan)
Ok, I got it to show the actual Category’s name. Not “Archive for “bla” Category”. I used
printf(single_cat_title('', false));
How can I make it so that there is no title from the category showing? I simply want my blog post to be the title. Ya know? PLEASE! So close yet so far.
Thank you
Remove that whole stuff…
if (is_category()) {
if ($cat != $k2asidescategory) {
printf(__, single_cat_title('', false));
} else {
echo single_cat_title();
}
Thread Starter
j0rdan
(@j0rdan)
I removed it and the page went into a syntax error. Is there something else I should take out?
Then you removed something else, too.
Paste the whole file to http://wordpress.pastebin.com and post back the url.
Thread Starter
j0rdan
(@j0rdan)
Here is the original file. The lines we have been working with are towards the top. Of coarse that is me assuming that’s where I need to be looking.
http://wordpress.pastebin.com/d7f5070f8
http://wordpress.pastebin.com/m1d4fb1a9
this should remove ALL the archive page titles: not only for categories but for months and everything. Is that what you want?
Thread Starter
j0rdan
(@j0rdan)
Actually yeah. I think I like not having that goofy header for everything. Thank you so much for your help!