1. Welcome to the Upload WP Community Forums!  This is the best place to get premium WordPress and WooCommerce support.  Please take a look around and join the Upload WP Community for FREE today!

HELP! Tried to update fuction.php and now Error 500

Discussion in 'Newbie Helpdesk' started by richagent, Apr 17, 2017.

  1. richagent

    richagent New Member Updated Profile

    I attempted to add the following code into my fuction.php file and now I cannot access anything on my site and I am receiving an http error 500 message

    add_action( 'init', 'jk_mystile_add_to_cart' );
    function jk_mystile_add_to_cart() {
    add_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10);

    Please help me get my site back!!
  2. TeddyTriton

    TeddyTriton Administrator Staff Member

    Just remove that line from your function file via a ftp program.

    If you have something like cpanel you can use file manager to open the file directly and remove that code snippet.