• I pasted an existing function into Woocommerce’s functions.php file (I believe that was the name) in the space indicated for adding custom functions.

    Now I get a blank screen when I try to load my site, and I can’t access the back-end admin area either. In other words, I can’t see more site or access it to fix it.

    Can anyone suggest a way for me to get back in to my admin area?

    Thanks. Mark

    http://wordpress.org/extend/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Roy Ho

    (@splashingpixelscom)

    Not really sure where you got instructions to paste custom functions into a core WooCommerce plugin file. Or perhaps you mean your theme’s function file?

    But if it is the first case, you can simply use FTP and rename the plugin folders name to something else and WordPress will not load that plugin and therefore give you back your access.

    Thread Starter markbac3

    (@markbac3)

    Thanks for the quick response! You’re right, I meant the theme’s function.php file. This is what I pasted in:

    // Change columns in product loop to 3
    add_filter(‘loop_shop_columns’, ‘woostore_loop_columns’);

    function woostore_loop_columns() {
    return 4;
    }

    I got that function from the theme-woocommerce.php file and changed “return 3″ to return 4” because I wanted to display 4 products per row instead of 3.

    In the meantime I managed to access the functions.php file via cPanel and delete the code I pasted in, and now everything is back to normal. Do you by any chance know another way to set the number of products per row? Thanks.

    Thread Starter markbac3

    (@markbac3)

    I found a solution for the display question in another thread. Basically, you paste this code into the theme’s functions.php file and set the desired number:

    global $woocommerce_loop;
    $woocommerce_loop[‘columns’] = 3;

    Thanks again for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Added a function, now I can't see the site or the admin area’ is closed to new replies.