250x250
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Liniux
- wordpress
- new user
- Google Cloud
- LetsEncrypt
- MariaDB
- crontab
- SSL
- centos
- git pull
- Xdebug
- vscode
- front page
- home page
- Linux
- CentOS7
- 구글 클라우드
- Apache
- html
- mysql
- non-www
- Fail2ban
- Mac
- DOM Parser
- launch.json
- Certbot
- php
- https
- child theme
- root
Archives
- Today
- Total
between 0 and 1
How to include styles in Wordpress Child Themes (워드프레스 차일드테마 css 스타일 적용) 본문
Software Development Engineering/Wordpress
How to include styles in Wordpress Child Themes (워드프레스 차일드테마 css 스타일 적용)
devxpert.yoon 2021. 2. 14. 01:55728x90
반응형
function.php
if ( ! function_exists('child_theme_enqueue_scripts') ) {
function child_theme_enqueue_scripts() {
$parent_style = 'parent-theme';
wp_enqueue_style('child-theme', get_stylesheet_directory_uri() . '/style.css', array($parent_style));
}
add_action('wp_enqueue_scripts', 'child_theme_enqueue_scripts');
}
style.css
/*
Theme Name: child-theme
Description: A child theme of Parent Theme
Author: Theme Creator
Version: 1.0.1
Template: parent-theme
*/
/* Tablet */
@media (max-width: 768px) {
}
/* Mobile */
@media (max-width: 480px) {
}
728x90
반응형
'Software Development Engineering > Wordpress' 카테고리의 다른 글
How to change the Wordpress front-page (워드프레스 전면페이지 변경) (0) | 2021.02.14 |
---|