Correct way of Enqueue self hosted fonts in sass project

I think the better way would be declaring a file named _fontface.scss and put the below code blocks there – @mixin fontFace($family,$src,$style: normal,$weight: normal) { @font-face { font-family: $family; src: url(‘#{$src}.eot’); // IE9 compat src: url(‘#{$src}.eot?#iefix’) format(’embedded-opentype’), // IE8 and below url(‘#{$src}.woff’) format(‘woff’), // standards url(‘#{$src}.ttf’) format(‘truetype’), // Safari, Android, iOS url(‘#{$src}.svg##{$family}’) format(‘svg’); // legacy … Read more

Why am I losing image quality on my site?

You have not explained what kind of code changes you did in functions.php but the code you should put in your functions.php is function jpeg_quality_controller( $quality, $context ) { return 100; } add_filter( ‘jpeg_quality’, ‘jpeg_quality_controller’, 10, 2 ); But this solution will not make any changes to already uploaded image files. Delete already uploaded images … Read more