• hi there,

    i made some changes i the past, and now, the read more button isnt look like weel.

    The last code i put in my functions.php was:

    add_action('woocommerce_inside_product_right','meso_add_post_read_more',22);
    function meso_add_post_read_more() {
    echo '<a class="readmore" title="More info about this product" href="'. get_permalink() .'">' . __('Read more','mesocolumn') . '</a>';
    }

    however the add to cart button with this code run very fine.. any help please?

    add_action('woocommerce_inside_product_right','meso_add_post_buy_now',20);
    function meso_add_post_buy_now() {
    global $post;
    $add_to_cart = do_shortcode('[add_to_cart_url id="'.$post->ID.'"]');
    echo '<a class="buybutton" title="Add this product to cart" href="'.$add_to_cart.'">' . __('Add to Cart','mesocolumn') . '</a>';
    }

    thanks a cheers

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Theme Mesocolum] add read more button to archive view’ is closed to new replies.