Un usuario pregunt贸 馃憞
Estimado desarrollador de plugins: 隆Muchas gracias por un jugador tan hermoso! Pero not茅 que el plugin ralentiza mi sitio. 驴Se pueden incrustar iconos de contenido? Tom茅 una decisi贸n provisional, pero esta no es muy conveniente:
add_action( 'wp_enqueue_scripts', function () {
if ( !is_page ('462') ) {
wp_dequeue_style( 'karma-by-kadar-google-fonts' );
}
});
Por supuesto, ser铆a genial si los scripts y estilos no estuvieran conectados justo donde se encuentra el reproductor. 隆Gracias de nuevo por el plugin! 隆Decora mi sitio!
!!! La ralentizaci贸n del sitio no es muy significativa, pero a煤n se nota.
Este tema fue modificado hace 1 a帽o, 9 meses por.
(@zabavljaev)
Hace 1 a帽o, 9 meses
驴Quiz谩s solo contribuyes a master.css? Despu茅s de todo, solo necesitas 3 iconos.
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}
Aqu铆 el c贸digo no es mucho menos
function karma_by_kadar_fonts_url() {
$font_url = '';
if ( 'off' !== _x( 'on', 'Google font: on', 'karma-by-kadar' ) ) {
$font_url = add_query_arg(
'family',
urlencode( 'Material Icons' ),
"//fonts.googleapis.com/css"
);
}
return $font_url;
}
wp_enqueue_style( 'karma-by-kadar-google-fonts', karma_by_kadar_fonts_url(), array(), '1.0.0' );
Y luego su reproductor incluso funcionar谩 en un servidor local)) 隆Muy hermoso reproductor! Y es muy agradable que te guste la Novena Sinfon铆a de Beethoven.
Esta respuesta fue modificada hace 1 a帽o, 9 meses por. Esta respuesta fue modificada hace 1 a帽o, 9 meses por. Esta respuesta fue modificada hace 1 a帽o, 9 meses por.
驴Solucion贸 tu problema??
0 / 0