1. Home
  2. 심플페이 DIY 체크아웃
  3. Appendix
  4. 숏코드 테마 가이드

숏코드 테마 가이드

theme : 템플릿 색상을 설정할 수 있으며, 제공되는 값은 아래와 같습니다. 기본값은 default 입니다.

default , red , green , yellow , illuminating_yellow , ultimate_gray , gray ,black , orange , orange_yellow

 

색상 예시는 아래를 참고해주시기 바라며, 새로운 색상을 추가하려는 경우 아래의 템플릿 theme 커스텀마이징 섹션을 참고해주시기 바랍니다.

[pafw_dc_cart template="type-b" theme="default"]

[pafw_dc_billing_fields template="type-b" theme="orange_yellow"]

[pafw_dc_payment_methods template="type-a" theme="green"]

자사몰 색상에 맞춰 템플릿 색상을 변경 하려는 경우 아래 코드를 차일드 테마의 functions.php 에 추가하여 이용해주시기 바랍니다.

function add_my_custom_theme($themes) {
    $themes['red_theme'] = array(
        'color' => '#ff0000'
    );

    return $themes;
}

add_filter('pafw_dc_get_themes', 'add_my_custom_theme');

 

중요

사이트에서 차일드 테마를 이용하고 있지 않은 경우 활성화된 테마로 복사하여 주시기 바랍니다.
다만, 부모테마에서 커스텀마이징할 경우 테마 업데이트 시 작업한 내용이 초기화 됨으로 작업내용을 백업하거나, 차일드 테마에서 작업하는 것을 권장하고 있습니다.

Was this article helpful to you? Yes No