Issue with Child Theme
-
I wanted to change the order of multiple selected “Home Page Categories” from the default alphabetized order that is set in the Leaf Theme Options.
So, i created a leaf-child theme.
In the child theme, i copied the existing home.php page, and made the following change after line 96<?php $categories = (!empty($options['leaf_home_cats'])) ? ($options['leaf_home_cats']) : ''; ?>I added
<?php $categories = array('14','1020'); ?>
which will then display those categories. The number values can be found when you view the links in the Categories dashboard page.This change works fine, but when I activate the chlid theme:
1/ I lose my custom site title and tagline. Instead, the site displays
title: Leaf
tagline: WordPress Theme.2/ My top nav bar loses its customizations.
I did create a leaf-child style.css page with the following:
/* Theme Name: Leaf Child Description: Leaf Child Theme Template: leaf */ @import url("../leaf/style.css"); /* =Theme customization starts here -------------------------------------------------------------- */Can anyone explain why the child theme is not working properly?
thanks,
Jon
The topic ‘Issue with Child Theme’ is closed to new replies.
