attempt #2: link acumin font to order label html

This commit is contained in:
Aadil Ayub 2024-06-27 20:34:33 +05:00
parent f1e9f53c41
commit 83e8133d3b
2 changed files with 9 additions and 12 deletions

View File

@ -246,13 +246,3 @@ add_filter(
10,
3
);
// import acumin variable font
function mont58coffee_enqueue_fonts()
{
wp_enqueue_style(
"mont58coffee-fonts",
get_theme_file_uri("/fonts/acumin-variable-concept.css")
);
}
add_action("wp_enqueue_scripts", "mont58coffee_enqueue_fonts");

View File

@ -16,6 +16,14 @@ if(!is_user_logged_in()){
<link href="<?php echo get_theme_file_uri('/fonts/acumin-variable-concept.css') ?>" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<style>
/* acumin-variable-concept */
@font-face {
font-family: Acumin Variable Concept;
font-style: normal;
font-weight: 400;
src: local("Acumin Variable Concept"), local("AcuminVariableConcept"), url(<?php echo get_theme_file_uri('/fonts/acumin-variable-concept.woff2'); ?>) format("woff2");
}
.container {
display: flex;
flex-wrap: wrap;
@ -63,7 +71,6 @@ if(!is_user_logged_in()){
.label .product-details .weight {
text-transform: lowercase;
font-weight: bold;
font-family: sans-serif;
font-size: calc(0.35 * 18px);
}