refactor: Rename fonts to Fonts (PascalCase consistency)
- Rename Assets/fonts/ to Assets/Fonts/ - Update all references in PHP and CSS files - Consistent with Css, Js, Vendor naming 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -27,21 +27,21 @@
|
|||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Poppins';
|
font-family: 'Poppins';
|
||||||
src: url('/wp-content/themes/roi-theme/Assets/fonts/poppins-v24-latin-regular.woff2') format('woff2');
|
src: url('/wp-content/themes/roi-theme/Assets/Fonts/poppins-v24-latin-regular.woff2') format('woff2');
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Poppins';
|
font-family: 'Poppins';
|
||||||
src: url('/wp-content/themes/roi-theme/Assets/fonts/poppins-v24-latin-600.woff2') format('woff2');
|
src: url('/wp-content/themes/roi-theme/Assets/Fonts/poppins-v24-latin-600.woff2') format('woff2');
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Poppins';
|
font-family: 'Poppins';
|
||||||
src: url('/wp-content/themes/roi-theme/Assets/fonts/poppins-v24-latin-700.woff2') format('woff2');
|
src: url('/wp-content/themes/roi-theme/Assets/Fonts/poppins-v24-latin-700.woff2') format('woff2');
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Poppins';
|
font-family: 'Poppins';
|
||||||
src: url('../fonts/poppins-v24-latin-regular.woff2') format('woff2');
|
src: url('../Fonts/poppins-v24-latin-regular.woff2') format('woff2');
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Poppins';
|
font-family: 'Poppins';
|
||||||
src: url('../fonts/poppins-v24-latin-500.woff2') format('woff2');
|
src: url('../Fonts/poppins-v24-latin-500.woff2') format('woff2');
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
@@ -91,7 +91,7 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Poppins';
|
font-family: 'Poppins';
|
||||||
src: url('../fonts/poppins-v24-latin-600.woff2') format('woff2');
|
src: url('../Fonts/poppins-v24-latin-600.woff2') format('woff2');
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Poppins';
|
font-family: 'Poppins';
|
||||||
src: url('../fonts/poppins-v24-latin-700.woff2') format('woff2');
|
src: url('../Fonts/poppins-v24-latin-700.woff2') format('woff2');
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
|
|||||||
@@ -353,25 +353,25 @@ function roi_preload_critical_resources() {
|
|||||||
// Regular (400) - texto del body
|
// Regular (400) - texto del body
|
||||||
printf(
|
printf(
|
||||||
'<link rel="preload" href="%s" as="font" type="font/woff2" crossorigin>' . "\n",
|
'<link rel="preload" href="%s" as="font" type="font/woff2" crossorigin>' . "\n",
|
||||||
esc_url( $theme_uri . '/Assets/fonts/poppins-v24-latin-regular.woff2' )
|
esc_url( $theme_uri . '/Assets/Fonts/poppins-v24-latin-regular.woff2' )
|
||||||
);
|
);
|
||||||
|
|
||||||
// Medium (500) - usado en algunos elementos
|
// Medium (500) - usado en algunos elementos
|
||||||
printf(
|
printf(
|
||||||
'<link rel="preload" href="%s" as="font" type="font/woff2" crossorigin>' . "\n",
|
'<link rel="preload" href="%s" as="font" type="font/woff2" crossorigin>' . "\n",
|
||||||
esc_url( $theme_uri . '/Assets/fonts/poppins-v24-latin-500.woff2' )
|
esc_url( $theme_uri . '/Assets/Fonts/poppins-v24-latin-500.woff2' )
|
||||||
);
|
);
|
||||||
|
|
||||||
// Semibold (600) - headings y elementos destacados
|
// Semibold (600) - headings y elementos destacados
|
||||||
printf(
|
printf(
|
||||||
'<link rel="preload" href="%s" as="font" type="font/woff2" crossorigin>' . "\n",
|
'<link rel="preload" href="%s" as="font" type="font/woff2" crossorigin>' . "\n",
|
||||||
esc_url( $theme_uri . '/Assets/fonts/poppins-v24-latin-600.woff2' )
|
esc_url( $theme_uri . '/Assets/Fonts/poppins-v24-latin-600.woff2' )
|
||||||
);
|
);
|
||||||
|
|
||||||
// Bold (700) - títulos principales
|
// Bold (700) - títulos principales
|
||||||
printf(
|
printf(
|
||||||
'<link rel="preload" href="%s" as="font" type="font/woff2" crossorigin>' . "\n",
|
'<link rel="preload" href="%s" as="font" type="font/woff2" crossorigin>' . "\n",
|
||||||
esc_url( $theme_uri . '/Assets/fonts/poppins-v24-latin-700.woff2' )
|
esc_url( $theme_uri . '/Assets/Fonts/poppins-v24-latin-700.woff2' )
|
||||||
);
|
);
|
||||||
|
|
||||||
// Bootstrap Icons font
|
// Bootstrap Icons font
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ add_action('wp_head', function() {
|
|||||||
|
|
||||||
foreach ($critical_fonts as $font) {
|
foreach ($critical_fonts as $font) {
|
||||||
printf(
|
printf(
|
||||||
'<link rel="preload" href="%s/Assets/fonts/%s" as="font" type="font/woff2" crossorigin>%s',
|
'<link rel="preload" href="%s/Assets/Fonts/%s" as="font" type="font/woff2" crossorigin>%s',
|
||||||
esc_url($theme_url),
|
esc_url($theme_url),
|
||||||
esc_attr($font),
|
esc_attr($font),
|
||||||
"\n"
|
"\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user