add cart icon in course block

Home Forums Legacy Support Support queries How-to & Troubleshooting add cart icon in course block

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #204594
    dramalanguage
    Spectator
    Hi wplms Can I add an cart icon on course block as shown below? (Udemy style) https://prnt.sc/myz78v
    #204771
    logan
    Member
    Hello, Please paste this snippets in your wp-admin > plugins > editor > wplms-customizer plugin > wplms-customizer.php  add_filter('wplms_course_thumb_extras','add_add_to_cart_link_course_block');   function add_add_to_cart_link_course_block($html){     global $post;     $product=get_post_meta($post->ID,'vibe_product',true);     if( !empty($product) && is_array( $product)){       foreach( $product as $p){         $html.=do_shortcode('[add_to_cart id="'.$p.'"]');       }     }elseif(!empty($product) ){        $html.=do_shortcode('[add_to_cart id="'.$product.'"]');     }     $html.='<style>.courseitem p.product.woocommerce.add_to_cart_inline {       border: none !important;     }</style>';     return $html;   } Refer: https://cl.ly/dd2d4b7d3cc0
    #205320
    dramalanguage
    Spectator
    The above code is correct, the cart icon has been generated normally. Thank you very much. Please close this topic.
    #205341
    logan
    Member
    Hello, If you need any styling related modifications for add to cart button. you can creat topic iun styling.

    We aim to improve the usability of our customer's web-sites and we are glad to have made a contribution. If you find our information to be helpful & you wouldn’t mind leaving a review, we would really appreciate that!

    Here: https://themeforest.net/item/wplms-learning-management-system/reviews/6780226


    Thanks for confirming that it is working now. So marking the topic as resolved and closing the topic.
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘add cart icon in course block’ is closed to new replies.