Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix edited php and broke site

Discussion in 'Misc WordPress Requests' started by naotosx, Oct 18, 2017.

  1. naotosx


    edited php and broke site, by naotosx

    Hello i was modifing the chekout of a page that i’m working with and modified the theme -> function.php to change a title of mi checkout of my page and i wrote

    add_filter( ‘woocommerce_checkout_fields’ , ‘custom_override_checkout_fields’ );
    function custom_override_checkout_fields( $fields ) {
    $fields[‘order’][‘order_comments’][‘label’] = ‘Special Notes of delivery’;
    $fields[‘order’][‘order_comments’][‘placeholder’] = ”;
    return $fields;

    and now i can’t watch anything, the desktoop, nothing, i don’t know what to do, the error is this:

    Fatal error: Cannot redeclare custom_override_checkout_fields() (previously declared in /home1/floartde/public_html/wp-content/themes/flowers-boutique/functions.php:306) in /home1/floartde/public_html/wp-content/themes/flowers-boutique/functions.php on line 318

    edited php and broke site

Share This Page

Monarch Social Sharing Plugin