Community Forums › Forums › Archived Forums › Design Tips and Tricks › template file name to display category archives
- This topic has 9 replies, 2 voices, and was last updated 11 years, 2 months ago by Brad Dalton.
-
AuthorPosts
-
March 8, 2013 at 2:16 pm #25039vdesjardinsMember
Hello,
I'd like to know which template file is used to display the category archives, i.e. to show the list of posts from a category when clicked on the category name?
Please, I need the exact name of that template file 🙂
Thanks
March 8, 2013 at 4:35 pm #25058Brad DaltonParticipantMarch 8, 2013 at 6:41 pm #25093vdesjardinsMemberHello,
Sure I can:
http://www.ledeveloppementpersonnel.net
In the meantime, I understood how I could display excerpts instead of the entire post, but I still can't find out where the category file template is located.
March 8, 2013 at 6:58 pm #25102Brad DaltonParticipantThe code for category archives is in 2 files in the Genesis core:
archive.php and page_archive.php
What exactly do you need to do?
March 9, 2013 at 2:28 pm #25213vdesjardinsMemberHello Brad and thank you for your answer.
I don't have any archive.php in the genesis folder, only page_archive.php.
What I'd like to do is when I click on the category link, instead of displaying either the post experts, or the entire posts, I'd like to display only the post titles.
I went to genesis theme settings in the admin, and I chose to have only the excerpts displayed, not the entire post. But that's not what I want.
I had a look at the page_archive.php and I don't see anything related to post excerpt, so I don't know what I should do to only display the titles.
And something else is bothering me: I guess I shouldn't change the code of the genesis theme, I think it would be better to make the changes on the child theme, but there's no page.php nor page_archive.php.
Could you please tell me what to do ? It would be very kind...
March 9, 2013 at 11:42 pm #25262Brad DaltonParticipantMarch 10, 2013 at 3:19 pm #25340vdesjardinsMemberHello Brad,
I carefully read the tutorial, but there are still things that aren' clear...
First of all, I downloaded the archives.php file from Brian Gardner's site, and if I understand well, it's a template file, right ?
So I should upload this file in my child them folder, is that correct ?
And then, I should create a page, based on that template ?
But that's not really what I want: because in this case, I would have to create a page for each catagory of y blog... and add these pages to my menu. That's not very practical.
Is it the only way to do that ? Isn't there a way to change the way category pages are displayed ?
When I go to the genesis theme settings, I only have 2 choices: display the entire post, or display a post excerpt. But that's not what I want...
I don't know if what I say is very clear... You know, I'm french, and my english is a little poor... Please tell me if it's not clear. And once again, thanks for helping me.
March 10, 2013 at 9:35 pm #25413Brad DaltonParticipantIf you only want to display the post titles, use the Genesis > Theme Settings > Content Archives and set the content limit to 1
March 11, 2013 at 5:58 am #25442vdesjardinsMemberI see... thank you Brad.
Actually it displays the post titles, but also the date of the post, the print button (that I had added in my posts to let the user print more easily), the [...] and the comment link...
The [...] is ok, it's an invitation for the user to click to read the post, but I don't really like the comment link, nor the date of the post.
Let me show you how it's displayed:
http://screencast.com/t/EEo2ogooOzB
and i'd like something like that:
http://screencast.com/t/Bn29HefujXe
(with links instead of only post titles, you see?)
Do you think it's possible ? I thought I could write some code in a file somewhere, and it could work, but what I have in mind seems to be rather complicated to do ? What do you think Brad ?
March 11, 2013 at 8:16 pm #25558Brad DaltonParticipantYes you can hide all of that using CSS code or remove it using PHP code.
Try installing the Genesis Simple Edits plugin and removing the shortcodes for post meta and post info.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.