Minimal child theme does not replicate parent
-
Hi!
I just installed Longform and started to make a child theme for it to make minor adaptations.
I immediately noticed that when I create a child theme, some visual differences occur;
* Type face sizes do not match
* Other type faces are applied
* Widths of elements are not reflecting the original themeWhat I have done so far is to
1: Create a folder named longform-child
2: Create a style.css file containing
/*
Theme Name: My Longform
Theme URI: https://cohhe.com/project-view/longform/
Author: Jonas Hellstr?m
Author URI: https://cohhe.com/
Template: longform
Description: Enhance your story experience, by leveraging the power of Longform WordPress Theme, built especially for telling great stories. It is the only free WordPress theme fully compatible with the Aesop Story Engine.
Version: 1.6.4
License: GNU General Public License v3
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: black, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, sticky-post, theme-options, translation-ready
Text Domain: longformThis theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you’ve learned with others.
*/
3: Create a functions.php file containing
<?php
function 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 )
);
}
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
?>I can’t for the life of me figure out why this very bare child-theme implementation alters the final outcome of the site, especially since I have added 0 modifications.
Am I missing certain steps in the procedure?Thanks in advance
Jonas
- The topic ‘Minimal child theme does not replicate parent’ is closed to new replies.