我无法编辑背景图片。使用gem主题。 custom.css错误

时间:2019-03-12 00:36:30

标签: php css wordpress website-deployment

我不断收到错误消息,无法自定义TheGem的样式,因为无法修改文件“ /home2/stargbb9/public_html/wp-content/themes/thegem-child/css/custom.css”。请检查您服务器的设置。然后点击“保存更改”按钮。

然后我编辑了.css和功能文件,仍然保存了更改并完全导致错误之后,仍然让我输入了FTP详细信息。

---- (style.css)

    /*
    Theme Name: TheGem Child
    Description: Multi-Purpose Wordpress Theme
    Author: Codex Themes.
    Theme URI: http://codex-themes.com/thegem/
    Author URI: http://codex-themes.com/thegem/
    Template: thegem
    Version: 1.0
    Tags: one-column, two-columns, left-sidebar, right-sidebar, responsive-layout, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, dark, light
    License: GNU General Public License
    License URI: license.txt
    */

--- functions.php

    <?php
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
    function my_theme_enqueue_styles() {

        $parent_style = 'parent-style'; 

        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
        wp_enqueue_style( 'child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style ),
            wp_get_theme()->get('Version')
        );
    }
    ?>

0 个答案:

没有答案