i want create wordpress child theme theme x.
how import css original style theme x?
generalized steps creating child theme theme:
1) create directory in themes directory in wordpress: /wordpress/htdocs/wp-content/themes/your-child-theme
2) create style.css file in directory.
3) open newly created style.css file , add header information:
/* theme name: child theme name author: author name template: parent theme name */ 4) import parent theme stylesheet, after header add in style.css:
@import url('../your_parent_theme/style.css'); if parent theme have 1 stylesheet, these steps sufficient. otherwise can add multiple import statements.
check wordpress codex: https://codex.wordpress.org/child_themes
Comments
Post a Comment