WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Search Form: Code Needed (7 posts)

  1. JesseG5
    Member
    Posted 6 years ago #

    Hello all...

    I need a little help here. I deleted the code for the search form that sits above the sidebar. (default theme) So obviously it's not appearing. Does anyone have the code so I may place back.

    Thanks in advance!

  2. whooami
    Member
    Posted 6 years ago #

    check the original file -- look inside the zip > http://wordpress.org/download/

  3. JesseG5
    Member
    Posted 6 years ago #

    Thanks I got it! Do you know if it's possible to get this search form to appear in the footer? If so, I will post a new topic...

  4. outthere
    Member
    Posted 6 years ago #

    I read this, went to my theme. searchform.php copied it and pasted it in the footer just before the end body tag. works great. Good luck.
    I tried HeadNfoot first, no luck.

  5. outthere
    Member
    Posted 6 years ago #

    I read this, went to my theme. searchform.php copied it and pasted it in the footer just before the end body tag. works great. Good luck.
    I tried HeadNfoot first, no luck.

  6. JesseG5
    Member
    Posted 6 years ago #

    Outthere,

    I just tried to do what you said above but it didn't work. What theme are you using?

    Here is the code for the "footer.php"

    <hr />
    <div id="footer">
    <p>
    
    		<a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a>
    		and <a href="<?php bloginfo('rss2_url'); ?>">Entries (RSS)</a>
    <?php bloginfo('name'); ?> © 2008
    		<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. -->
    </div>
    </div>
    </p>
    
    <?php wp_footer(); ?>
    </body>
    </html>

    Thanks

  7. JesseG5
    Member
    Posted 5 years ago #

    I got it! It turns out in the .css file in the #searchform was listing "display: none"
    When I got rid of that line the search bar showed up just fine.

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic