Parse error: syntax error in woocommerce.php
-
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 157I 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)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Parse error: syntax error in woocommerce.php’ is closed to new replies.