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

Så här ändrar du enkelt storleken på fonten i WordPress

Vill du ändra storleken på fonten på dina posts eller pages i WordPress?

Ibland kanske du vill göra en rad eller ett stycke större, eller så kanske du vill öka storleken på fonten på hela page.

I den här artikeln visar vi hur du enkelt kan ändra storleken på fonten i WordPress posts och themes.

How to change font size in WordPress

Varför ändra storleken på fonten i WordPress?

Genom att ändra storleken på fonten på din website i WordPress kan du förbättra läsbarheten av innehållet och göra det lättare för användarna att ta sig igenom det.

Dessutom kan du genom att öka storleken på fonten lyfta fram viktig information på din WordPress blogg.

Om du till exempel visar upp en affiliate-produkt på din site kan en ökning av fontstorleken hjälpa till att göra produkten mer notice. Det kan också göra innehållet mer läsbart för tittare som besöker din website via mobila enheter.

Med detta sagt, låt oss se hur du enkelt kan ändra storleken på fonten i WordPress.

I denna tutorial kommer vi att diskutera multiple methods, så du kan använda links under för att hoppa till den metod du väljer:

Video Tutorial

Subscribe to WPBeginner

Om du föredrar skriftliga instruktioner kan du fortsätta Läsa.

Metod 1: Hur man ändrar storleken på fonten med hjälp av headings

Om du letar efter ett enkelt sätt att ändra storleken på fonten med hjälp av headings, då är den här metoden något för dig.

Att använda headings i ditt content är ett bra sätt att fånga användarens uppmärksamhet med ett större font.

I de flesta WordPress themes är headings i ett större font än den vanliga brödtexten, vilket allow you att dela upp dina posts och pages i sections.

Headings är också bra för att förbättra sökmotorsoptimeringen av websites, eftersom search engines ger ordentliga headings större vikt än vanlig paragraftext.

Så här addar du en heading i standard WordPress Block Editor

Först måste du öppna ett nytt post eller en ny page i WordPress Block Editor.

När du är där klickar du på knappen ”Add Block” (+) högst upp till vänster på vyn för att öppna menyn för block.

Härifrån måste du hitta och lägga till blocket Heading på sidan / posten.

Add the heading block

Som standard kommer blocket att vara inställt på Heading 2.

Om du lägger till en underrubrik är det vettigt att klistra på alternativet ”Heading 2”.

Men om du vill ändra detta kan du helt enkelt clicka på insticksprogrammet ”H2” och välja en annan storlek.

Change heading from h2

Alternativt kan du också ändra storleken på heading med hjälp av blockinställningarna i den högra toolbaren på vyn.

Du kan även customize headingens färg, appearance, gemener med mera.

När du är klar, glöm inte att klicka på knappen ”Update” eller ”Publicera” för att lagra dina settings.

Heading settings

Så här lägger du till en heading i den gamla klassiska Editorn

Om du fortfarande använder den gamla klassiska Editorn i WordPress kan du add headings med dropdown-menyn Paragraph.

Välj först den text som du vill göra om till en heading med hjälp av din mus.

Klicka sedan på dropdown-menyn ”Paragraph” högst upp i vänstra hörnet och välj storleken på din heading. Du har nu utan problem ändrat storleken på fonten till en heading.

Choose heading in classic editor

Tänk dock på att den klassiska Editorn inte tillåter dig att ändra storlekarna och fontfärgerna för de olika Heading-stilarna.

Om du vill göra det måste du göra ändringar i ditt temas stylesheet (style.css).

Slutligen klickar du bara på knappen ”Update” eller ”Publicera” för att save your changes.

Metod 2: Ändra teckenstorleken på text i Block Editor

Om du vill ändra standard fontstorlek för texten i ditt Paragraph block, då är den här metoden något för dig.

Först måste du öppna en befintlig page/post i Gutenberg editor.

När du väl är där klickar du på ett Paragraph-block och växlar sedan till tabben ”Styles” från blockpanelen på höger sida av vyn.

Härifrån måste du välja en storlek på fonten från ”Typography” section.

Change the font size

Du kan välja alternativet Small, Medium, Large eller Extra Large efter dina behov.

Om du vill ändra tillbaka din text till originalstorleken kan du också göra det genom att clicka på den treprickiga menyn bredvid Typografiinställningarna.

Detta öppnar en new dropdown menu där du måste clicka på alternativet ”Reset”.

Reset font size

Förutom det kan du också add to drop caps, letter casing, spacing, appearance och mycket mer med samma dropdown menu.

Efter det klickar du bara på knappen ”Update” eller ”Publicera” för att lagra dina ändringar.

Tänk på att dessa alternativ inte är tillgängliga i den äldre klassiska Editorn för WordPress. Om du vill använda dem bör du fundera på att byta.

Metod 3: Ändra fontstorlek med hjälp av ett tillägg

Om du vill ändra storleken på fonten med hjälp av ett plugin, kan du använda den här metoden.

Först måste du installera och aktivera pluginet Advanced Editor Tools. Detaljerade instruktioner finns i vår guide för nybörjare om hur du installerar ett plugin för WordPress.

Vid aktivering ger pluginet dig mer control över fontstorlekar och textformatering, samt en rad andra funktioner. Det adderar ett new ”Classic Paragraph” block som har alla utvalda funktioner för formatering.

Efter aktivering, head till Settings ” Advanced Editor Tools page från WordPress admin sidebar.

Väl där kan du enkelt dra and drop formateringsfunktioner från ”Unused Buttons” section till ”Classic Paragraph” blocket.

Dessa funktioner omfattar fontstorlek, fontfamilj, kopiering, prenumeration, emotikoner, källkod med mera.

Add the font size field

När du har gjort det rullar du ner till ”Options” -sektionen och kontrollerar alternativet ”Font Sizes” för att få tillgång till ett större antal fontstorlekar.

Efter det klickar du bara på knappen ”Save Changes” för att spara dina inställningar.

Add more font sizes

Om du använder pluginet med Classic editor, måste du byta till ”Classic Editor” tabs från högst upp på sidan.

När du väl är där måste du vidta samma actions som i Block Editor.

Advanced editor tools classic editor font size

Se till att du klickar på knappen ”Save Changes” när du har gjort dina ändringar.

Nu, för att se plugin i action, måste du öppna en ny eller befintlig page / post från WordPress dashboard.

När du är där klickar du på knappen ”Add Block” (+) högst upp till vänster på vyn för att öppna menyn för block.

Härifrån hittar du och adderar blocket Classic Paragraph till page.

Add the classic paragraph block to the page

Du kan nu använda dropdown-menyn ”Font Sizes” för att ändra storleken på texten i blocket ”Classic Paragraph”.

Slutligen klickar du på ”Update” eller ”Publicera” för att save dina settings för post eller page.

Font size field

Metod 4: Ändra storleken på fonten på hela webbplatsen med WPCode

Om du vill ändra storleken på fonten på hela din website, då är den här metoden något för dig.

Du kan enkelt add to denna funktionalitet genom att infoga CSS-kod på din website med hjälp av WPCode.

Det är det bästa WordPress code snippet plugin på marknaden som gör det super enkelt och säkert att add to kod till din website.

Först måste du installera och aktivera pluginet WPCode. För detaljerade instruktioner, vänligen se vår Step-by-Step guide om hur man installerar ett WordPress plugin.

Note: WPCode har en gratis plan som du kan använda för tutorialen. Men om du uppgraderar till pro-versionen får du tillgång till fler funktioner som villkorlig logik, ett molnbibliotek med code snippets och mer.

Efter aktivering, head över till Code Snippets ” + Add Snippet page från WordPress admin sidebar.

När du är där klickar du på knappen ”Use Snippet” under alternativet ”Add Your Custom Code (New Snippet)”.

Add new snippet

Detta leder dig till sidan ”Create Custom Snippet”, där du kan börja med att ge en titel till ditt code snippet.

Därefter väljer du alternativet ”CSS Snippet” från dropdown-menyn ”Code Type” i det högra hörnet av vyn.

Choose CSS Snippet for font size code

Följ därefter upp med att copy and paste in följande custom CSS-kod i boxen ”Code Preview”:

p {
font-size:16px;
}

När du har gjort det lägger du bara till din önskade textstorlek bredvid raden ”font-size” i CSS-koden.

Det ska se ut så här.

Paste font size code

Därefter rullar du ner till ”Insertion” -sektionen och väljer läget ”Auto Insert”.

Din kod kommer automatiskt att aktiveras på din site vid aktivering.

Choose an insertion method

Slutligen rullar du tillbaka högst upp på sidan och togglar omkopplaren ”Inaktiverad” till ”Aktiv”.

Efter det klickar du på knappen ”Save Snippet” för att köra din kod.

Save font size code

Nu har du utan problem ändrat storleken på fonten på din WordPress site.

Bonus: Ändra textfärg i WordPress

Bortsett från storlek kanske du också vill ändra textfärgen på din website för att göra ditt content mer läsbart och visuellt tilltalande. Det kan också förbättra din varumärkesprofilering och hjälpa till att lyfta fram viktig information.

För att ändra textfärgen måste du öppna ett blogginlägg i block editor och välja ett Paragraph-block. När du har gjort det växlar du till tabben ”Styles” från blockpanelen och klickar på alternativet ”Text”.

Detta öppnar färgväljarverktyget där du kan välja en textfärg som du vill ha för innehållet.

Change text colors

Om du vill ändra textfärgerna all over the website, då kan du använda WPCode, som är det bästa WordPress code snippet plugin på marknaden.

Efter aktivering, besök bara Code Snippets ” + Add Snippet page från WordPress admin sidofält och klicka på ”Use Snippet” under ”Add Your Custom Code” alternativet.

Detta tar dig till ”Create Custom Snippet” page, där du måste välja ”CSS Snippet” som code type och sedan copy and paste följande kod i ”Code Preview” boxen:

p { color:#990000; }

Om du vill använda en annan färg för webbplatsens head, måste du använda väljarna h1, h2, h3 eller liknande.

Changing the text color using custom code

Slutligen clickar du på knappen ”Save Snippet” och togglar ”Inaktiverad” till ”Aktiv”.

Nu har du utan problem ändrat textfärgen på all din website. Detaljerade anvisningar hittar du i vår tutorial om hur du ändrar textfärgen i WordPress.

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du enkelt ändrar storleken på fonten i WordPress. Du kanske också vill se vår guide om hur du använder customize fonts i WordPress eller vår lista över de bästa plugins för drag and drop page builder i WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Avslöjande: Vårt innehåll stöds av våra läsare. Det innebär att om du klickar på några av våra länkar, kan vi tjäna en provision. Se hur WPBeginner finansieras, varför det är viktigt, och hur du kan stödja oss. Här är vår editoriala process.

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.

Den ultimata WordPress-verktygslådan

Få GRATIS tillgång till vår verktygslåda - en samling WordPress-relaterade produkter och resurser som varje professionell användare bör ha!

Reader Interactions

177 kommentarerLämna ett svar

  1. Syed Balkhi

    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. Joseph

    The TinyMCE really worked! Thanks alot☺

  3. mate wierdl

    How about changing font size in comments to blog posts?

  4. Naomi

    Thanks for the TinyMCE plugin suggestion for this. Super simple and it works great. I appreciate it!

  5. Abhisehkd

    really helpful. my site is also suffering from low font size . is there is any way to solve this through style.css

  6. Aslam Fawad

    Thanks. Nice Post..

  7. Judy

    I too, would like to learn how to change font size in the style sheet.

  8. J

    Thank GOD I found this article!

  9. Keivon

    OMG. You are wonderful. That plugin is so simple and exactly what I needed. Thanks

  10. Henderson

    Thanks for this very helpful post

  11. dennis mitchell

    Thanks. very helpful.

  12. Brian Woodburn

    the point to change size of font etc has gone from the face bar

  13. ifaheem

    Thanks for the help!

  14. Jana Sheeder

    Thank you very much for a great tutorial. Very soothing voice that’s clear and easy to understand, too. I appreciate you!

  15. Susan

    Unfortunately, this is only available to paid accounts. If you’re using WordPress.com, there is no Plugins tab located in the Dashboard.
    ”On WordPress.com, we include the most popular plugin functionality within our sites automatically. As a result, WordPress.com users won’t find a Plugins tab in the Dashboard.”

    • Melissa

      Actually, it’s only available to WordPress.org accounts, which is not the same as a paid WordPress.com account. Anytime you see ”WordPress” without a .com at the end, it’s safe to assume it’s referring to the self-hosted .org, which WPBeginner tips & tutorials are aimed at. I know it can be confusing for people who use .com, but the two really are very different animals. When looking for help, you’ll get better results if you’re sure to include ”wordpress.com” in your search terms.

  16. Jo-Anne

    I have tried to download TinyMCE several times without success. When I try to open the files. everything appears to be written in Arabic (characters look like that!) Any other suggestions as I’m new to WordPress and would love to get my website up and running. Thank you!

  17. Cinnamonblue

    NO Thanks for NOT publishing my comment. I did see in another comment that I cannot use TinyMCE or plug ins on WordPress.org.

    I’m still not sure about paragraph headings, though. I have that button, but I didn’t seem to be able to get it to give a dropdown menu or anything.

    One main reason I got frustrated with WP was that I couldn’t seem to change font size and the text of my blog always seemed too small.

  18. Anthony

    thank you so much.
    i am relieved now that i have this plugin

  19. Laura

    Thank you so much for the tutorial! I was able to change the font size in my posts…. but I cannot figure out how to change the font for the widgets in my sidebar… any suggestions?

  20. Grace Joubarne

    I sure wish someone could explain how we can change the post title font size without the change affecting the Recent Posts widget. I am using the basic Twelve Thirteen. It offers advanced Post Title font changes with a link found directly under the title. But totally useless, since any changes equally affect the Recent Posts box!

  21. Grace Joubarne

    What about changing the font size of the Title….when I try to do this, the Recent Posts in the sidebar increases in size and looks terrible. No way is offered to resolve this anywhere that I can find…and I’ve been looking for hours. But unless I reduce the title size, the default size is so large it takes up half the opening page.

  22. Greg Smith

    Are these option, including the plugin font size options not available if you host your own site or something? I did everything everybody says to do, dragging the font size button to the bar etc., and I get no option to resize fonts no matter what.

    I also have no ”paragraph” menu.
    Thanks.

  23. WPBeginner Staff

    We have updated the article with new instructions. Hope this resolves the issue. Thanks for notifying us.

  24. Colin

    In method 2 described in this article- the font size option does not exist when you install it. It does add options (most of which already exist) but the one that nearly everybody wants is sadly absent. I guess photoshop was used for the above illustration

  25. Pastelaso29

    how can I change the font of a specific title page without affecting the title on the rest of the pages?

  26. Casey

    I installed the plug-in from the link on this page and installed and activated it. I opened the second menu with the last button on the first row but it looks the same as before I installed it. I tried deactivating and reactivating several times but the option to change the font is still not there. A new row at the top (I think it’s new, anyway) appeared with ”file”, ”edit”, ”insert”, etc. right above what used to be the first row.

  27. richard lee morris

    Thanks! This article helped me. I was guided to the ”extended” menu — by clicking the last button ”Toggle Toolbar.”

    • Zakia H

      Richard!! You just save me from pulling my hair out. I’ve been trying to figure out how to view the extended menu and had no idea I had to click the ”Toggle Toolbar” button. Thank you for your comment

  28. Sharon Seltzer

    Your video was very helpful. I already found and changed the size of the one font my WordPress Theme gives me, but it’s a beginning. I will download your suggested Plugin.

  29. Liz

    AMAZING tutorial, thank you!

  30. KevinJosephCollinson

    Great short video. This helped a lot…. Thanks!!!…. Tip for others… Please make sure that when you ”Go To Settings” and you see the ”TinyMCE Advanced” text in the drop down Menu… Remember to configure your Toolbar with the Font Size etc otherwise you will not have it in your toolbar as the toolbar has much more options and the Font Size is not an automatic part of your new toolbar… So simple with the drag-and-drop to configure…. Thanks again for the great share and taking time to help other people!!!

  31. juna id

    I have Tinymceadvanced plugin installed in my WordPress Blog and i am using Sahifa wordpess theme but still in new post page i don’t find Font size option, :(

    • WPBeginner Staff

      Please report in the plugin’s support forum and attach a screenshot of your post editor.

      • Andriken sonwane

        hii mod ’ update your post and add a extra line about this problem solution ’ i had replied it on juna id comment’ i will be glad if you do it ’ Thanks by d way !

    • Andriken sonwane

      hii juna id ’ dont worry i was dealing with the same problem but then after i figured out that ’ you have to go to TinyMce Advanced plugin which is located in the Setting ’ after activated and then drag the font size option from unsed options and drop it right in used option’ and save it ’ that’s it :)

  32. Chris

    Thanks for this article. One of my biggest pains about posting on WP is resolved forever!

  33. Dr3Tri

    I have not ever seen those toolbars. I wonder if ANYONE would actually ask this question if they’d have those menus right under their noses!

    Just found out that toolbar must be _extended_ to see those MOST usable buttons… :D

  34. Craig Desmarais

    I am having a weird issue. I set my main points to H2 tags and they were showing up but when I tried to switch them to H1 to make them larger they weren’t showing up. Anyone have any insight?

  35. Briony

    Hi There
    I found your video really helpful. Can you insert plugins tp change font size on wordpress.com or only wordpress.org. I need to change font size under photo’s on wordpress.com.
    Cheers

  36. Cheeni

    Hello,
    I want to change font of my headings and other items apart from posts.
    I have tried to amend css style sheet but I am lost because nothing happens and I have never used it before as well.
    Please help!
    Tine MCE only helps with post sizes but what about other things on website?

    Thanks!

  37. Emel

    Downloaded and activated this plug-in, but as a couple of users mentioned earlier, it doesn’t include the option to change the font size. All of my options are the same as the picture you provided with the exception of the Font Size. In place of it, I have Styles. Your picture is very misleading.

    • Chris

      How is ’jumping to conclusions without exploring a plugin’ working for you? Please don’t be a moron when someone takes the pain of creating an entire article explaining stuff. You posted this 3 months ago and your question was answered by the admin below a comment posted 1 month prior to that.

  38. Gurpreet

    My add/edit post window does not have the entire second line of options that you have pictured in this tutorial. This means that I don’t have the paragraph tab in which to change font size. Any advice?

    • WPBeginner Support

      The second line of buttons appears when you click on the last button in the first row, its called show/hide kitchen sink button. Clicking on it will display another row of buttons in your visual post editor.

      Administratör

  39. Sarah

    My add/edit post window does not have the entire second line of options that you have pictured in this tutorial. This means that I don’t have the paragraph tab in which to change font size. Any advice?

  40. Sunganani

    The TinyMCE Advanced plugin is just the one for my site. It is working beautifully. Thank you for this post

  41. Tom Reber

    Thank you, thank you, thank you! I appreciate the article…very helpful!

  42. Radek

    Nice tutorial. Thanks!

  43. Balaji

    Thanks for this post.

  44. Ivor Vale

    Can you adjust the spacing between paragraphs in WordPress ?

  45. Dominique

    Don’t forget to click the ”Show/Hide The Kitchen Sink” button in the visual editor to display the paragraph setting. It’s hidden by default.

    • Marie

      Where can I find this button? My visual text editor doesn’t have a paragraph option; basically it only has the top row of options from the screen shot. Thanks!

      • Marie

        Nevermind, I found it!

  46. thethaiguy

    You guys are great and thank you for info!

  47. Michael

    Another way is to use a theme framework like Thesis, and I suppose Genesis or Headway and the like(I use Thesis, so it’s what I’m familiar with). You have a dashboard to easily change anything you like anywhere, such as font size in specific locations.

  48. Raja Tahir Qaiser

    Can I know how to change default font size ?

    • Editorial Staff

      You would need to edit the style.css file and change the font size on your body element.

      Administratör

      • sim

        so please explain how you change the default font by changing the style.css??

  49. Jake

    How do you give the user an option to change the font size and elements (if they have bad eyesight, etc.) Here is an example: drwalisever. com. In the top right corner there are 2 buttons. It uses the Fusion theme, which is no longer developed. A tutorial would be great, thanks!

  50. Ashutosh Joshi

    But I think will effect in SEO, as there are no option for Heading tags are being shown.. is it so?

    • Editorial Staff

      The heading tag options only show up in the visual editor. If you are in the HTML editor, it will not show.

      Administratör

Lämna ett svar

Tack för att du väljer att lämna en kommentar. Tänk på att alla kommentarer modereras enligt våra policy för kommentarer, och din e-postadress kommer INTE att publiceras. Vänligen använd INTE nyckelord i namnfältet. Låt oss ha en personlig och meningsfull konversation.