• I wanted to remove the headers for my static pages, so I made custom templates. I copied the index template and removed the code below and applied the templates to all the static pages. For some reason the headers disappeared on my blog page without changing it’s template. The blog was still set to main template, but the headers won’t show up. I made a copy of the main template and called it blog and set it to my blog page, and they still wont show up. If I set my static pages template to the main template or blog the headers show up.

    <h2 class="art-PostHeaderIcon-wrapper">
    <span class="art-PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>">
    <?php the_title(); ?>
    </a></span>
    </h2>

    ??????

Viewing 2 replies - 1 through 2 (of 2 total)
  • I haven’t got a clue what you’re actually writing here:

    You have posts, and you have pages. While pages are more static, they can have custom templates assigned to them. A blog, made out of posts, is not affected by a custom template, since you cannot apply them to posts.

    Can you please show us the site you’re writing about?

    Peter

    Just spent the last day figuring this out.
    It seems that if you name your custom template blog.php your blog page will use it instead of index.php. So, simply navigate to your theme folder and rename your custom template to something else. Make sure to reselect your custom template in the “pages” section in your wp-admin.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom template not working for my blog page’ is closed to new replies.