WordPress.org

Support

Support » Themes and Templates » Change template on main page of posts

Change template on main page of posts

  • Hi,

    According to the following url we can change the template of individual posts.
    http://wordpress.org/extend/plugins/custom-post-template/

    How to change or select a template for the posts main page. When I click on June 2012 in the left navigation bar I go to a page where all my June posts are listed but that page has a different template to my website and I want to change it.

    Many thanks,
    Roohullah

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    It the themes folder you could have a file date.php or archive.php, this is the template that displays the posts when you click on ‘June 2012’

    For more information on the template heirarchy Date Display, look at the fallback date.php, archive.php then the index.php.

    HTH

    David

    I used Twenty Eleven as a base theme and there is no date.php file, whoever I did my changes in archive.php and it didn’t work.

    Thanks,
    Roohullah

    I changed index.php as well but it didn’t effect the page. May be there is an option to enable for selecting a template for these kind of pages.

    Roohullah

    For Twenty Eleven you should be using a child theme, and the changes will work if you have done them right!

    This will depend on what you are changing, to change the posts then you need to understand get_template_part() and how these can be styled with the post_class()

    Have a look at this post, where we change the archive content, the download is a twenty eleven working child theme, so it does work!

    HTH

    David

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change template on main page of posts’ is closed to new replies.