• Hi, I am fairly new to this and have managed to ruin my wordpress header.php.
    I wanted to remove the search bar in my header so I went to appearance – editor – header php and deleted the search part. I think I removed too much though as now i’m getting this error on my home page
    Parse error: syntax error, unexpected ‘<‘ in /var/sites/p/presentingsuccess.co.uk/public_html/wp-content/themes/salient/header.php on line 185
    This is what the area looks like that I deleted the lines from:

    </form>
    ‘;
    }
    else {
    echo ‘

    • No menu assigned!
    • ‘;
      }
      ?>php

      </div>

      </div>

      <div id=”ajax-loading-screen”><span class=”loading-icon <?php echo (!empty($options[‘loading-image-animation’]) && !empty($options[‘loading-image’])) ? $options[‘loading-image-animation’] : null; ?>”> <?php if(empty($options[‘loading-image’])) { if(!em=pty($options[‘theme-skin’]) && $options[‘theme-skin’] == ‘ascend’) { echo ‘<span class=”default-loading-icon spin”></span>’; } else { echo ‘<span class=”default-skin-loading-icon”></span>’; } } ?> </span></div>
      <div id=”ajax-content-wrap”>

      Can anyone help me replace what I deleted please? Or can I reset the theme without losing all my content?
      I am using Salient theme.

      Thank you in advance.

The topic ‘ruined my header .php template! Help please’ is closed to new replies.