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 skapar du ett Contact Form i WordPress (steg för steg)

Vill du skapa ett kontaktformulär och add to din site i WordPress?

Varje website behöver ett kontaktformulär, så att besökarna enkelt kan kontakta you om dina produkter och tjänster. Som standard har WordPress inte ett built-in kontaktformulär, men det finns ett enkelt sätt att add to kontaktformulär till din site.

I den här artikeln visar vi dig hur du enkelt skapar ett kontaktformulär i WordPress utan att röra en enda rad kod.

How to create a contact form in WordPress (step by step)

Varför behöver du ett Contact Form i WordPress?

You kanske undrar varför jag behöver ett Contact Form? Kan jag inte bara lägga till min email address på min website, så att folk kan maila mig?

Det är en mycket vanlig fråga från Beginnare eftersom de är rädda för att det är obligatoriskt med kodningskunskap för att lägga till ett Contact Form.

Lyckligtvis kan du använda ett WordPress plugin för att helt enkelt lägga till ett kontaktformulär till din WordPress website utan kodningskunskap.

Under följer de tre främsta anledningarna till varför ett kontaktformulär är bättre än att klistra in din email address på en page.

  • Skydd mot skräppost – Skräppostrobotar söker regelbundet igenom webbplatser efter taggen mailto: email address. När du postar din email address på en website kommer du att få en massa skräppost. Å andra sidan kan ditt kontaktformulär blockera kontaktformulärsspam och stoppa nästan all skräppost.
  • Konsekvent information – När du skickar email skickar folk inte alltid all information som du behöver. Med ett kontaktformulär kan du berätta för användaren exakt vilken information du letar efter, som deras telefonnummer, budget, projektdetaljer och mer.
  • Saves Time – Contact Form hjälper dig att spara tid på fler sätt än du kan föreställa dig. Notis: Förutom konsekvent information kan du också använda formulärbekräftelser för att berätta för användaren nästa steg de bör ta. Gilla, titta på ett videoklipp eller vänta upp till 24 timmar för att få ett response, så att de inte skickar dig flera förfrågningar.

Med det sagt, låt oss visa dig hur du enkelt skapar ett kontaktformulär i WordPress, steg för steg.

Video Tutorial

Subscribe to WPBeginner

Om du föredrar skriftliga instruktioner är du välkommen att fortsätta Läsa.

Step-by-Step 1. Välja det bästa tillägget för Contact Form i WordPress

Det första du behöver göra är att välja ett plugin för kontaktformulär i WordPress.

Det finns flera gratis och betalda tillägg för Contact Form i WordPress som du kan välja mellan, men vi använder WPForms på vår site och anser att det är det bästa alternativet på marknaden.

Under följer de tre anledningarna till att vi tycker WPForms är bäst:

  1. Det är det mest nybörjarvänliga tillägget för kontaktformulär som finns available. Du kan använda drag and drop builder för att enkelt skapa ett kontaktformulär med bara några clicks.
  2. WPForms Lite är 100% gratis, och du kan använda det för att skapa ett enkelt kontaktformulär (över 6 miljoner webbplatser använder det).
  3. När du är redo för mer kraftfulla funktioner kan du uppgradera till WPForms Pro.

För att lära dig mer, se vår detaljerade WPForms review.

Nu när vi har bestämt oss för plugin för kontaktformulär, låt oss gå vidare och installera det på din webbplats.

Step-by-Step 2. Installera ett tillägg för Contact Form i WordPress

För denna tutorial kommer vi att använda WPForms Lite eftersom det är gratis och användarvänligt.

Du kan installera detta plugin på din site genom att logga in på din WordPress dashboard och gå till Plugins ” Add New.

Skriv sedan ”WPForms” i sökfältet och klicka på knappen ”Install Now”.

Install WPForms plugin

Detta installerar automatiskt pluginet på din site.

Därefter måste du aktivera pluginet genom att klicka på knappen ”Activate”.

Activate WPForms plugin

Om du inte ser menyn med tillägg eller vill ha mer detaljerade instruktioner kan du läsa vår steg-för-steg guide om hur du installerar ett plugin för WordPress.

Step-by-Step 3. Skapa ett Contact Form i WordPress

Nu när du har aktiverat WPForms är du redo att skapa ett kontaktformulär i WordPress.

För att göra detta, navigera till WPForms ” Alla formulär i din WordPress adminpanel. Klicka sedan på knappen ”Add New”.

Add new WPForms form

Detta kommer att öppna WPForms drag and drop form builder template library. Börja med att ge ditt kontaktformulär ett namn och välj sedan din kontaktformulärsmall.

För att välja en template hoverar du bara över den och clickar på knappen ”Use Template”.

WPForms Lite levereras med över 20+ gratis formulärmallar att välja mellan. Du kan använda dessa för att skapa nästan vilken typ av kontaktformulär du gillar.

I det här exemplet går vi vidare och väljer templaten ”Simple Contact Form”. Den kommer automatiskt att lägga till fälten Namn, Email och Message.

Choose WPForms form template

You can click on any of the form fields to edit them.

När du klickar på ett formulärfält visas panelen ”Field Options” till vänster där du kan göra ändringar.

Make edits in field options panel

You can also use your mouse to drag and drop the fields to change the order.

Change form fields order

Om du vill add new ett nytt fält väljer du bara bland de tillgängliga fälten i den vänstra sidebaren.

Du kan dra den över till ditt formulär eller clicka på den, så läggs den automatiskt till i ditt formulär.

Drag and drop new form fields

När du är klar med att customize ditt formulär, se till att klicka på knappen ”Save”.

Step-by-Step 4. Konfigurera aviseringar och bekräftelser för WordPress-formulär

Nu när du har skapat ditt kontaktformulär är det viktigt att du konfigurerar alternativen för formulärets aviseringar och bekräftelse på rätt sätt.

Formulärbekräftelse är vad din website visitor ser efter att de har submitat formuläret. Det kan vara ett enkelt Thank you message, en page där du har uploadat nedladdningsbara PDF:er eller vad du gillar.

Form Notification är det email du får när någon har submittat kontaktformuläret på din WordPress blogg.

För att customize bekräftelsemeddelandet klickar du på fliken ”Settings” och sedan på tabben ”Confirmations” i form builder.

Det finns redan ett standard Thank You message.

Du kan dock customize detta i boxen ”Confirmation Message” om du gillar det.

Go to form confirmation message

Om du vill redirecta användare efter en lyckad formulärinlämning i stället för att visa ett message, väljer du ”Go to URL” i rullgardinsmenyn ”Confirmation Type”.

Sedan enter du den URL som du vill redirecta användarna till.

Redirect to page after confirmation

Om du gör några ändringar här, se till att klicka på knappen ”Save”.

Efter det kan du se till att inställningarna för formulärets aviseringar är korrekta. Klicka bara på tabben ”Aviseringar” från samma meny ”Settings”.

Det bästa med WPForms är att standardinställningarna är idealiska för Beginnare. När du går till inställningarna för notification kommer alla fält att fyllas i dynamiskt.

Go to form notifications tab

Aviseringarna skickas som standard till den email för administratörer som du har ställt in när du skapade din site.

Om du vill skicka det till en custom email address, då kan du ändra det. Om du vill skicka notifikationen till flera email, separerar du bara varje email address med ett kommatecken.

”Email Subject Line” är förifyllt med ditt formulärnamn. Fältet ”From Name” fylls automatiskt i med namnet på din användare.

Change form email notifications

När you reply to the form inquiry, it will go to the email that your user filled in the contact form.

Se till att du klickar på knappen ”Save” om du gör ändringar här.

Om du vill skicka ditt formulär email till flera personer eller olika avdelningar, se vår guide om hur du skapar ett kontaktformulär med flera mottagare.

Om du har problem med att ta emot formulär-e-postmeddelanden, se vår guide om hur du fixar WordPress not sending email issue.

Step-by-Step 5. Lägga till Contact Form i WordPress på en page

Nu när du är klar med att konfigurera ditt Contact Form WordPress är det dags att add to en page.

Du kan antingen add new till en befintlig kontaktsida eller skapa en new page i WordPress.

Om du vill skapa en ny kontaktformulärssida går du bara till Pages ” Add New och ger sedan din page ett namn.

Vi kommer att använda WPForms block för att add formuläret i en page. Klicka helt enkelt på knappen ”Plus” för att lägga till block och search efter ”WPForms”.

Klicka sedan på blocket ”WPForms”.

Create new contact page and add WPForms block

WPForms block kommer nu att visas i innehållsområdet på din page.

Du måste clicka på rullgardinsmenyn för att selecta formuläret som du skapade tidigare.

Select contact form from drop down

WPForms kommer att hämta en preview av ditt kontaktformulär i Editorn. You can now click the ’Publicera’ or ’Update’ button to save your form.

Nu kan you besöka your website för att se den i action.

Så här gillar formuläret på ett exempel på en kontaktsida i WordPress:

WordPress contact form example

Om du bara ville lägga till kontaktformuläret på page, då är du klar här. Vi gratulerar er till detta.

WPForms levereras också med en WordPress shortcode för kontaktformulär. Du kan använda den genom att gå till WPForms ” All Forms och sedan kopiera shortcoden till ditt formulär.

Copy form shortcode

Sedan är allt du behöver göra att öppna upp sidan där du vill lägga till den och klicka på knappen ”Plus” för att lägga till block och search efter ”Shortcode”.

Klicka sedan på blocket ”Shortcode”.

Add shortcode block

Klistra sedan in shortcoden som du kopierade ovan i boxen.

Efter det klickar du på ”Update” eller ”Publicera” och ditt kontaktformulär kommer att vara live på din website, precis som ovan.

Paste form shortcode and save

För att lära dig mer om shortcodes, se vår ultimata guide om hur du lägger till en shortcode i WordPress.

Step-by-Step 6. Lägga till Contact Form för WordPress i en sidebar

WPForms levereras också med en WordPress widget för kontaktformulär som du kan använda för att add to ditt kontaktformulär till en sidebar eller något annat widget-klart area i ditt WordPress theme.

För att göra detta måste du gå till Appearance ” Widgets och sedan klicka på ikonen ”Plus” för att lägga till block i widgetområdet som du vill lägga till ditt formulär.

Add new widget block

Sök sedan efter ”WPForms”.

Sedan klickar du på blocket ”WPForms” för att add to din sidebar.

Add WPForms widget block

Efter det måste du välja ditt kontaktformulär från rullgardinsmenyn.

Detta kommer automatiskt att hämta en preview av your formulär.

Select form from drop down

Därefter klickar du på knappen ”Update” för att save your changes.

Nu kan du besöka din site och se ditt kontaktformulär live i din sidebar eller annat widgetar area.

Sidebar contact form example

Om du vill veta mer om widgets kan du läsa vår guide om hur du lägger till och använder widgetar i WordPress.

Ta ditt Contact Form i WordPress till nästa nivå

Notis: Förutom att skapa de enkla Contact Form-formulären levereras WPForms Pro med över 1 800+ färdiga formulärmallar som du kan använda för att snabbt skapa alla typer av WordPress-formulär som du behöver.

Det finns kraftfulla funktioner som villkorlig logik, undersökningar och omröstningar, insamling av elektroniska signaturer, övergivande av formulär, geolokaliseringsdata, anpassningsbara kupongkoder och så mycket mer.

Dessutom låter det dig enkelt godkänna onlinebetalningar via Stripe, PayPal, Authorize.net och Square. Även den gratis versionen av WPForms tillåter dig att samla in Stripe-betalningar.

För att inte tala om, det integreras med tusentals marknadsförings- och affärsverktyg som Google-ark, HubSpot och mer för att hjälpa dig att effektivisera ditt arbetsflöde.

WPForms har också lagt till formuläranpassningsverktyg som formulär landing pages, conversational forms, lead forms och calculator forms som låter dig lägga till interaktiva formulär på din webbplats utan de höga kostnaderna.

WPForms Full Page Conversational Forms Example

Fler tips hittar du i vår guide om hur du skapar mer interaktiva formulär i WordPress.

Upplever du error i kontaktformuläret? Låt WPBeginner Pro Services lösa dem! Vi erbjuder prisvärd Emergency WordPress Support för att snabbt troubleshoota och fixa kontaktformulär error. Save time, få sinnesfrid och se till att dina customers kan nå you. Schemalägg tjänster för WordPress-support idag!

Vi hoppas att den här artikeln hjälpte dig att skapa ett enkelt kontaktformulär i WordPress. Du kanske också vill se vår guide om hur man skapar ett nyhetsbrev via email på rätt sätt, och våra expertval av de bästa telefonitjänsterna för småföretag.

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

162 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. Will Beadenkopf

    I used the basic contact form from WPForms on my wife’s blog and website, but we get more spam replies from people trying to sell something than we do real replies.
    Can we put more validation in the basic form, or do we have to go to the Pro version?

    • WPBeginner Comments

      The free version of WPForms has a couple CAPTCHA options available. These can be very powerful in blocking spam.

  3. Jiří Vaněk

    I use WP Forms since I won a full license in your giveaway. I’ve never won anything before, and then I received a full license for WP Forms from you for free. I have to say, it’s a great plugin.

    • WPBeginner Support

      Glad you liked the plugin :)

      Administratör

  4. susan

    Hello, I followed the steps howevert he contact page does not appear on the webite. How should I proceed as I have attempted it numerous times now.

  5. Bryan

    Hello, thanks for the help. You mentioned that the email address can be changed. Can you please share how this is done and where?

    Thanks

  6. Karolina

    I followed all the steps but for whatever reason, this form doesn’t work. I uninstalled and installed it few times. I followed exactly as on video but when sending a test contact form I don’t receive any emails or notifications.

  7. Eric

    I followed your video to put a contact form on my site and you made it easy and enjoyable. I noticed that you had your address and contact information on the side. How do I put my contact information there? Thank you in advance.

    Eric

    • WPBeginner Support

      If you mean from the video, we placed another block on the page and manually added the text :)

      Administratör

  8. Natalia

    hi, how to edit buttons and typeface in the form?

    • WPBeginner Support

      It would depend on the form plugin you decide to use and there are different locations for that customization.

      Administratör

  9. Amaka obi

    I fid all these but when I tried to test it, I didn’t get any notification in my mail from my website. Please what could be the cause?

    Thank you

  10. Saiqa

    Thank you so much! it really helped me:)

    • WPBeginner Support

      Glad our guide was helpful :)

      Administratör

  11. JITEN PATIL

    Thanks! this plugin is nice. i am using it and it is very simple & easy to build forms in less time.

    • WPBeginner Support

      Glad you found the plugin helpful :)

      Administratör

  12. Brian Leggero

    Wow! It sure doesn’t get any easier than that!

    Great instructions! Nice slow talking too, easy to understand.

    Keep up the GREAT work!

    • WPBeginner Support

      Thank you, glad you found our guide helpful :)

      Administratör

  13. Geoff Anderson

    I’ve installed WPForms Lite and activated it but it doesn’t show up in the side menu bar in Wordpress. I can see it in the Plugins but I don’t have an option to select settings just deactivate.
    So I’m unable to access the plugin at all. Any suggestions?
    Cheers, Geoff

    • WPBeginner Support

      You may want to try reinstalling the plugin in case there was a hiccup with your download. Otherwise, please reach out directly to WPForms’ support and they would be able to assist.

      Administratör

  14. Flora tony

    please when i click on submit, i go to my mail and i dont see any mail

    i have tried it several times

  15. Daniel Putman

    I am getting very frustrated with your tutorials. They seem to be out of date because the view that I get is different than what you are showing. Please update these tutorials.

  16. Court

    This no longer works as your need a business plan to have a contact form.

  17. Chris

    I just installed WPForms and created a contact form for my website.

    When I visit the contact page, I see two contact forms; the one from WPForms and another one. I don’t have any other form plugin except WPForm.

    How can I resolve this?

    • WPBeginner Support

      By default, WordPress does not have a contact form tool, you would want to check through your plugins again for plugins that add a contact form tool.

      Administratör

      • Chris

        I later found out that the problem was from my theme. I contacted support and they gave me a code to disable it.

        Thanks for your feedback.

  18. Marguerite F Cleveland

    I have my form set up but when I test it in my site and click the submit button nothing happens. I set it up using the block editor.

  19. Luz Manalo-Cruz

    Hi. I am unable to add the contact form in Pages. When I click on Pages in my dashboard, there is no Add Forms field. Is there another way? I am on localhost.

    • WPBeginner Support

      You’re likely using the block editor, you would want to check for the WPForms block to add the form to your page :)

      Administratör

      • Luz Manalo-Cruz

        That worked, thanks!

        • WPBeginner Support

          Glad we could help :)

  20. Sakshi Kaushik

    I have installed the WPforms plugin. but where do i check my form entries from? I am unable to see the entries that my viewers are giving. Please help.

    • WPBeginner Support

      Under the WPForms menu item, there should be entires as an option. If you are unable to see the entires, you would want to reach out to WPForms’ support and they would assist with your specific issue.

      Administratör

  21. Adepoju Olaide

    Thanks for this post. i hope this would work for me! :)

    • WPBeginner Support

      You’re welcome, our guide should work for every WordPress.org site so it should work for you as well :)

      Administratör

  22. Ainjel M

    Great post! Thank you. Was so simple!

    • WPBeginner Support

      You’re welcome, glad we could simplify the process for you :)

      Administratör

  23. Jennifer Preissler

    I am using divi theme and I am not finding the add form button…

    • WPBeginner Support

      If you are editing a post/page with the block editor you would want to add the WPForms block instead of looking for a button :)

      Administratör

  24. santoshrana

    informative detail. That list has helped a lot in my task.

    • WPBeginner Support

      Glad our guide could help :)

      Administratör

  25. brenda s

    I need help, I have created a form and would like to know how I can receive the information once submit button is pressed, where does my information go.

    • WPBeginner Support

      It would depend on what form you are using but the default is to email the submissions to the email under Settings>General

      Administratör

  26. beth pross

    I have made my contact form too many times to count. I have tried to upload it also several times. it will be in the preview. It will NOT publish.
    I have followed your directions every time. I have invested over ten hours on this one edit.
    What am I doing wrong?

    • WPBeginner Support

      It would depend on which plugin you’re using. If you reach out to your contact form plugin’s support they should be able to assist with what the issue could be.

      Administratör

  27. Ranojit Kumar

    Thanks for this post.

    • WPBeginner Support

      You’re welcome :)

      Administratör

  28. Kathy Rowland

    Thanks for the great tutorial! Off to update and activate my Contact Form. Let the emails begin :)

    • WPBeginner Support

      You’re welcome, glad you liked our article :)

      Administratör

  29. Jochen Gererstorfer

    Do we have to install another plugin, if we upgrade from the lite version to WPForms Pro?

    • WPBeginner Support

      When you add your license key the lite version should replace itself with the pro version for you.

      Administratör

  30. Kathleen

    This is great…sounds easy enough. I’m going to try it with my granddaughters website. Thanks…

    • WPBeginner Support

      You’re welcome, glad our guide is helpful :)

      Administratör

  31. Burhan

    The contact form is one of the must have elements of a website.
    This article is all you need to learn making the best and proffessional contact form.

    • WPBeginner Support

      Thank you for your recommendation of our article :)

      Administratör

  32. Henry Bartimus

    when I click ”confirmation and an empty box opens with no content, thank you

    • WPBeginner Support

      That’s quite strange, you could start by disabling your other plugins to see if it is a plugin conflict. Otherwise, please reach out to WPForms’ support directly and they should be able to assist with the issue :)

      Administratör

  33. Susan

    I’ve installed WP forms Lite, but can’t see the configuration options anywhere in settings – there isn’t much at all there. Any clues?

    • WPBeginner Support

      It would depend on what specific option you’re looking for as some options are in the forms themselves. If you reach out to the plugin’s support they can help point you to what you’re looking for :)

      Administratör

  34. Greg

    I created the Simple contact form and the problem I am having is the email that is sent goes into the Junk Email folder. I have tried adding the domain and sender as safe but it still goes to Junk Email. How can I stop this?

  35. Clement

    Great tutorial for anyone who wants to create a contact form in an easy-to-follow manner

    • WPBeginner Support

      THank you :)

      Administratör

  36. Khan

    Nice post Bro. I want to ask, does this form comply with GDPR?

  37. Jess

    Hi there, thank you for your insightful articles, they have helped me a lot!
    I am wondering if you know how to insert a code that allows the user to remove a file that has been uploaded to a Contact 7 form? Say it was uploaded by mistake and they want to remove it and try again. At the moment my form doesn’t allow me to delete any uploaded files… Appreciate your help.

    • WPBeginner Support

      For a question specific to contact form 7, you would want to reach out to the plugin’s support and they should be able to assist.

      Administratör

  38. Eucharia

    Thanks for the wonderful article, I have been following it to create my site but I have problem with adding my Form to the contact page. When I click on add page it opens a bar to add title but I don’t see the add form option. I have not been able to add my contacts form to my contacts page.
    Please I need you to help me. Thanks

  39. John

    When I make a new page, I don’t see an ”add form” button. This is WP 5.0.2, freshly reset.

    • WPBeginner Support

      For the new blocks editor you would want to add a WPForms block and that would allow you to add the form :)

      Administratör

  40. Himanshu

    Thank you for your hard work and the videos. I learn a lot from your videos. However, one thing I noticed consistently is that often you skip some steps or zip past a simple action that confuses the newcomers, especially when you are ’WPbeginner’ instructors. Example. While tutoring the making of a Contact Us form, before publishing/updating it, you zipped past the text We’d Love to Hear From You text. This is the text you entered but did not show and that confused me a lot as to how come that text did not show up in my form because I have been following you step by step to create the form on my new website while I am watching your video. I went back and forth and created 4 forms to no avail–the text just would not show up. Then I said to my self, what the heck! and entered it on my own and proceeded to remaining video. I noticed the same issue in your other videos as well. Could you be a little slower and specific? Please note, this is not a criticism; this is a constructive suggestion. You folks do a great job and without you, I would not have my website created on my own and I would not be writing to you here. Thanks a million for doing this

    • WPBeginner Support

      Hi Himanshu,

      Thank you for your kind feedback, we really appreciate it. We are aware of the issue you are referring to, and our team is continuously working on improving the videos. We will put more effort into it.

      Meanwhile, if you are unable to follow instructions shown in a video or one of our tutorials, then please do not hesitate to ask us. You can do so by leaving a comment or sending us a message using the contact form on our website. We try our best to answer all user questions.

      Administratör

  41. Brenda Donovan

    The simple form is all I need and it looks good and is looking good on cell phone too.

    I set the reCaptcha up but it doesn’t show up on the contact page where the form code is.

    Is there a short code for that also? and if so where in the settings is it?

    Thanks…

  42. Michel Kapteijns

    Hello,
    I followed al the steps, I see the contact form on my site. I can fill in a message, and after I submit the message I neatly see the ’thank you’ message. Butt.. I do nog receive the mesage in my e-mail account. What am I doing wrong?
    Thank you very much for your answer on this.
    Regards, Michel

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.