如何使我的儿童主题正常工作?自从我在服务器上发送网站以来,它不再存在

时间:2019-04-16 09:31:48

标签: wordpress-theming

我已经在WordPress 5.1.1中创建了一个以田园主题为主题的网站,并以儿童为主题。在本地,一切正常,但是自从我将其发送到远程服务器后,子主题不再起作用...

在网上寻找我的问题的答案,我试图更改子主题style.css中的标题注释,并尝试更改files.php文件,但是仍然相同...

idyllic-child / style.css:

    /*
    Theme Name: idyllic-child
    Description: Thème enfant de Idyllic
    Author: me
    Author URI: https://themefreesia.com/themes/idyllic/
    Template: Idyllic 
    Version: 0.1.0
    */

idyllic-child / functions.php:

    <?php
    /**
    ** activation theme
    **/
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
    function theme_enqueue_styles() 
    {
     wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }

我不明白为什么离线所有内容都可以正常工作,为什么在线上却不能正常使用子主题。当我进入网站时,好像没有安装任何子主题,并且在WordPress仪表板中,没有出现子主题。

0 个答案:

没有答案
相关问题