Site logo

Archived topic

Built-in CSS editor working but Theme Files Css editor not working

3 replies · Started by Masud on December 17, 2022

Viewing posts 1–4 of 4

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.

Hi there,

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

Which particular CSS is not working ?

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;

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.

This archived topic is closed to new replies.