Home Forums Theme support Cucina – child theme

This topic contains 5 replies, has 2 voices, and was last updated by  7Theme Support 2 years, 8 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Hello,

    I create child-theme for cucina theme, and i have problem with display menu style.

    Please help 🙂

    Yours.
    Pawel

    Hi Pawel,

    can you please concretize the problem? What exactly is not working? Can you send us a link to the page with the problem?

    If I active child-theme menu is low, if I active cucina theme it’s ok 🙂

    Link: http://projekty.wizualside.pl/piramida/

    Yours.
    Pawel

    Found the problem, your child theme css overwrite the custom css commands from the theme options.

    Please change the order of your css files in the header of your child-theme.

    Alternatively you can add this css code at end of the style.css file of your child-theme:

    #brand img {
     margin-top:40px;
     margin-bottom:40px;
    }

    I can’t overwrite css because all code in child style.css is:

    .tagline {
        font-size: 40px !important;
    }

    and, I import parent steelsheet in functions.php:

    function my_theme_enqueue_styles() {
    
        //$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
        $parent_style = 'cucina'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
    
        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 ),
            wp_get_theme()->get('Version')
        );
    }
    add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );

    The header with menu is wrong displays, in child-theme.

    Yours.

    I can’t overwrite css because all code in child style.css is:

    Sorry, I mean the order of your stylesheet files, when you check the source code of your website then you can see the problem. First is loaded the customcss.php file with the settings from the theme options, and AFTER this file parent style.css and child theme style.css. Normally you have to load first parent, then child theme css…

    But I saw that now it’s working…

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.