HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/companiesonthegouk/wp-content/themes/apper/searchform.php
<?php
/**
 * The template for displaying search forms.
 *
 * @package Apper WordPress theme
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Post type
$post_type = 'product'; ?>

<form method="get" class="searchform" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>">
	<input type="text" class="field" name="s" id="s" placeholder="<?php esc_html_e( 'Search', 'apper' ); ?>">
	<?php if ( '2' != $post_type ) { ?>
		<input type="hidden" name="post_type" value="<?php echo esc_attr( $post_type ); ?>">
	<?php } ?>
	<button type="submit" name="submit-search" class="button-search"><span class="icon-search fa fa-search"></span></button>
</form>