[closed] Creating A footer2.php File (4 posts)

  1. alanchrishughes
    Posted 6 years ago #

    I've been working on a theme, but I realized I will not want my nice big 4 column footer widget area on all pages/templates. So I just saved a footer.php with the basic credits and info, and thought I could create a footerWidgets.php that I could just drop in <?php get_footerWidgets(); ?> on templates where I do want this widget area.

    But that is obviously missing some programing/php/functioning/stuff I don't know about. Is there any easy way of creating new site section php files that WordPress will recognize?


  2. misterpatrick67
    Posted 6 years ago #

    What I usually do is simply replace the header or footer call with a call to a different file. For example:

    <?php include(TEMPLATEPATH . '/header_sub.php'); ?>

    This will load a different header file that I've created. Nice and simple. You can also include this within a footer or header to load PHP files.

  3. alanchrishughes
    Posted 6 years ago #

    Thank you

  4. esmi
    Forum Moderator
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.