dfs - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of dfs.php

  1. <?php
  2. add_filter( 'genesis_search_form', 'custom_genesis_search_form' );
  3. function custom_genesis_search_form() {
  4.     $search_form_markup = '
  5.         <form method="get" class="search-form" action="' . esc_url( home_url( '/' ) ) . '" role="search">
  6.             <label for="search-form-input" class="screen-reader-text">' . __( 'Search for:', 'text-domain' ) . '</label>
  7.             <input type="search" id="search-form-input" class="search-form-input" name="s" placeholder="' . esc_attr__( 'Search...', 'text-domain' ) . '" required> 
  8.             <button type="submit" class="search-form-submit" aria-label="' . esc_attr__( 'Search', 'text-domain' ) . '"> 
  9.             </button> 
  10.         </form>'; 
  11.     return $search_form_markup;
  12. }
  13.  
File Description
  • dfs
  • PHP Code
  • 19 May-2023
  • 731 Bytes
You can Share it: