Woocommerce ‘single product page’에 콘텐츠 넣기
Woocommerce > single product page
우커머스 쇼핑몰에서 빨간 원으로 표시된 영역(ADD TO CART)에
버튼, 이미지, 텍스트 등의 콘텐츠를 추가 하고 싶다면..
How t o add content after add to cart button on single product page in Woocommerce?
It’s simple. Add the following code at your theme’s functions.php
테마편집기 ‘functions.php’ 하단에 다음의 코드를 추가해주시면 됩니다.
add_action( ‘woocommerce_after_add_to_cart_button’, ‘add_content_after_addtocart_button_func’ ); function add_content_after_addtocart_button_func() { // Echo content. echo ‘ 콘텐츠를 이곳에 넣으세요. ‘; } |
응용은 각자 알아서..
어때요. 참~ 쉽죠?