Forums

use multiple headers (2 posts)

  1. Nnyan
    Member
    Posted 6 years ago #

    Hello,

    I remember seeing a post (somewhere) about being able to call a different header then the default one but I can't find it. Anyone know how to do this?

  2. heyrsmith
    Member
    Posted 6 years ago #

    I am guessing that you might want to include a different header for a particular category? If so, make a copy of your index.php file, rename it "category-xx.php" (where xx is the id of the category) and change

    <?php get_header(); ?>

    to

    <?php include('path-to-your-alternative-header'); ?>

    where "path-to-your-alternative-header" is, well, the path to your alternative header.

    There may be other ways to do this, but this one works for me.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.