• I am begging for help about a query that has been posted here by others many times before – but each case the answer is slightly different. I therefore need to post my own.

    I have a Genesis WordPress site with the EPIK theme and I installed Woocommerce. Generally it works well as I’m using the Genesis Connect Woocommerce plugin- but I found that the related product images were blurry.

    Loads of people had the same issue on this forum – and a chap provided a code to add to the function CSS of your child theme – and it worked for many other people…

    Naturally, it didn’t work for me! And naturally I didn’t have the sense to back up my file first. I know – I’m an idiot.

    Now, when I try to access my homepage I get:

    Parse error: syntax error, unexpected ‘.’ in /home2/zockedi/public_html/blogbods.com/wp-content/themes/epik/functions.php on line 229

    The weird thing is I *removed* the code I’d added….yet the error message remains!

    It says the error is line 229! I used Pastebin (which assigns the line number for each line) and there is no line 229 – here are the last two lines – line 227 and line 228:

    ) );
    add_theme_support( ‘genesis-connect-woocommerce’ );

    HERE is the code I added after those lines – that caused the error – despite removing it… Presumably the first line is 229:

    .woocommerce div.product div.images,.woocommerce-page div.product div.images,.woocommerce #content div.product div.images,.woocommerce-page #content div.product div.images{width:auto;}

    .woocommerce .related ul.products li.product img,.woocommerce-page .related ul.products li.product img,.woocommerce .upsells.products ul.products li.product img,.woocommerce-page .upsells.products ul.products li.product img,.woocommerce .related ul li.product img,.woocommerce-page .related ul li.product img,.woocommerce .upsells.products ul li.product img,.woocommerce-page .upsells.products ul li.product img{width:auto;height:auto;margin-right:10px;}

    .woocommerce ul.products li.product,.woocommerce-page ul.products li.product{width:auto;}

    I’d be so grateful for any help you could provide so I can get rid of this error message. (I’ll sort out the blurry “related product” images some other time!)

    Huge thanks in advance.

  • The topic ‘Parse error: syntax error, unexpected – Genesis/Woocommerce CSS issue’ is closed to new replies.