Help! my sites not working anymore!
-
K so i’ve been doing finishing touches on my website & I was wanted to change “Add to cart” to “Add to bag” So i read on this website https://chrislema.com/changing-add-to-cart-in-woocommerce-and-other-quick-changes/ and a question on here how to do it
so I pasted:
<?php
add_filter(‘single_add_to_cart_text’, ‘woo_custom_cart_button_text’);
function woo_custom_cart_button_text() {
return __(‘My Button Text’, ‘woocommerce’);
}
?>
to my functions.php and when I pressed update file I got this message
“Parse error: syntax error, unexpected ‘<‘ in /home/lottemae/public_html/wp-content/themes/vintage/functions.php on line 31”So I went back and deleted it, pressed update and I got that message again. and now I’m panicked because I can’t go to my website or anything:(
helpppp is it a virus? Can i get my site back???
- The topic ‘Help! my sites not working anymore!’ is closed to new replies.