Removing sidebar from single product page in FACTORY wp theme
<p>I want to disable the sidebar completely from WooCommerce single product page, and make the page full width.</p>

<p>I have read and tried each and every document available but to nothing is available.</p>

<p><strong>Steps</strong>: </p>

<ol>
<li><p>Copied the following code to functions.php </p>

<pre><code>function remove_sidebar_shop() {
    if ( is_product() ) {
        remove_action('woocommerce_sidebar','woocommerce_get_sidebar');
        echo("Test if");
    }

    else {
        echo("Test else");
    }
}

add_action('get_header','remove_sidebar_shop');
</code></pre></li>
</ol>

<p>(the echo parts were for debugging)</p>

<ol start="2">
<li><p>Commented the line <code>do_action('woocommerce_sidebar');</code> in <code>archive-product.php</code> after copying it to <code>my-theme/woocommerce</code>.</p></li>
<li><p>Commented the line <code>do_action('woocommerce_sidebar');</code> in <code>single-product.php</code> after copying it to <code>my-theme/woocommerce</code>.</p></li>
<li><p>Commented the whole <code>sidebar.php</code> file.</p></li>
</ol>

<p>But nothing seems to work.</p>