How to include Font Awesome icons into ‘menu_icon’ from register_post_type() function – wp admin?

I haven’t found any solution to entirely convert dashicons- class automatically generated into fas fa-…. Having always used fa-solid or fa-regular I didn’t know you could shorten with fas and far. My mistake So I bypassed the style font-family:dashicons; adding: div.wp-menu-image.dashicons-before[class*=”fa”]::before { font-family: “Font Awesome 6 Free” !important; } In theory [class*=”fa”] include fa, fas, … Read more

Blocking Google Fonts in wordpress website

If you check your source code and look for “fonts.” you will find a line that is calling the stylesheet. This could be “googleapis.com” or “google.com or other URL. Here’s how mine looks (using Astra theme); <link rel=”stylesheet” id=’astra-google-fonts-css’ href=”https://fonts.googleapis.com/css?family=Roboto%3A400%2C&#038;display=fallback&#038;ver=4.0.2″ media=”all” /> Make note of the ID (astra-google-fonts-css) and then add the following to your … Read more