Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter CriterioNet

    (@criterionet)

    The problem was my theme. Worked with:
    .woocommerce-message a.button.wc-forward {display: none;}

    Hey your solution worked perfect for me, thanks CriterioNet!

    1- Create a new folder in your theme folder, name it ‘woocommerce’
    2- Create a new folder in the new ‘woocommerce’ folder, name in ‘cart’

    you get:

    – ‘wp-content’
    > ‘themes’
    > ‘your-theme-folder’
    > ‘woocommerce’
    > ‘cart’

    3- Copy cart.php from woocommerce plugins folder to your new woocommerce folder in ‘your-theme-folder’

    – wp-content/plugins/woocommerce/templates/cart/cart.php

    Remove this line:

    <?php do_action( ‘woocommerce_before_cart_table’ ); ?>

    I’m so sorry, the above solution is not working.

    After I try, I found solution as below.

    Paste this inside your theme ‘functions.php’ file.

    add_filter( ‘wc_add_to_cart_message’, ‘__return_false’ );

    function add_stylesheet_to_head() {
    echo “<style> .woocommerce .woocommerce-message{display:none;} </style>”;
    }

    add_action( ‘wp_head’, ‘add_stylesheet_to_head’ );

    The version I try:

    WordPress: V 4.5.2
    Woocommerce : V 2..5.5

    Thanks Chikie Your first solution is best and solved my issue.

    Hai Irandoust,

    Glad to hear you solve your problem.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove 'Continue shopping' button from added to cart message’ is closed to new replies.