wp_dequeue and wp_register DONT WORK (HELP) (hooks/filters)

I’ve spent a whole day trying out wp_dequeue and wp_register code snippets I found everywhere on google to remove certain (unused) portions of woocommerce css tags in the astra theme. And trying to remove whole .css links. All in functions.php. Nothing worked. No effects. What am I doing wrong? Can somebody please help me?


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer