WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How can I put the search area in the footer? (7 posts)

  1. luisobispo
    Member
    Posted 4 years ago #

    Hello,

    How can I put the search area in the footer?

    Thank you...

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    Well, do you already have a search area built into your theme? It could be as simple as copying the code from one area to another.... or it could be more involved. You could also set up your footer to have a 'widget' area, and drop a search widget there....
    http://www.themelab.com/2009/04/25/add-a-widgetized-footer-to-your-wordpress-theme/

    that's the tutorial I used to add several widget areas to my footer....but you see, you have options

  3. luisobispo
    Member
    Posted 4 years ago #

    Thank you so much for your reply,

    Yes indeed I do have a search area already.

    In fact I need to have two different footers. I've done that, a new footer with the pasted codes for the search area, footer called "footer2". I created a new page template, who calls the header and the footer.

    The footer, I suppose, is called by

    <?php get_footer(); ?>

    But I do not know how to call the "footer2". Must be dead easy, right? Well, it must be... or perhaps not.

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    the second footer would be called like:
    <?php include(TEMPLATEPATH . "/footer2.php"); ?>

  5. luisobispo
    Member
    Posted 4 years ago #

    WOW

    It works.

    kind of magic...

    THANK YOU!

  6. Rev. Voodoo
    Volunteer Moderator
    Posted 4 years ago #

    For sure! it'd be cool if you marked thethread 'resolved'

  7. luisobispo
    Member
    Posted 4 years ago #

    I do that right now...

Topic Closed

This topic has been closed to new replies.

About this Topic