Um usuário perguntou ?
Gostaria de saber como eu mudo o estilo da fonte do título do site.
header h2 {
font-family: Arial, sans-serif;
}
header h2 {
font-family: Arial, sans-serif !important;
}
Nada funciona, por quê?
Este tópico foi modificado 2 anos, 2 meses atrás por.
(@ addweb-solution-pvt-ltd)
2 anos, 2 meses atrás
Olá Rebeca,
Insira o código CSS abaixo no arquivo style.css para seu tema filho ativo atual ou você pode adicionar uma opção CSS adicional para personalizar o tema.
header h2 a {
font-family: Arial, sans-serif !important;
font-style: italic;
font-size: larger;
}
Eu espero que isso ajude.
Obrigado.
Esta resposta foi modificada 2 anos, 2 meses atrás por. lançador de tópicos
(@rebeca)
2 anos, 2 meses atrás
Obrigado @addweb-solution-pvt-ltd funcionou! ?
lançador de tópicos
(@rebeca)
2 anos, 2 meses atrás
Não sei se devo criar um novo conteúdo para isso, mas quero usar o Google Font. Eu criei um tema filho.
Eu adicionei o seguinte ao functions.php
function custom_add_google_fonts() {
wp_enqueue_style( 'custom-google-fonts', ' false );
}
add_action( 'wp_enqueue_scripts', 'custom_add_google_fonts' );
funções completas.php
<?php
function my_theme_enqueue_styles() {
$parent_style="parent-style"; // This is 'davis-style' for the Davis theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function custom_add_google_fonts() {
wp_enqueue_style( 'custom-google-fonts', ' false );
}
add_action( 'wp_enqueue_scripts', 'custom_add_google_fonts' );
?>
E em estilo.css
header h2 a {
font-family: Arizonia !important;
font-size: larger;
}
Nada acontece, parece predefinido.
Autor do tópico
(@anlino)
2 anos, 2 meses atrás
Olá @rebeca,
Se você incluir um link para a página em questão, verificarei com a SEC.
–Anders
lançador de tópicos
(@rebeca)
2 anos, 2 meses atrás
Olá @anlino
Infelizmente, não tenho uma página online (ainda não tenho um servidor web). A página está localizada localmente no meu computador.
Meu tema filho é apenas style.css e functions.php
Style.css fica assim:
/*
Theme Name: Davis Child
Theme URI:
Description: Davis Child Theme
Author: Minimalisten
Template: davis
Version: 1.13
License: GNU General Public License v2 or later
License URI:
Tags: blog, one-column, custom-menu, featured-images, post-formats, threaded-comments, translation-ready
Text Domain: davis-child
*/
header h2 a {
font-family: Arizonia !important;
font-size: larger;
}
Obrigado!
Isto foi útil?
0 / 0