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 delar du upp rubriken på ett inlägg eller en page i WordPress

Vill du dela upp en WordPress post eller page rubrik på en new rad?

Som standard är din posttitel bara ett enskilt inlägg, och du kan inte bryta den till en ny rad. En superlång rubrik kan dock se oattraktiv och störande ut, vilket påverkar användarens upplevelse negativt.

I den här artikeln visar vi you hur du delar upp rubriker på posts eller pages i WordPress.

Split post or page title in line breaks

Skillnaden mellan en delad Rubrik och en Undertext i WordPress

Splitting a post or page title on your WordPress site allows you to break the title into new lines without changing formatting or style.

En lång rubrik kan se oattraktiv ut och kan vara svår att läsa för användare. Genom att dela upp titlar kan du göra det lättare för läsarna att se hela titeln och förstå vad ditt blogginlägg handlar om.

Dessutom kan detta hjälpa dig att lyfta fram viktiga keywords och fånga läsarnas uppmärksamhet.

A post title splitted into line breaks

Å andra sidan, en undertitel allow you to add two different headings for your WordPress post or page. Den kan fungera som en sekundär rubrik som vanligtvis visas under huvudheadingen.

Mer detaljer om detta finns i vår tutorial om hur du lägger till undertexter för posts och pages i WordPress.

WPForms page title and subtitle

Med detta sagt, låt oss se hur du delar upp rubriker på posts eller pages på din website i WordPress utan att skriva någon kod.

Så här delar du upp rubriker på inlägg eller pages i WordPress

Först måste du installera och aktivera pluginet Page Rubrik Splitter. För mer detaljer, se vår Step-by-Step guide om hur du installerar ett WordPress plugin.

Efter aktivering öppnar du sidan eller posten där du vill dela titeln i block editor med hjälp av WordPress dashpanelen.

Note : Detta plugin fungerar bara om du för närvarande använder Classic editor. Om du använder den nya block editor, kommer funktionen för delad titel inte att vara available.

För detaljer, se vår tutorial om hur du inaktiverar Gutenberg och behåller den klassiska Editorn i WordPress.

På vyn Editor för post måste du klicka på den lilla knappen under titelfältet.

Split button

Detta kommer att add to en pekare i slutet av titeln i fältet. Tänk på att titelfältet måste vara valt för att pekaren ska kunna visas på vyn.

Efter det kan du flytta markören inuti textfältet till den punkt där du vill dela rubriken.

Title splitter marker

You can also add multiple split points to break your title into more lines.

Klicka bara på ikonen en gång till och flytta sedan markören genom att välja och placera markören på rätt plats.

Du kan också ta bort en markör. Just click on a marker to select it, and you will notice that the title splitter button will turn into a close button.

Click on it will remove the title-splitting marker from your post title.

När du är klar med att lägga till och justera delningsmarkören, glöm inte att klicka på knappen ”Update” eller ”Publicera” för att lagra dina inställningar.

Du kan nu besöka posten eller page för att se den delade posttiteln på din website.

A post title splitted into line breaks

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du delar upp poster eller pages rubriker i WordPress. Du kanske också vill se vår Beginner’s guide om hur du lägger till en läsförloppsindikator i dina WordPress-poster och våra expertval för de bästa typografiska WordPress-tilläggen för att förbättra din design.

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

13 kommentarerLämna ett svar

  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. Alex Tully says

    The plug-in doesn’t work. Even after I install it, nothing comes up in the editor when I’m trying to edit the title. I’ve given up and uninstalled it.

    • WPBeginner Support says

      Thank you for letting us know, we’ll be sure to take a look at the plugin or for alternatives :)

      Administratör

  3. Corinne Corley says

    I was not able to use this plug-in because it added code instead of a marker and it split wherever the heck it wanted instead of where I put it. I deactivated the plug-in after about 20 minutes of trying. Any thoughts?

    • Melissa Dawn says

      Sorry guys… I’m running on no sleep, and I forgot to add ” ” in my last comment.

      What I meant to say is:

      *I put in my title, where I wanted to break the line, and it worked.

  4. Krzysiek Dróżdż says

    Wow, you really need a plugin for that?

    Why don’t you just insert tag? Installing million plugins, that aren’t doing anything really isn’t a good idea… Especially, if such plugin is not popular, so very few people have looked at/controlled it’s code (this plugin had 30 active installs).

      • Krzysiek Dróżdż says

        It’s not the problem with number of plugins, but with their quality and reason to use them.

        It’s like somebody would ask ”how to add period after sentence” and you answered ”there’s a plugin that…”

        This approach just makes no sense at all. You’re recommending useless plugin, which inserts tag in title, and uses a lot of JS code to do that. Inserting these tags yourself is much easier, much more effective, much more efficient and secure…

        There are better and worse solutions for every problem, but your solution for this problem is most uesless one, anyone could think of, I guess…

        PS. I thought it’s wpbeginner, because you’re aiming to give simple advices for wpbeginners, not that you are total beginners with WP :(

        • WPBeginner Support says

          We understand your point of view. However, most of our audience are beginner level WordPress users. Things like editing theme files to achieve something, may look quite simple to experienced users, but they are not that simple for beginners. Many of them don’t know any HTML or CSS at all. If there is a plugin that makes it easier for them to do something, then we will always recommend the easier solution first.

        • KRZYSIEK DRÓŻDŻ says

          @WPBEGINNER,

          What are you writing about? You don’t need to edit any theme files to insert tag in the title field. Just go to your wp-admin, start to edit your post and write in the title field. It’s all. Done. Finito ;)

          So it’s easier, simpler, quicker and much safer than installing plugin, which does exactly the same thing, but with a lot of JS (and you have no idea what sits in its code, right?).

          @SUKAFIA:
          If somebody doesn’t even try to understand comments, then he deserves strong words, I guess…

          Especially, if he tries to teach something, and recommends totally bad solutions – so he ends up teaching and promoting bad habits.

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.