• Hi
    I have a theme and I am putting all of my blog posts on a static page now I know well I think I do that the static page pulls in the Index.php as the main template can I change this so it uses say Blog-Temp.php?
    I have made both the Blog.temp.php file and the blog.sidebar.php how do I get the blog page to pull in this template rather than index.php?

Viewing 11 replies - 1 through 11 (of 11 total)
  • the static page pulls in the Index.php as the main template

    No it doesn’t. Unless you have applied a custom page template or have a file called front-page.php, it will use page.php.

    Thread Starter kevin.wilescg

    (@kevinwilescg)

    When I make changes to the Index.php it changes the blog page, I ahve a custom built theme and then when I edit the Page.php it does nothing

    Thread Starter kevin.wilescg

    (@kevinwilescg)

    Ive changed the template it pulls in to called “Blog” Ive made the cusom page yet when it is live it shows none of the custom stuff on that template

    Can you confirm via the source markup that the correct template file is being used?

    Thread Starter kevin.wilescg

    (@kevinwilescg)

    Hi, As thought it does use the index.php because I made small chanegs in the back end. The reading section for example so I only have the option to use home.php or index.php i now need to find out how to change it so it can use blog-temp.php

    Edit the page and select your custom page template.

    Thread Starter kevin.wilescg

    (@kevinwilescg)

    But this wont work I have done this and it doesnt show anything this is my point

    It does work – I’ve done it hundreds of times. Start by renaming home.php to something like homepage.php.

    Thread Starter kevin.wilescg

    (@kevinwilescg)

    Ive got my file which is called blog-temp.php and then within the page I have set this as the template but it doesnt work

    Thread Starter kevin.wilescg

    (@kevinwilescg)

    Thansk for your help I have this working now but I wanted to make the posts have a title above them but the only code I have to edit is

    <?php get_template_part( ‘loop’, ‘index’ ); ?>

    You need to look in loop.php or (if you have it) loop-index.php.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Custom page Template for Blog?’ is closed to new replies.