Help with Searchform.php
-
Hi,
I’m making a new WP theme, my first ever (called Xpress), and wanted to include a search bar right at the top.
I made a file searchform.php which has the code to display the bar.
But when i call my bar at the header file where i want:
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
I get an error on that space in my header. The error reads:
Warning: Division by zero in C:\xampp\htdocs\wordpress\wp-content\themes\Xpress\header.php on line 121 Warning: include(C:\xampp\htdocs\wordpress/wp-content/themes/Xpressphp’) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\wordpress\wp-content\themes\Xpress\header.php on line 121 Warning: include() [function.include]: Failed opening 'C:\xampp\htdocs\wordpress/wp-content/themes/Xpressphp’' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\wordpress\wp-content\themes\Xpress\header.php on line 121
What wrong am i doing here? Isn’t the calling function correct? Have i goofed up in forward/backward slashes (/ or \)?
Please help!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Help with Searchform.php’ is closed to new replies.