PHP breaking my site – PLEASE help
-
Hi
I am using Theme Customisations plugin to add some functionality, but every time I change the file the whole site (https://wildlifewatercolourpaintings.co.uk)– is brought down with an error message like this :
Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /var/sites/w/wildlifewatercolourpaintings.co.uk/public_html/wp-content/plugins/theme-customisations-master/custom/functions.php on line 9
I have also tried adding simple code to the child Theme functions.php – with the same alarming result ! I have read other posts which say delete a ‘define cache’ line from the wp-config.php – BUT my file does not have that line in anyway.
This is the content of the file I tried to upload – any help would be most welcome ??
<?php
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly/**
* functions.php
* Add PHP snippets here
*/
add_action( 'init', 'jk_move_price' );
function jk_move_price() {
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 30 );
}
?>I am sure it is my fault somewhere, but I would love to find out why the whole site comes down
Cheers
C
- The topic ‘PHP breaking my site – PLEASE help’ is closed to new replies.