Title: Parse error: syntax error in woocommerce.php
Last modified: August 21, 2016

---

# Parse error: syntax error in woocommerce.php

 *  [VSAUK](https://wordpress.org/support/users/vsauk/)
 * (@vsauk)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-in-woocommercephp/)
 * I typed this code in my woocommerce.php:
 *     ```
       $(document).ready(function () {
                   $("#searchFieldText").keypress(function () {
                       $("#searchFieldText").css("color", "#ffffff");
                   });
               });
       ```
   
 * Now I can’t do anything to my website, it has crashed and each page says:
    Parse
   error: syntax error, unexpected ‘(‘, expecting T_VARIABLE or ‘$’ in /home/content/
   28/11792328/html/Kid Fashionista/wp-content/themes/shopping/functions.php on 
   line 157
 * I have no idea on how to rectify this and get my site running again. The code
   is:
 * Shopping: woocommerce.php
 *     ```
       <?php
       /**
        * The template for displaying all pages.
        *
        * This is the template that displays all pages by default.
        * Please note that this is the WordPress construct of pages
        * and that other 'pages' on your WordPress site will use a
        * different template.
        *
        * @package Omega
        */
   
       get_header(); ?>
   
       	<main  class="<?php echo apply_atomic( 'main_class', 'content' );?>" role="main" itemprop="mainContentOfPage">
   
       		<?php
       		do_atomic( 'before_content' ); // omega_before_content 
   
       		woocommerce_content(); 
   
       		do_atomic( 'after_content'); // omega_after_content
       		?>
   
       	</main><!-- .content -->
   
       <?php get_footer(); ?>
       ```
   
 * I have a deadline approaching and I need it running again ASAP,
 * I’d be grateful for your help 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-in-woocommercephp/#post-4437216)
 * Download a new copy of your theme and replace that file using FTP or Cpanel to
   access your site files on the server.
 * EDIT – or if this is a plugin file you changed, delete the plugin and reinstall
   it.
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [12 years, 5 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-in-woocommercephp/#post-4437217)
 * Do you have FTP access?
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-in-woocommercephp/#post-4437218)
 * Moving this thread out of “Requests and Feedback” which is not a support forum,
   BTW.
 *  Thread Starter [VSAUK](https://wordpress.org/support/users/vsauk/)
 * (@vsauk)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-in-woocommercephp/#post-4437220)
 * Hi guys, thanks for your quick responses. I don’t know if I have FTP access, 
   I’m new to this
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-in-woocommercephp/#post-4437222)
 * You’ll need to be able to access your site files on the server – via FTP or another
   file manager your hosting company offers. Ask them how to set that up…where is
   your site hosted?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Parse error: syntax error in woocommerce.php’ is closed to new replies.

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)
 * [troubleshoot](https://wordpress.org/support/topic-tag/troubleshoot/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/help-parse-error-syntax-error-in-woocommercephp/#post-4437222)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
