at path:
ROOT
/
wp-content
/
themes
/
oceanwp
/
searchform.php
run:
R
W
Run
assets
DIR
2026-07-10 16:52:18
R
W
Run
inc
DIR
2026-07-10 16:52:18
R
W
Run
languages
DIR
2026-07-10 16:52:18
R
W
Run
partials
DIR
2026-07-10 16:52:18
R
W
Run
sass
DIR
2026-07-10 16:52:18
R
W
Run
templates
DIR
2026-07-10 16:52:18
R
W
Run
tribe-events
DIR
2026-07-10 16:52:18
R
W
Run
woocommerce
DIR
2026-07-10 16:52:18
R
W
Run
404.php
4.56 KB
2023-05-23 11:21:48
R
W
Run
Delete
Rename
500.php
211 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
README.md
1.83 KB
2026-07-01 12:41:12
R
W
Run
Delete
Rename
accessibility.txt
5.66 KB
2026-06-29 21:46:40
R
W
Run
Delete
Rename
babel.config.js
42 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
changelog.md
4.76 KB
2026-07-01 12:41:12
R
W
Run
Delete
Rename
comments.php
6.03 KB
2026-06-29 21:46:40
R
W
Run
Delete
Rename
footer-pwa.php
166 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
footer.php
1.67 KB
2022-08-09 11:52:52
R
W
Run
Delete
Rename
functions.php
37.19 KB
2026-06-29 21:46:40
R
W
Run
Delete
Rename
header-pwa.php
437 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
header.php
1.01 KB
2023-04-05 12:12:28
R
W
Run
Delete
Rename
image.php
1.38 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
index.php
3.06 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
offline.php
210 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
page.php
1.26 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
readme.txt
6.39 KB
2026-07-01 12:41:12
R
W
Run
Delete
Rename
rtl.css
17.32 KB
2023-04-05 12:12:28
R
W
Run
Delete
Rename
screenshot.png
82.88 KB
2021-06-09 11:27:58
R
W
Run
Delete
Rename
search.php
1.52 KB
2024-10-16 13:50:30
R
W
Run
Delete
Rename
searchform.php
2.29 KB
2026-06-29 21:46:40
R
W
Run
Delete
Rename
sidebar-left.php
737 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
sidebar.php
872 By
2023-09-06 12:38:32
R
W
Run
Delete
Rename
singular.php
1.65 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
style.css
2.09 KB
2026-07-01 12:41:12
R
W
Run
Delete
Rename
webpack.config.js
2.15 KB
2023-09-06 12:38:32
R
W
Run
Delete
Rename
wpml-config.xml
2.53 KB
2021-03-08 12:42:38
R
W
Run
Delete
Rename
error_log
up
📄
searchform.php
Save
<?php /** * The template for displaying search forms. * * @package OceanWP WordPress theme */ // Exit if accessed directly. if ( ! defined( 'ABSPATH' ) ) { exit; } // Post type. $search_post_type = get_theme_mod( 'ocean_menu_search_source', 'any' ); // Generate unique form ID. $ocean_sf_id = oceanwp_unique_id( 'ocean-search-form-' ); $display_label = oceanwp_is_accessibility_feature_enabled( 'ocean_display_header_search_form_label' ); $custom_label_text = get_theme_mod( 'ocean_custom_header_search_form_label', __( 'Search this website', 'oceanwp' ) ); $form_aria_label = oceanwp_theme_strings('owp-string-search-form-label', false); $input_aria_label = oceanwp_theme_strings('owp-string-search-field', false); $form_placeholder = oceanwp_theme_strings( 'owp-string-search-text', false ); $form_close_scrd = oceanwp_theme_strings( 'owp-string-esc-close-notice', false ); $label_text = ! empty( $custom_label_text ) ? $custom_label_text : $form_aria_label; $form_aria_label_attr = ''; $form_input_aria_label_attr = ''; if ( ! $display_label ) { $form_aria_label_attr = sprintf( 'aria-label="%s"', esc_attr( $label_text ) ); $form_input_aria_label_attr = sprintf( 'aria-label="%s"', esc_attr( $input_aria_label ) ); } // Setup the ESC description ID. $desc_id = $ocean_sf_id . '-desc'; ?> <form <?php echo $form_aria_label_attr; ?> role="search" method="get" class="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> <?php if ( $display_label ) : ?> <label for="<?php echo esc_attr( $ocean_sf_id ); ?>" class="header-search-visible-label"> <?php echo esc_html( $label_text ); ?> </label> <?php endif; ?> <input type="search" id="<?php echo esc_attr( $ocean_sf_id ); ?>" class="field" autocomplete="off" placeholder="<?php echo esc_attr( $form_placeholder ); ?>" name="s" <?php echo $form_input_aria_label_attr; ?> aria-describedby="<?php echo esc_attr( $desc_id ); ?>"> <?php if ( 'any' !== $search_post_type ) : ?> <input type="hidden" name="post_type" value="<?php echo esc_attr( $search_post_type ); ?>"> <?php endif; ?> <?php do_action( 'wpml_add_language_form_field' ); ?> <span id="<?php echo esc_attr( $desc_id ); ?>" class="screen-reader-text"> <?php echo esc_html( $form_close_scrd ); ?> </span> </form>