Forums

[resolved] Adding a custom template to the blog page (5 posts)

  1. nellonenollen
    Member
    Posted 11 months ago #

    Usually i create custom template pages to edit some parts of pages.
    In these pages i often include a custom css with this code.
    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_directory');echo '/custom.css'; ?>" />

    I have a problem creating a custom template for the blog page.
    I've created a blank page named "blog" and i've checked the option that this page loads all articles.

    When i browse the blog page, the index.php was loaded and my custom template is ignored.
    How could i create a template for my blog page?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    By editing the theme's index.php template file.

  3. nellonenollen
    Member
    Posted 11 months ago #

    i know that, but everytime i upgrade wordpress, all my work is lost...
    i need a solution that persists after the updates

  4. esmi
    Theme Diva & Forum Moderator
    Posted 11 months ago #

    Don't edit the Twenty Ten theme. Make a child theme for your customisations.

  5. nellonenollen
    Member
    Posted 11 months ago #

    thank you very much, this solved my problem :)

Reply

You must log in to post.

About this Topic