Apologies for yet another duplicate, but I have tried solutions in other questions but had no luck.
Wordpress is giving me this error on my custom made child theme (of another custom made theme) Thank you for your help!
"Parse error: syntax error, unexpected '}', expecting end of file in C:\xampp\htdocs\wp\wp-content\themes\site-child\searchform.php on line 11"
This is my searchform.php code (I know I must be missing a simple thing, put me out of my misery!)
Thanks for your help! :)
<?php
/**
*The template for displaying Search forms.
*
*@package Site
*@since Site 1.0
*/
} else {
//the original contents of search.php should follow
//make sure to close the php tag as appropriate
?>
<form method="get" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>" role="search">
<label for="s" class="assistive-text"><?php _e( 'Search', 's' ); ?></label>
<input type="text" class="field" name="s" value="<?php echo esc_attr( get_search_query() ); ?>" id="s" placeholder="<?php esc_attr_e( 'Search …', 'site' ); ?>" />
<input type="submit" class="submit" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'site' ); ?>" />
</form>