• Resolved jonosf

    (@jonosf)


    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

Viewing 1 replies (of 1 total)
  • Thread Starter jonosf

    (@jonosf)

    I found the problems and fixed it. I realize now the issues were pretty obvious.

    After activating the child theme I still needed to make some changes to the WP dashboard, as some settings weren’t automatically inherited to the child theme.

    1/ on the customize theme page, i needed to change the Primary Menu option to match the parent theme.

    2/ on the header page, i needed to remove the default image.

    Now, the child theme matches the parent theme.

Viewing 1 replies (of 1 total)

The topic ‘Issue with Child Theme’ is closed to new replies.