본인 테마 폴더에
bootstrap 폴더를 만든 후
boostrap.min.css, bootstrap.min.js 파일을 업로드 한다.
function.php 파일을 열고
/*--------------------------------------------------------------------- * 커스터마이징 *--------------------------------------------------------------------- */
/* * 부트스트랩 등록 & 커스텀 스타일 시트 등록 */
function aca_styles() {
wp_enqueue_style('bootstrap-stylesheet', get_stylesheet_directory_uri() . '/assets/vendor/bootstrap/bootstrap.min.css');
wp_enqueue_script('bootstrap-script', get_stylesheet_directory_uri() . '/assets/vendor/bootstrap/bootstrap.min.js', array('jquery'));
wp_enqueue_style('custom-stylesheet', get_stylesheet_directory_uri() . '/assets/css/comm.css');
}
add_action('wp_enqueue_scripts', 'aca_styles');
'Wordpress' 카테고리의 다른 글
워드프레스 body에 class 추가하기 (0) | 2020.12.03 |
---|---|
워드프레스 body에 class 추가하기 (0) | 2020.12.03 |
워드프레스에 부트스트랩 추가하기 (0) | 2020.12.03 |
Ultimate Member 플러그인의 로그인, 회원 가입 페이지 만들기 (0) | 2020.12.03 |
Ultimate Member 플러그인의 로그인, 회원 가입 페이지 만들기 (0) | 2020.12.03 |
워드프레스 무료 홈페이지 제작 방법 (0) | 2020.11.20 |
댓글0