Astra utiliza hermosos iconos de fuentes internamente en el encabezado, pie de página y otras secciones. Verás iconos de fuentes como flechas, hamburguesa, búsqueda, cuenta, carrito y así sucesivamente.
Estos iconos de fuente utilizados para cargar desde el archivo astra.woff.
Con la versión 3.3 de Astra, estos iconos de fuentes se sustituyen por SVG. Los iconos SVG son más ligeros y se ven mejor en todos los dispositivos.
La sustitución de los iconos de fuentes Astra por iconos SVG puede aumentar la velocidad de carga de la página en 29 ms y reducir aproximadamente 12,5% parte de la carga de la página.
Users who are starting using Astra after version 3.3.0, can directly get icons in SVG format.
Users who are updating Astra from previous versions to v3.3.0, would need to use the following filter in order to replace font icons with SVG.
Aquí hay un código que puede pegar en el archivo functions.php del tema hijo.
add_filter( 'astra_is_svg_icons', '__return_true' );
Nota: It’s recommended to create a child theme to avoid losing customizations when the parent theme updates.
This by using this filter, you can take advantage of the performance and display benefits of SVG icons in your Astra theme.