Home Forums WoodMart support forum Need help with a catalog website

Need help with a catalog website

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #544497

    vikasbhalla36
    Participant

    need learn more or read more button on product card or on hover

    Attachments:
    You must be logged in to view attached files.
    #544675

    Hello,

    Try to add the following PHP code snippet to the child theme functions.php file.

    add_action( 'woocommerce_after_shop_loop_item_title', 'read_more' );
    
    function read_more() {
        global $product;
        if ( $product ) {
            $url = esc_url( $product->get_permalink() );
            echo '<a rel="nofollow" href="' . $url . '" class="read_more">read_more</a>';
        }
    }

    Best Regards.

    #544767

    vikasbhalla36
    Participant

    Thanks a lot, i will give css to this element to make it as button

    #544932

    Most Welcome!!!.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Need help with a catalog website’ is closed to new replies.