WordPress.org

Ready to get started?Download WordPress

Forums

Creating a Page template: Why does the search form get added automatically? (2 posts)

  1. bmondala
    Member
    Posted 6 years ago #

    Hello WP-community!

    I'm trying to create a template without a search form and without the link that says "Edit this Entry". So, i created a very simple page template such as the following...

    <?php
    /*
    Template Name: portfolio
    */
    ?>

    <?php get_header(); ?>
    <div id="content">
    <h1>Portfolio</h1>
    </div>
    <?php get_footer(); ?>

    ...and I selected it as a template from the Admin. But when I bring it up on the browser such as http://www.some-web-page.com/portfolio, the new page includes a Search form and the link "Edit this entry"! How was this included?!

    The answer must be very simple. Thank You!

    -Byron

  2. Jeremy Clark
    Moderator
    Posted 6 years ago #

    It must be included in the header file. Look in your header.php file for a reference to anything with search.

Topic Closed

This topic has been closed to new replies.

About this Topic