Support » Plugins » WP won’t let me login to dashboard- parse error on line in file that doesn’t exi

  • Parse error: syntax error, unexpected ‘.’ in /home4/posieandpine/public_html/wp-content/themes/marykate-premium/inc/woocommerce.php on line 53

    This is the error I’m getting from a woocommerce plugin. However I’m looking on my c-panel manager and that file doesn’t seem to exist. I’m not sure how to fix this but I need this site running asap!

Viewing 1 replies (of 1 total)
  • Thread Starter cjamieson1992

    (@cjamieson1992)

    The file now exists

    This is the code for it but it only goes up to up to line 28 and it says error is on 53

    `// http://jameskoster.co.uk/snippets/disable-woocommerce-styles/
    // add_filter( ‘woocommerce_enqueue_styles’, ‘__return_false’ );

    // Redefine woocommerce_output_related_products()
    if ( ! function_exists( ‘woocommerce_output_related_products’ ) ) {
    function woocommerce_output_related_products() {
    $args = array(
    ‘posts_per_page’ => 4,
    ‘columns’ => 4,
    ‘orderby’ => ‘rand’
    );

    woocommerce_related_products( $args ); // Display n products in n columns
    }
    }

    // Display 12 products per page.
    add_filter( ‘loop_shop_per_page’, create_function( ‘$cols’, ‘return 12;’ ), 20 );

    remove_action( ‘woocommerce_before_main_content’, ‘woocommerce_output_content_wrapper’, 10);
    remove_action( ‘woocommerce_after_main_content’, ‘woocommerce_output_content_wrapper_end’, 10);

    function wpcanvas2_wrapper_start() {
    global $posts_per_page;
    $posts_per_page = 4;
    echo ‘<div id=”primary” class=”content-area”>’;
    echo ‘<main id=”main” class=”site-main” role=”main”>’;
    }
    add_action(‘woocommerce_before_main_content’, ‘wpcanvas2_wrapper_start’, 10);

    function wpcanvas2_wrapper_end() {
    echo ‘</main>’;
    echo ‘</div>’;
    }
    add_action(‘woocommerce_after_main_content’, ‘wpcanvas2_wrapper_end’, 10);

    // remove breadcrumbs for woocommerce
    // remove_action( ‘woocommerce_before_main_content’,’woocommerce_breadcrumb’, 20, 0);

    function wpcanvas2_woocommerce_setup() {
    //Declare WooCommerce support
    add_theme_support( ‘woocommerce’ );

    }
    add_action( ‘after_setup_theme’, ‘wpcanvas2_woocommerce_setup’ ).’

Viewing 1 replies (of 1 total)
  • The topic ‘WP won’t let me login to dashboard- parse error on line in file that doesn’t exi’ is closed to new replies.