Site logo

[Resolved] Built-in CSS editor working but Theme Files Css editor not working

Home Forums Support [Resolved] Built-in CSS editor working but Theme Files Css editor not working

Home Forums Support Built-in CSS editor working but Theme Files Css editor not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2465011
    Masud

    I’m using child theme. I have added some code using Built-in CSS editor and now I want to move all of them to Theme Files Css editor. Everything is fine with Built-in CSS editor. But when I’m moving to Theme Files Css editor, css codes are not working.

    #2465258
    David
    Staff
    Customer Support

    Hi there,

    i can see the Child Theme styles.css loading on the link you provided.

    Which particular CSS is not working ?

    #2465334
    Masud

    There are almost 1000 lines code. Do I need to check every code manually?

    If I copy and paste code from Theme Files Css editor to Built-in CSS editor, every code is working. Then what is wrong with Theme Files Css editor? Is there any rules that some css is only for Built-in CSS editor?

    I have tested some of them, when added !important; to Theme Files Css editor they are working, but in Built-in CSS editor they are working without adding !important;

    #2465840
    David
    Staff
    Customer Support

    No need to check all CSS, i just needed to quickly see what styles were missing, and that image was sufficient.
    The Jobsearch plugin loads numerous stylesheets and a lot of them enqueued after the Child Theme.

    Try adding this PHP snippet:

    
    add_action( 'wp_enqueue_scripts', function() {
        wp_dequeue_style( 'generate-child' );
        wp_enqueue_style( 'generatepress-child', get_stylesheet_uri(), array(), filemtime( get_stylesheet_directory() . '/style.css' ), 'all' );
    }, 999 );

    It should load the GP child style sheet after them.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.