Child Theme for TwentyFifteen
-
For the past two weeks I have been trying to update a simple blog from the DEFAULT theme to TWENTYFIFTEEN theme.
The DEFAULT theme works but could use some of the enhancements available in TwentyFifteen
I have not made any code changes to the TwentyFifteen theme
My objective is to have a Header, Main Page and a SideBar on the right side.
The Main Page was created as a POST
The TwentyFifteen theme has a Header,
the Main Page is full width with a border of about 10 characters wide(which I do not want).
The SideBar is below the Main Page ( I want it on the right side).
The creation of a Child theme should allow me modify the size and location of the Main Page and the SideBar.
No matter what I do I cannot modify the anything with the Child theme.
The Style CCS for the theme is (after many attempts to get it right is
/*
Theme Name: Twenty Fifteen Child
Theme URI: https://GreatLakesSmokers.ca/twenty-fifteen-child/
Description: Twenty Fifteen Child Theme
Author: Marvin Recker
Author URI: https://GreatLakesSmokers.ca
Template: twentyfifteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fifteen-child
*/
function child_scripts_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’, array() );
}
body:before { max-width: 413px;}
#sidebar { left: 0;}
#page {margin-left: 0px}The Theme Functions is
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
}The above Child theme modifications were taken of WordPress suggestions
I must be missing something. Any help would be appreciated.
- The topic ‘Child Theme for TwentyFifteen’ is closed to new replies.