我做了这个:
cd wp-content/themes
cp -R someTheme newTheme
然后:
cd newTheme
vim style.css #changed name of theme in the css comment header
然后登录到example.com/wp-admin。但是当我查看主题列表(在左边菜单中的外观标题下)时,我没有看到它。我还需要做些什么才能让wordpress注意到我的主题?
wp版本= 3.0.4
为了排队,我使用了get_theme_file_uri('/style.css')。现在,我已经使用生成器创建了一个子主题,它创建了如下代码;但是它抛出了一个带有父样式的php错误。
如果我在父主题中使用get_theme_file_uri(),下面的代码是否真的需要,因为它将自动搜索子主题中的文件?
我有一些父主题的css代码(style.css)。所以如果我使用子主题(它是空的)。那么父主题样式会被应用吗?
function theme_enqueue_styles() { wp_enqueue_style('parent-style', g
我正在制作一个“生长极小”主题的简单子主题。
我创建了一个文件夹,grow-minimal-child并添加了functions.php和style.css:
functions.php:
function my_theme_enqueue_styles() {
$parent_style = 'grow-thinkup-style-minimal'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, g
我正在尝试创建一个Wordpress子主题,并访问了以下网站:。
在这个网站上,它说我必须创建两个文件,其中style.css是明确的,我的问题是关于functions.php。它指出,在某个时候,我必须将以下文本复制到新创建的functions.php文件中:
<?php
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
w