0
스타일 시트 (style.css)에서 WordPress 테마 이름을 가져오고 싶습니다.Wordpress는 스타일 시트에서 테마 이름을 얻습니다.
/*
Theme Name: Campus
Theme URI: http://www.academiathemes.com/themes/campus/
Description: Campus is a free WordPress theme for blogs and review websites.
Author: AcademiaThemes.com
Author URI: http://www.academiathemes.com/
Version: 1.2.6
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blue, white, light, two-columns, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-menu, featured-images, theme-options, threaded-comments, translation-ready
Text Domain: campus
*/
: 여기 예를 들어
이있는 style.css는 "테마 이름 : 캠퍼스"PHP 변수에 저장해야합니다.
아이디어가 있으십니까? 고맙습니다.
wp_get_theme의 문서 : https://codex.wordpress.org/Function_Reference/wp_get_theme –
감사합니다! 그것은 작동합니다! – Coze