Followed child theme set up step-by-step. Still doesn't work

  • Unknown's avatar

    Followed the codex process for Child Themes step by step and styling change still don’t show up. Compare firstheme.celenah.com with uploaded files…

    My functions.php content…
    “<?php

    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );

    function my_theme_enqueue_styles() {

    $parent_style = (‘twentyfifteen-style’); // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme.

    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’)
    );
    }

    ?>”

    My child theme style.css content….
    “/*
    Theme Name: Twenty Fifteen Child
    Theme URI: http://firstheme.celenah.com/twentyfifteen-child/
    Description: My first child theme, based on Twenty Fifteen
    Author: Celena H
    Author URI: http://celenah.com
    Template: twentyfifteen
    Version: 1.0.0
    Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, responsive-layout, infinite-scroll, post-slider, design, food, journal, magazine, news, photography, portfolio, clean, contemporary, dark, elegant, modern, professional, sophisticated
    Text Domain: twenty-fifteen-child
    */

    a{
    color:yellow;
    }”

  • Hi there,

    This forum is for sites hosted on WordPress.com.

    For help with the self-hosted version of this theme, you can post in the WordPress.org forum:

    https://wordpress.org/support/theme/twentyfifteen

    You’ll need a free WordPress.org account to post – if you don’t already have one, you can register here:

    https://wordpress.org/support/register.php

    Be sure to provide a link to your site when you post so folks can help you more easily.

  • The topic ‘Followed child theme set up step-by-step. Still doesn't work’ is closed to new replies.