• Hello,

    I tested the follow codes at chrome elements and it is work. But why doesn’t work in child theme? The child theme is currently working fine with other codes:

    .main {
    float: left;
    width: 100%;
    min-height: 500px !important;
    padding:0 0 75px
    }

    (I’m talking about min-height: 500px !important;)

    I have function.php file as follows:

    <?php
    add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', PHP_INT_MAX );
    function theme_enqueue_styles() {
        wp_enqueue_style( 'parent-style', get_template_directory_uri() . 'BookYourTravel/css/style.css' );
        wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/styles/child-style.css', array( 'parent-style' ) );
    }

    I consulted the theme developer but they can’t fix it. So I want to get help from here. Please help and advise what’s wrong.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi cfm168!

    Are you able to share a link to the site?

    What theme are you using and where did you get it from?

    Taking a quick look at the code you shared, appears the parent style may not be loading properly but it is hard to know for sure without looking at the site.

    Thread Starter cfm168

    (@cfm168)

    Hi,

    I am using theme: BookYourTravel
    My site link at: yudooo dot com
    You can see I want to reduce space between footer and the destination 4 images.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS code work at elements test but doesn't work at Child theme’ is closed to new replies.