• Hi

    I’ve made a child theme for your theme Nisarg and I have some problems with, no sidebar, problem with “bootstrap.css”, etc.

    For example, for my top-menu : if I’m using your theme, my menu is on the right but as soon as I’m using my child-theme, the menu is floating “left”.

    I do not now how to fix it ? Do you have any idea ?

    Problem example :

    using your theme >> .navbar-nav {float : right} via style.css:524

    using my child theme >> .navbar-nav { float: left } which is loaded via bootstrap.css:4403 @media (min-width: 768px);

    My child theme has style.css and function.php where I’m using :
    wp_enqueue_style (‘parent-style’, get_template_directory_uri() . ‘/style.css’);

Viewing 2 replies - 1 through 2 (of 2 total)
  • I ran into the same problem!

    I solved it by using the functions.php code from this guide: https://themify.me/docs/child-themes

    <?php
    /**
    * Enqueues child theme stylesheet, loading first the parent theme stylesheet.
    */
    function themify_custom_enqueue_child_theme_styles() {
        wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'themify_custom_enqueue_child_theme_styles', 11 );

    @jaschlitz thx .. this solved my problem, too. the loading position of the add_action is the solution ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Child Theme’ is closed to new replies.