• I am using the Amazing Grace theme and want to change the first page to just excerpts. Then when you click on them it will take you to the full article.

    It says to change the code in the index.php (which I did) and the archives.php (which I cant find anywhere).

    Is there a different place where the archives.php is or a different name it is under?
    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • If your theme doesn’t have an archive.php, in that theme folder, wp-content/themes/amazing-grace, copy your index.php to archive.php and make the changes.

    Thread Starter jamisonstudio

    (@jamisonstudio)

    Im sorry, I am so new at this. Do I need to make a duplicate index.php and rename if archive.php? Are they technically the same folder?

    Because even in my wp-content/themes/amazing-grace on my host site, there is no archives.php folder.

    Thank you so much for your help.

    Thread Starter jamisonstudio

    (@jamisonstudio)

    I did this and I tried to Show Full Entries/Excerpts on index page – If you want full entries replace the_excerpt() with the_content() and vice versa. Changes should be applied to index.php and archives.php

    I did this, but it will not work. It will show the excerpts on the first page but then when you click to get the content all you get is the excerpt. It wont let me have it 2 ways.

    Im sorry, I am so new at this. Do I need to make a duplicate index.php and rename if archive.php? Are they technically the same folder?

    Since you asked, yes you copy the file index.php to archive.php in that folder. If you are using something like FileZilla then you might need to download the index.php to your local machine, rename it on your local machine to archive.php, edit the file to make the change from the_excerpt to the_content, then FTP that file back up to your host.

    Because even in my wp-content/themes/amazing-grace on my host site, there is no archives.php folder.

    You seemed to have figured out what I just said above, that in the wp-content/themes/amazing-grace folder you copy that index.php to archive.php in the same folder. Then you can edit archive.php to apply the_content to those posts.

    when you click to get the content all you get is the excerpt

    If you mean “when you click on a post title all you get is the excerpt” then you will need to apply the_content to the Template that controls the display of single posts; typically that is called single.php.

    With the help of the Template Hierarchy article, determine what Template WordPress uses to render posts in various situations.

    Also:
    Stepping Into Template Tags
    Stepping Into Templates

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘no archives.php’ is closed to new replies.