Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Como alterar facilmente o tamanho da fonte no WordPress

Nota editorial: Ganhamos uma comissão de links de parceiros no WPBeginner. As comissões não afetam as opiniões ou avaliações de nossos editores. Saiba mais sobre Processo editorial.

Deseja alterar o tamanho da fonte em suas postagens ou páginas do WordPress?

Às vezes, talvez você queira aumentar o tamanho de uma linha ou de um parágrafo, ou talvez queira aumentar o tamanho da fonte em toda a página.

Neste artigo, mostraremos como alterar facilmente o tamanho da fonte em publicações e temas do WordPress.

How to change font size in WordPress

Por que alterar o tamanho da fonte no WordPress?

Ao alterar o tamanho da fonte no seu site WordPress, você pode melhorar a legibilidade do conteúdo e facilitar a leitura pelos usuários.

Além disso, aumentar o tamanho da fonte também pode ajudá-lo a destacar informações importantes em seu blog do WordPress.

Por exemplo, se estiver exibindo um produto de afiliado em seu site, aumentar o tamanho da fonte pode ajudar a tornar o produto mais visível. Isso também pode tornar o conteúdo mais legível para os visualizadores que acessam o site por meio de dispositivos móveis.

Dito isso, vamos ver como alterar facilmente o tamanho da fonte no WordPress.

Para este tutorial, discutiremos vários métodos, portanto, você pode usar os links abaixo para ir para o método de sua escolha:

Tutorial em vídeo

Subscribe to WPBeginner

Se você preferir instruções por escrito, continue lendo.

Método 1: Alterar o tamanho da fonte usando cabeçalhos

Se estiver procurando uma maneira fácil de alterar o tamanho da fonte usando cabeçalhos, este método é para você.

Usar títulos em seu conteúdo é uma ótima maneira de chamar a atenção do usuário com uma fonte de tamanho maior.

Na maioria dos temas do WordPress, os títulos têm uma fonte maior do que o texto normal do corpo, o que permite dividir seus posts e páginas em seções.

Os títulos também são ótimos para melhorar o SEO do site, pois os mecanismos de pesquisa dão mais peso aos títulos adequados do que ao texto normal do parágrafo.

Como adicionar um título no editor de blocos padrão do WordPress

Primeiro, você precisa abrir um novo post ou página no editor de blocos do WordPress.

Quando estiver lá, clique no botão “Add Block” (+) no canto superior esquerdo da tela para abrir o menu de blocos.

A partir daí, você deve localizar e adicionar o bloco Heading à página/post.

Add the heading block

Por padrão, o bloco será definido como Título 2.

Se estiver adicionando um subtítulo, faz sentido usar a opção “Título 2”.

No entanto, se você quiser alterar isso, basta clicar no menu suspenso “H2” para selecionar um tamanho diferente.

Change heading from h2

Como alternativa, você também pode alterar o tamanho do cabeçalho usando as configurações de bloco no painel direito da tela.

Você pode até mesmo personalizar a cor do título, a aparência, as letras maiúsculas e minúsculas e muito mais.

Quando terminar, não se esqueça de clicar no botão “Update” (Atualizar) ou “Publish” (Publicar) para armazenar suas configurações.

Heading settings

Como adicionar um título no antigo editor clássico

Se você ainda estiver usando o antigo editor clássico do WordPress, poderá adicionar títulos usando o menu suspenso Parágrafo.

Primeiro, selecione o texto que deseja transformar em um título usando o mouse.

Em seguida, clique no menu suspenso “Parágrafo” no canto superior esquerdo e selecione o tamanho do título. Agora você alterou com êxito o tamanho da fonte para um título.

Choose heading in classic editor

No entanto, lembre-se de que o editor clássico não permite que você altere os tamanhos e as cores das fontes dos diferentes estilos de título.

Se quiser fazer isso, você precisará fazer alterações na folha de estilo do tema (style.css).

Por fim, basta clicar no botão “Atualizar” ou “Publicar” para salvar suas alterações.

Método 2: Alterar o tamanho da fonte do texto no Block Editor

Se você quiser alterar o tamanho da fonte do texto no bloco Parágrafo, este método é para você.

Primeiro, você precisa abrir uma página/post existente no editor de blocos do Gutenberg.

Quando estiver lá, clique em qualquer bloco de parágrafo e, em seguida, alterne para a guia “Styles” (Estilos) no painel de blocos no lado direito da tela.

A partir daí, você deve escolher um tamanho de fonte na seção “Typography” (Tipografia).

Change the font size

Você pode selecionar a opção Small, Medium, Large ou Extra Large de acordo com suas necessidades.

Se quiser alterar o texto de volta para o tamanho original, também é possível fazer isso clicando no menu de três pontos ao lado da seção “Typography” (Tipografia).

Isso abrirá um novo menu suspenso no qual você deverá clicar na opção “Reset”.

Reset font size

Além disso, você também pode adicionar letras maiúsculas, letras maiúsculas, espaçamento, aparência e muito mais usando o mesmo menu suspenso.

Depois disso, basta clicar no botão “Atualizar” ou “Publicar” para armazenar suas alterações.

Lembre-se de que essas opções não estão disponíveis no editor clássico mais antigo do WordPress. Se você quiser usá-las, pense em fazer a mudança.

Método 3: Alterar o tamanho da fonte usando um plug-in

Se você quiser alterar o tamanho da fonte usando um plug-in, poderá usar esse método.

Primeiro, você precisa instalar e ativar o plug-in Advanced Editor Tools. Para obter instruções detalhadas, consulte nosso guia para iniciantes sobre como instalar um plug-in do WordPress.

Após a ativação, o plug-in oferece mais controle sobre os tamanhos das fontes e a formatação do texto, além de uma série de outros recursos. Ele adiciona um novo bloco “Parágrafo clássico” que tem todos os recursos de formatação de sua escolha.

Após a ativação, vá para a página Configurações ” Ferramentas avançadas do editor na barra lateral do administrador do WordPress.

Uma vez lá, você pode arrastar e soltar facilmente os recursos de formatação da seção “Botões não utilizados” para o bloco “Parágrafo clássico”.

Esses recursos incluem tamanho da fonte, família da fonte, cópia, subscrito, emoticons, código-fonte e muito mais.

Add the font size field

Depois de fazer isso, role para baixo até a seção “Options” (Opções) e marque a opção “Font Sizes” (Tamanhos de fonte) para acessar um número maior de tamanhos de fonte.

Depois disso, basta clicar no botão “Save Changes” (Salvar alterações) para armazenar suas configurações.

Add more font sizes

Se estiver usando o plug-in com o editor clássico, será necessário alternar para a guia “Editor clássico” na parte superior da página.

Quando estiver lá, você precisará executar as mesmas ações que no editor de blocos.

Advanced editor tools classic editor font size

Certifique-se de clicar no botão “Salvar alterações” depois de fazer suas alterações.

Agora, para ver o plug-in em ação, você deve abrir uma página/post novo ou existente no painel do WordPress.

Quando estiver lá, clique no botão “Add Block” (+) no canto superior esquerdo da tela para abrir o menu de blocos.

A partir daí, localize e adicione o bloco Parágrafo clássico à página.

Add the classic paragraph block to the page

Agora você pode usar o menu suspenso “Font Sizes” (Tamanhos de fonte) para alterar o tamanho do texto no bloco “Classic Paragraph” (Parágrafo clássico).

Por fim, clique em “Atualizar” ou “Publicar” para salvar suas configurações de postagem ou página.

Font size field

Método 4: Alterar o tamanho da fonte em todo o site usando o WPCode

Se você quiser alterar o tamanho da fonte em todo o site, esse método é para você.

Você pode alterar facilmente o tamanho da fonte em todo o site adicionando código CSS ao seu site usando o WPCode.

É o melhor plugin de snippet de código para WordPress do mercado, que torna muito fácil e seguro adicionar código ao seu site.

Primeiro, você precisa instalar e ativar o plug-in WPCode. Para obter instruções detalhadas, consulte nosso guia passo a passo sobre como instalar um plug-in do WordPress.

Após a ativação, vá até a página Code Snippets ” + Add Snippet na barra lateral do administrador do WordPress.

Uma vez lá, clique no botão “Use Snippet” na opção “Add Your Custom Code (New Snippet)”.

Add new snippet

Isso o levará à página “Create Custom Snippet” (Criar snippet personalizado), onde você pode começar dando um título ao seu snippet de código.

Depois disso, selecione a opção “CSS Snippet” no menu suspenso “Code Type” (Tipo de código) no canto direito da tela.

Observação: a opção “CSS Snippet” está disponível apenas no plug-in WPCode premium. No entanto, se você estiver usando a versão gratuita, poderá selecionar a opção “Universal Snippet”.

Choose CSS Snippet for font size code

Em seguida, copie e cole o seguinte código CSS personalizado na caixa “Code Preview” (Visualização de código):

p {
font-size:16px;
}

Depois de fazer isso, basta adicionar o tamanho de texto desejado ao lado da linha “font-size” no código CSS.

Ele deve ter a seguinte aparência.

Paste font size code

Depois disso, role para baixo até a seção “Insertion” (Inserção) e escolha o modo “Auto Insert” (Inserção automática).

Seu código será executado automaticamente em seu site após a ativação.

Choose an insertion method

Por fim, role de volta para a parte superior da página e alterne o botão “Inativo” para “Ativo”.

Depois disso, clique no botão “Save Snippet” para executar seu código.

Save font size code

Agora você alterou com êxito o tamanho da fonte em seu site WordPress.

Bônus: Alterar a cor do texto no WordPress

Além do tamanho, talvez você também queira alterar a cor do texto em seu site para tornar o conteúdo mais legível e visualmente atraente. Isso também pode aprimorar sua marca e ajudar a destacar informações importantes.

Para alterar a cor do texto, você deve abrir uma postagem de blog no editor de blocos e escolher um bloco de parágrafo. Depois de fazer isso, vá para a guia “Styles” (Estilos) no painel de blocos e clique na opção “Text” (Texto).

Isso abrirá a ferramenta de seleção de cores, na qual você poderá selecionar uma cor de texto de sua preferência para o conteúdo.

Change text colors

Se você quiser alterar as cores do texto em todo o site, poderá usar o WPCode, que é o melhor plug-in de snippet de código do WordPress no mercado.

Após a ativação, basta acessar a página Code Snippets ” + Add Snippet na barra lateral de administração do WordPress e clicar em ‘Use Snippet’ na opção ‘Add Your Custom Code’.

Isso o levará à página “Create Custom Snippet” (Criar snippet personalizado), onde você deve selecionar “CSS Snippet” como o tipo de código e, em seguida, copiar e colar o seguinte código na caixa “Code Preview” (Visualização de código):

p { color:#990000; }

Se você quiser usar uma cor diferente para os cabeçalhos do seu site, precisará usar os seletores h1, h2, h3 ou similares.

Changing the text color using custom code

Por fim, clique no botão “Save Snippet” (Salvar snippet) e alterne a opção “Inactive” (Inativo) para “Active” (Ativo).

Agora você alterou com êxito a cor do texto em todo o seu site. Para obter instruções detalhadas, consulte nosso tutorial sobre como alterar a cor do texto no WordPress.

Esperamos que este artigo tenha ajudado você a aprender como alterar facilmente o tamanho da fonte no WordPress. Talvez você também queira ver nosso guia sobre como usar fontes personalizadas no WordPress ou nossa lista dos melhores plug-ins de arrastar e soltar do construtor de páginas do WordPress.

Se você gostou deste artigo, inscreva-se em nosso canal do YouTube para receber tutoriais em vídeo sobre o WordPress. Você também pode nos encontrar no Twitter e no Facebook.

Divulgação: Nosso conteúdo é apoiado pelo leitor. Isso significa que, se você clicar em alguns de nossos links, poderemos receber uma comissão. Veja como o WPBeginner é financiado, por que isso é importante e como você pode nos apoiar. Aqui está nosso processo editorial.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

O kit de ferramentas definitivo WordPress

Obtenha acesso GRATUITO ao nosso kit de ferramentas - uma coleção de produtos e recursos relacionados ao WordPress que todo profissional deve ter!

Reader Interactions

177 ComentáriosDeixe uma resposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. sutarmaji says

    Thank you. Your explanation is clear. But, I cannot apply it to my editing activities. In my Block Editor and Classic Editor, there is no font size dropdown menu. It’s frustating. Can you help me?

  3. sarah says

    Hi there,

    thanks for this tutorial. I was trying to do the fourth method and wanted to change my H2 size. I copy and pasted the code into my custom CSS but when I change the px value nothing happens. The Size doesn’t change. Very annoying :O

    • WPBeginner Support says

      You may need to check with your theme’s support in case they are overriding your CSS

      Administrador

  4. David Johnson says

    In the new wordpress block editor, regardless of whether I give it a H1 or H4 heading, it doesn’t change the size of the font at all. Sure, in the editor the size changes, but when I publish, there is no size change for what the public sees.

    • WPBeginner Support says

      Your theme may have styling for your headings that make the text look the same. You would either want to edit it with CSS or reach out to your theme’s support.

      Administrador

  5. Jran says

    Hi, is there a way to set/change defaults with the Classic paragraph editor? So for example if you wanted each block of text to have size 14 in Book Antiqua, is there a way to keep as a preset instead of having to manually change every block or even line?

    • WPBeginner Support says

      For what you’re wanting, you would likely need to use the CSS method from this article to set the text how you’re wanting.

      Administrador

  6. Leslie Limardo says

    Hi there,
    I have the tiny mce advanced plugin. I added the font size to the selection but when i go to my pages, but doesn’t appear and I’ve clicked through all the options and don’t see where else to add it.

    • WPBeginner Support says

      You will likely need to reach out to your specific theme’s support and they should be able to assist with what could be preventing the changes.

      Administrador

  7. Yoshiko says

    Hello. Thanks for the posting. I have one question. If I want to enlarge a couple of words in one block, how can I do it?

    • WPBeginner Support says

      You would likely need to edit the paragraph using HTML to manually add the text changes to specific sections.

      Administrador

  8. Vaibhavi says

    Thank you so much for this! I was afraid I’d have to buy a premium theme to make such small changes. This helped tons! :)

  9. tonyalee says

    This was so helpful! The font on my site was so small. Quick question, is there a way to do this for lists in the block editor? I noticed they are still the same size after adding the code to my css editor.

  10. M Santimi says

    Thanks for being a reliable source of factual information pertaining to wordpress.

    Would appreciate an easy way to change light grey fonts to a more easily readable black.

  11. Susan Narayan says

    Nice video, but I was looking for a way to decrease the size of the font in my post title. Any resources you could direct me to?
    Thank you.

  12. mod says

    Hi, I want to change the default wordpress font size. I tried to add it in additional css. But it did not work. Please suggest me what to do. Thanks

  13. Ryan G. Cullen says

    I want to add a tiny text at the right size of image like a source link refer to image from…

    Help me how can I do this?

  14. Habib Khan says

    Hey,
    I was confused about the size of font. What is the size of font you are using in wpbeginner

    Either way, Your articles are best keep it up!

    Cheers,
    Habib

  15. Elise says

    Hello!
    I tried to change the font sizes (body+headings) in CSS but wasn’t successful;

    Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP.

    What should I do? Your comments would be greatly appreciated ☺️

    • WPBeginner Support says

      It would depend on where you are adding the code, are you under Appearance>Customize>Additional CSS?

      Administrador

  16. Victor says

    With the new version of WordPress, this does not work. I am not sure why the article lists as 4/19 because some comments are a lot older.

    • WPBeginner Support says

      The date updates even if we edit out typos, these methods should work with the classic editor and for the block editor, there is the option to change the font size in the paragraph’s block settings.

      Administrador

  17. Radoslav says

    My theme is Sydney The articles’ titles are too big in mobile. Is there a way to change them without coding and without plugins. I use Elementor.

    • WPBeginner Support says

      If you’re using Elementor, then it should have options to change the font size in the design options for what you’re using to display the post. If you’re not customizing your layout with Elementor it would require CSS or reaching out to the theme’s support.

      Administrador

  18. john felicetti says

    I want to change the site title font on my self-hosted wordpress site and cannot get a simple answer as to how to do that. can you help?

  19. Jim says

    In the video, at 28 seconds, the editor is shown. There are all kinds of tools in the button bar.

    My dashboard doesn’t have that editor. There are, in fact, no buttons at all, just a text box with giant text in it.

    So, how do I get access to a real editor like you have?

    Jim

  20. Keith Brian Johnson says

    What if you want to make the title smaller but the tagline bigger? Being able to dictate fonts and sizes of text in posts is great, but how about the title and tagline?

    • Darlene says

      My old WP theme appears to have coded Heading 1 in 12 pt font like normal text. I manually change each heading to 14 pt. But then the coding doesn’t say “h1” which Google robots look for. If I use your plugin(which is cool) and change heading font sizes, will they still be labeled h1, h2, h3? Also, I don’t want to change fonts on pages already customized. Can I apply the plugin to blog posts only? Thanks.

  21. Danny says

    The use of px (or pt) in this Guide is not recommendable, because on small Screens like on Smartphones the font size is very small. Its better to use em.

  22. Andrew Oliver says

    I want to enlarge Excel spreadsheets in my posts. I snip them and upload them via Add Media. But I don’t see a way to increase the font size of these uploads.
    So…. I increased the font size in my spreadsheet and then snipped and uploaded the spreadsheet with the larger font – but it still appears as the original size.
    Is there any way to increase the font size in the post as it currently is too small to be easily read (there are several columns in my spreadsheet)?

    • WPBeginner Support says

      Hi Andrew,

      We are not sure we fully understand your question. If you are uploading your spreadsheet as an image file, then its dimensions will depend on your post container. Let’s suppose your post container or content area is 600px wide, then your theme will automatically shrink the image to fit in the container. You can also try selecting full size image before inserting it into your post.

      Administrador

      • Mylene says

        Hi, thanks for sharing, very useful indeed. Is there a way to also adjust the font size of the title, or maybe better done in CSS (and if so, how)? thanks again!

  23. jackson says

    I use tinymcv plugin to change the font size. but when i press enter and go to the next line the font size will be default value which is 9pt. How can I change the default value to 12pt.

  24. jitendra says

    Thanks for the post. But I want to know more… I want to make the bigger size of some special word in a sentence without any plugin. Special words in a sentence. e.g. we are doing in MS word. Can it possible? Hope your answer.

    • Pragati kumar sheel says

      Hi jitendra to do that open your text editor.

      and type “font-size: 120%;”

      For example:

       Your text

      You can change the font % by any value. I hope it will help you.

  25. Brady says

    Thanks for the video and info, but I can’t change single lines of font sizes when writing a blog post.
    In Visual Editor when I select “Heading 1” or “Heading 2” it changes the entire entry, but I only need to change that one line. I have to double space to make that happen without changing everything else. But then the spacing is wrong because it doesn’t need to be double spaced. Please help. And is there any other way to change font by font size (11, 12, 14, etc) instead of the preselected “Heading 1” “Heading 2”, etc.? Because TinyMCE didn’t work for me. Thanks!

  26. veonescu ghe says

    What are you talking about, WordPress? Just make a simple option to increase the font size! Not widgets that don’t work with some themes or they work for one paragraph etc. Because the Paragraph tab give either too small a font, or weirdly formatted, hard to read. Why is it so hard to just add an option to increase the size wit a button?…

    • Theresa says

      Not kidding. This should not be this difficult. Every time I hit return it reverts back to the original size. Do I really have to select the font size for every single paragraph?

  27. Anna says

    Hi, first of all thank you for all the knowlege available on this site. It’s great !
    I followed instructions from this article, but I still can’t change to font size in headers. I installed both TinyMCE and Google fonts. I am able to change font styles but not the size.

    Thank you,
    Anna

  28. Chidi Anslem says

    Thanks for this great post. It worked for me. I can now edit font family, change font size, underline text, highlight text and even insert table. Thanks.

  29. Philip says

    I just updated my site and theme. I am having a weird issue of my woocommerce product titles having bigger fonts than they were before updates. i have tried custom css from other forums and wondering if maybe I can get an option here.. Kindly advise.

    • WPBeginner Support says

      Hey Philip,

      Have you tested your website with different browsers and devices to make sure that it is not an issue with your browser settings. After that try reaching out to your theme developer, they will be able to tell you whats changed in the new version or if there is a better way to solve this issue.

      Administrador

  30. Thomas says

    Is there a simple way to set a new default font size in WP?
    I have been manually setting to a larger font to improve readability but the theme doesn’t like it and tends to revert back to default whenever I press ENTER and also the paragraph headings don’t work when I’m inside text with the new size.
    I’d have thought this would have been one of the first features to include in WP themes. The current default font is very small and I find it hard to read.
    Thanks, Thomas.

    • WPBeginner Support says

      Hi Thomas,

      You can go to Appearance » Customize and click on the Additional CSS tab.

      Then in the CSS box on the left panel, add this CSS at the end of whatever text/code you see there.

      body { 
      font-size:16px; 
      }
      

      You will see font size change in the live preview. Don’t forget to click on the ‘Save & Publish’ button on top.

      Administrador

      • Marcia says

        This is so ridiculous and why I’m having a hard time with WP. It should be just as Word. You highlight the text and select from 100’s of fonts. Why does WP make this so difficult for the lay person? Can this not be changed?

Deixe uma resposta

Obrigado por deixar um comentário. Lembre-se de que todos os comentários são moderados de acordo com nossos política de comentários, e seu endereço de e-mail NÃO será publicado. NÃO use palavras-chave no campo do nome. Vamos ter uma conversa pessoal e significativa.