Support » Themes and Templates » How to change "Archive" page template?

  • Resolved Olivia

    (@hipphooray88)


    Hello,

    I would like my Archive page to show ONLY
    the titles of the post’s, beginning paragraph, and a [Read more . . ] link to the full page.

    Currently it is showing full articles on the Archive page.

    http://olivetjournal.com/2013/06

    I am a newbie. I have searched for help articles but I don’t understand them. How can I find Archive page on my editor? It is not listed as “Page” or “Post.” I do not know how to edit CSS Codes. I need a step-by-step instruction or a plugin that does that.

    Thank you!

Viewing 15 replies - 1 through 15 (of 39 total)
  • Olivia

    (@hipphooray88)

    Any boy there?

    Can anyone at least tell me where I can find the Archive page template?

    I know where the Editor is, but don’t see “Archive page” listed there. I don’t want tot change the template of all the pages . . .

    Thanks!

    Moderator Jan Dembowski

    (@jdembowski)

    Brute Squad and Volunteer Moderator

    Have some patience, it’s only been an hour since you’ve posted. Please don’t bump either.

    That Archive Page is a template that comes some themes. If you don’t see one then your theme doesn’t have that template.

    You can try creating your own template with some PHP coding. An example is at this Codex page.

    http://codex.wordpress.org/Page_Templates#Archives_with_Content

    If you do create your own template then you’ll want to first create a child theme of the theme you are using.

    http://codex.wordpress.org/Child_Themes

    That way if an update comes out for your theme then you will not lose your Archives page template. Your template will be safe in the child theme’s directory.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    You won’t find “Archives” in your editor if you mean what I think you mean. The way WordPress handles the presentation of posts/pages is through PHP files, which funny enough are called Template files. The theme you are using does not appear to have a archive.php file.

    As Jan provided some links for you to read, I highly recommend you read the second one about Child Themes. You will then need to create an archive.php file and use some template tags to get the right output you want to achieve and then style using CSS.

    Olivia

    (@hipphooray88)

    Thank you both!

    So, here are what I understand from your replies:

    1. It seems there is no Archive template with the theme I am using.
    2. I can create a template with some PHP coding.
    3. If I choose to do so, creating a child theme is recommended.

    I have looked at those links. Thank you.

    Now, this is my first Web publishing I have ever tried. I have no idea how PHP codes work yet. I may be able to create a template file according to the example, but I don’t know what to do with it, or where I should copy it to. It will take some time for me to learn all that I need and do what is recommended to do, it looks like. . . . . . that is where I am at.

    Is there any plugin that might help me with it?

    If not, I will have to wait until my skill is up to it.

    Olivia

    (@hipphooray88)

    But, if there is no Archive page template, where is the Archive page coming from anyway . . ??? Just wondering. I don’t see it in “Page” or “Post” sections.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    The template that is being used is the index.php file. It is the way the Template hierarchy works within WordPress.

    What you would do is create a child theme, add the file archive.php to the child theme’s folder and style using CSS.

    Olivia

    (@hipphooray88)

    Thank you Jose for sticking with me.

    But,

    What you would do is create a child theme, add the file archive.php to the child theme’s folder and style using CSS.

    I have no idea how to do all this.

    Creating a child theme part, may be I can do by using examples. But, the examples in the codex instructions have screen shots from older versions that I am not familiar with, so I cannot figure it out. I just don’t know add the created file to “where” and “how.” Where can I find index.php?

    Sorry, I know it must be frustrating to people who are so advanced. As I said in the beginning, I have been doing this only for a couple for weeks.

    Olivia

    (@hipphooray88)

    OK, I found the index.php.

    Now, where can I find “child theme” folder, or how can I create it?

    Olivia

    (@hipphooray88)

    I will get more help from the developer of the Theme.

    Thank you all!

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    You create the folder using an FTP program or your host’s file management system.

    Have to run but I’ll be back later to further post. 🙂

    Olivia

    (@hipphooray88)

    OMG! You are such a blessing, Jose!

    Sure, take your time!

    Thanks!

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    So what you want to do is have two different programs open: 1 A text editor, preferably Notepad so it will have the proper file extension and 2 an FTP program or equivalent.

    Method 1 ( Simply add a new file ) :
    In Notepad add the provided code and save it as archives.php.

    Upload to your theme’s folder and you’re done.

    Method 2 ( Child theme ) :
    Create an empty folder that will house our files.

    If you haven’t already create your stylesheet with the proper heading so WordPress know it is a child theme we are dealing with.

    Create that same file with the provided code and save it as archives.php in your child theme folder.

    Upload the folder to your /wp-content/themes/ directory and activate the newly created child theme.

    Olivia

    (@hipphooray88)

    Wow! Very comprehensive. And you created the stylesheet for me?

    Thank you, Jose!!!

    Now, it looks like I may be able to follow the steps and go somewhere. With your instructions, and some more patience on my part, I am sure I can do it.

    If I get stuck, I will post a separate question again.

    Thanks again!

    Olivia

    (@hipphooray88)

    OK . . .

    I have created a directory “wp-content/theme/my-life-child” with the GoDaddy FTP file manager. And, added the following part to the codes you provided for me, according to the instruction on http://codex.wordpress.org/Child_Themes

    /*
    Theme Name:     My Life Child
    Theme URI:      http://themehybrid.com/themes/my-life
    Description:    Child archive template for the My Life theme
    Author:         Olivia
    Author URI:     http://olivetjournal.com
    Template:       mylife
    Version:        0.3
    */
    
    @import url("../my-life/style.css");

    So, where can I upload it? and How?

    I tried to upload it through FTP File Manager, but it says “Missing PlugIn.” I was told by GoDaddy tech that it should be done through WP.

    Do I do that through CSS Stylesheet Editor?

    Thanks!

    Olivia

    (@hipphooray88)

    I got the archive.php with the above headers uploaded to “wp-content/theme/my-life-child”.

    And, this is what I see on the Theme page:

    Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.

    Name Description
    my-life-child Stylesheet is missing.

    What’s next?

    Thanks.

Viewing 15 replies - 1 through 15 (of 39 total)
  • The topic ‘How to change "Archive" page template?’ is closed to new replies.