I cant edit background image. Using The gem theme. Error with custom.css

871 Views Asked by At

I keep getting an error, TheGem's styles cannot be customized because file "/home2/stargbb9/public_html/wp-content/themes/thegem-child/css/custom.css" cannot be modified. Please check your server's settings. Then click "Save Changes" button.

I then edited the .css and function file and still its making me enter my FTP details after saving my changes and resulting in an error outright.

---- (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

There are 0 best solutions below