• freeriders88

    (@freeriders88)


    Greetings

    I am back to WP after a long sleeping period

    I am playing with onepress template and I make a child theme to modify it

    it was my understanding that child theme style.css was over writing the parent style.css but here it does not seems to work this way

    onepress call the stylesheet by registering on the enque this way

    wp_enqueue_style( 'onepress-style', get_template_directory_uri().'/style.css' );

    and my own child theme style.css does not even show up in my source

    I just want to overright a few classes there

    what is the best practice ?

    unqeue the one press stylesheet with

    wp_dequeue_style( 'onepress-style' );
       wp_deregister_style( 'onepress-style' );

    qeue my own style sheet with
    wp_enqueue_style( 'newsite-style', get_stylesheet_uri() );

    and then in my own stylesheet have on top
    @import url("../onepress/style.css");

    OR

    keep the onepress stylesheet queued and just queue my own one with
    wp_enqueue_style( 'newssite-style', get_stylesheet_uri() );

    Thank you very much for your guidance

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

The topic ‘Child theme and style.css’ is closed to new replies.