Dequeue parent style that is enqueued with get_template_directory_uri()
-
Hi,
I am building a child theme for the Twenty Twenty-One theme. The child theme style.css is modified and compiled from the SASS of the parent theme. Therefore, I would like to load the child theme’s style.css only. This does not seem to work.
The parent theme loads its style sheet using
get_template_directory_uri()
, which is probably the reason for the problem: I don’t seem to be able to dequeue the parent style via the usual way. Both style sheets are loaded, I can only influence the order (which is not really useful :-)).Is there a best (or better :-)) practice to dequeue a parent style when it is loaded using
get_template_directory_uri()
?Thanks!
- The topic ‘Dequeue parent style that is enqueued with get_template_directory_uri()’ is closed to new replies.