• Hi im using the virtue theme and from mucking around with it a friend told me I should make a child theme before I change anything. He helped set it up for me but all the settings are now all over the place. Is there a quide as to how to setup child theme for virtue?

    Thanks for your help

Viewing 12 replies - 1 through 12 (of 12 total)
  • Can you post a link to your site with the child theme active? Also, WordPress considers the child theme to be a new theme, so you may need to reassign any navigation menus or sidebar widgets.

    Thread Starter Mrgem79

    (@mrgem79)

    Its not active yet and havent got access to it at work. It is the menus that are playing up. They are jumped all over the place.

    How do you reassign? Im still learning all this so apologies for my lack of knowledge. Do you mean just reset all the menus I had already setup and just resave?

    Thanks

    I have the same issue. I created a child theme, and no matter what I do to the child page (i.e., “page-header.php” — simply commenting out the H1 header, for example, doesn’t work. HELP.

    In the child directory “virtue-child” I have 3 files.
    functions.php
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
    function enqueue_parent_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
    }
    ?>

    style.css

    /*
    Theme Name: Virtue Child
    Theme URI: https://crhmaui.com/virtue-child/
    Description: Child
    Author: Virtue
    Author URI:
    Template: virtue
    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: virtue-child
    */

    and page-header.php

    <div class=”page-header”>
    <h1>
    <?php //echo kadence_title();// ?>
    </h1>
    <?php global $post;
    if(is_page()) {$bsub = get_post_meta( $post->ID, ‘_kad_subtitle’, true ); if($bsub != ”) echo ‘<p class=”subtitle”> ‘.__($bsub).’ </p>’; }
    else if(is_category()) { echo ‘<p class=”subtitle”>’.__(category_description()).’ </p>’;}
    ?>
    </div>

    The headline still appears…

    And, yes, I have the Virtue Child theme activated.

    https://crhmaui.com/wp/

    Child-theme page has title commented out, but still shows up. When I comment it out in the Parent theme, it is removed, so it seems the child theme is not being read for some reason..?

    Thread Starter Mrgem79

    (@mrgem79)

    Wow nice site setout. The non child theme haha. I have a header logo and menus across under the logo. But once child theme is activated the menu gets thrown into topbar section. And as a dropdown menu

    Mrgem79, I think if you select “Customize” in the Dashboard Nav, then Select “Navigation”, you can deselect or select where you wish your menu to appear.

    @tkl2015: Can you please make a separate thread for your issue?

    @mrgem79: As was mentioned, you can assign menus to your child theme the same way you did before: Dashboard > Appearance > Menus > Manage Locations. But from the way you’ve described your issue, it’d be really helpful to see your site if possible.

    Thread Starter Mrgem79

    (@mrgem79)

    Yes thanks that worked. All the menu structure and widget structure for the footers were reset. So just had to reassign them. Its to hard to work on it using phone. So will test it all out tonight on computer. Thanks for all your help

    Have created a new thread…thought this was similar enough, but apparently not.

    TKL2015, where did you post?

    I don’t see it in the virtue thread.

    either way when you copied page-header.php into the child theme did you make sure to place it in a folder called templates?

    Kadence Themes

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Child theme not working’ is closed to new replies.