title: Changing Woocommerce "Add to cart" button to "view product" button
body: <p>Trying to change the woocommerce button text from "add to cart" to "read more" and redirect it so that clicking the button takes the user to the individual product page. So far, the link works but all the text on the button says is "Button" when I need it to say "Read More". I'll place the code below, can anyone please tell me what the problem is.</p>
  
  <pre><code>/*STEP 1 - REMOVE ADD TO CART BUTTON ON PRODUCT ARCHIVE (SHOP) */
  
  function remove_loop_button(){
  remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
  }
  add_action('init','remove_loop_button');
  
  
  
  /*STEP 2 -ADD NEW BUTTON THAT LINKS TO PRODUCT PAGE FOR EACH PRODUCT */
  
  add_action('woocommerce_after_shop_loop_item','replace_add_to_cart');
  function replace_add_to_cart() {
  global $product;
  $link = $product-&gt;get_permalink();
  echo do_shortcode('&lt;br&gt;[button link="' . esc_attr($link) . '"]Read More[/button]');
  }
  </code></pre>