• 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)
  • 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

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Do you have FTP access?

    Moving this thread out of “Requests and Feedback” which is not a support forum, BTW.

    Thread Starter VSAUK

    (@vsauk)

    Hi guys, thanks for your quick responses. I don’t know if I have FTP access, I’m new to this

    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.