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 importerar/exporterar du WordPress Theme Customize Settings

Vill du importera eller exportera inställningar för theme customizer i WordPress?

Om du har flera WordPress-webbplatser kan du exportera och importera inställningar för theme customize så att du kan använda samma konfiguration för temat på båda webbplatserna.

I den här artikeln visar vi dig hur du enkelt importerar / exporterar WordPress tema customizer inställningar.

Import / export theme customizer settings in WordPress

Varför importera / exportera WordPress Theme Customize Settings?

Många WordPress-teman allow you to set up your WordPress website using the theme customize. Det allow you to change colors, header images, background images, choose layout settings, and more.

Vissa betalda och gratis themes har fler inställningar available i customizern, medan andra bara har några få grundläggande alternativ.

Om du arbetade med att customize temat på en lokal server eller staging site, skulle det inte vara trevligt om du bara kunde flytta dessa inställningar till live site?

This will allow you to move theme customize settings from one WordPress website to another without having to move the content and database.

Du kanske också vill exportera inställningarna för customizer om du har skapat ett anpassat barntema som du vill dela med andra eller om ditt tema har ett error och du måste ta bort det.

Sedan, när du har fixat den frågan, kan du enkelt importera dina inställningar för theme customizer tillbaka igen.

Med detta sagt, låt oss ta en titt på hur man enkelt importerar/exporterar inställningar för theme customizer i WordPress.

Hur man importerar/exporterar Settings för Theme Customize i WordPress

Först måste du installera och aktivera pluginet Customize Export/Import på båda webbplatserna där du vill exportera/importera. För mer detaljer, se vår Step-by-Step guide om hur du installerar ett plugin för WordPress.

Efter aktivering, besök sidan Appearance ” Customize från WordPress dashboard på den website du vill exportera från.

Export/Import option in Customizer

Klicka sedan på panelen ”Exportera/Importera” i den vänstra colonnen för att öppna ytterligare Settings.

Därefter klickar du på knappen ”Export” för att downloada dina customizer settings och skicka dem till din webbläsare i en .dat-fil.

Export customizer settings

Pluginet exporterar alla dina theme options som definieras som theme mods eller som är lagrade som options i WordPress database. Detta innebär att du kan exportera saker som färginställningar, layouts, Headers etc.

Det exporterar dock ej dina menyer för navigation, webbplatsens titel och description, widgets med mera.

Nu, för att importera customizer-inställningar, head över till WordPress site där du vill importera dessa inställningar.

Härifrån går du till sidan Appearance ” Customize från WordPress admin sidebar och klickar på Export/Import panel.

Därefter klickar du på knappen ”Välj fil” under sektionen ”Importera” för att välja den fil du exporterade tidigare.

Du måste också kontrollera boxen bredvid alternativet ”Download and import image files?” för att importera header och andra image-filer.

Import theme settings
Klicka sedan på knappen ”Import” för att börja uppladare customizer-inställningarna från din exportfil.

När den är slutförd kan du reviewer dina ändringar i customizern och sedan clicka på knappen ”Save & Publicera” för att göra ändringarna live.

Tänk på att pluginet endast exporterar temainställningar som sparats med tema customizer och exporterar ej webbplatsdata som menyer, widgets, images, med mera. Du måste manuellt ställa in dessa ändringar.

Bonus: Import/Export Navigation Menu

Om du har flera WordPress webbplatser kanske du vill överföra navigation menu från en site till en annan. Du kan enkelt göra detta med hjälp av WPS Menu Exporter plugin.

När du har installerat plugin besöker du Tools ” Export page från WordPress dashboard. Här kontrollerar du helt enkelt alternativet ”Navigation Menu Items” och klickar på knappen ”Download Export File”.

Export the navigation menu items

När du har gjort det kommer din navigation menu att lagras som en .xml-fil på din dator. Du kan sedan importera navigation menyn till den nya site genom att besöka Tools ” Import page.

Här måste du klicka på länkarna ”Install Now” och ”Run Importer” under WordPress-alternativet.

Install the WordPress import tool

Då kommer du till en new vy där du enkelt kan importera filen med navigation menu från din dator.

Nu har du importerat och exporterat en navigation menu på din new site WordPress utan problem.

Upload your .xml file and click the button to import it to your new site

Detaljerade anvisningar hittar du i vår tutorial om hur du importerar/exporterar navigation menu i WordPress.

Vi hoppas att den här artikeln hjälpte dig att lära dig hur du importerar/exporterar inställningar för tema customizer i WordPress. Du kanske också vill se vår Beginner’s guide om hur man använder WordPress Theme Customize som ett Pro och vår checklista över saker du måste göra innan du byter WordPress Themes.

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

25 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. Dayo Olobayo says

    This is a great tip. I’m always worried about losing my customization settings when I switch to a new theme. I’ll definitely be looking into the Customize Export/Import plugin. But please, does this plugin work with all WordPress themes or are there any specific themes that it’s compatible with?

  3. Dennis Muthomi says

    if I export the theme customizer settings from one site and then import them to another site that has a different theme installed, will the imported settings still apply properly?
    Or does this import/export process only work if I’m using the exact same theme on both sites? Having the ability to transfer settings between different themes would be really valuable

      • Dennis Muthomi says

        Wow, thanks for the reply! good to know it only works for the same theme or child themes.Appreciate you clarifying :-)

  4. Ram E. says

    Thanks! Although I don’t think this would work for block themes–from default WP 2023 to the recently released 2024 theme with WordPress 6.4. I am trying to install a staging environment for my website today to configure the new WP default theme before pushing the changes to live but the staging feature of the Bluehost plugin s*cks. This is how I ended up in this article. (Sigh) Looking for some staging alternatives as I only need to update the theme.

  5. Teresa E Langston says

    This plugin does not work with child of 2022 theme.

    Export works fine. Error on import:
    Error importing settings! The settings you uploaded are not for the current theme.

    There does not seem to be a way to get past this situation. Have scanned faqs/support forums

    • WPBeginner Support says

      You would want to ensure the folder names are the same for your child theme to prevent that specific error. You can also reach out to the plugin’s support and they may be able to assist further.

      Administratör

    • WPBeginner Support says

      You would want to check with the support for the plugin whose settings you are looking to transfer for if they have a tool for that purpose.

      Administratör

    • WPBeginner Support says

      If you reach out to the plugin’s support and let them know your specific theme and they should be able to help

      Administratör

  6. Salman Saleem says

    Thank you so much for saving my day. Was thinking to migrate the whole site but this plugin is a saviour.

  7. Fejiro says

    Please a search bar is showing in my customize theme page. Its blocking the save button. How do I remove it.

  8. Ted says

    I used this plugin to export customizer settings from one site and import them to another site using the same theme. Worked without a hitch and even imported background and header images. One thing I noticed is the current version (0.8) automatically saves the changes, which may be an issue if somebody just wants to see how it looks without committing to the changes. The unwary user will inadvertently overwrite any settings they may currently have saved.

  9. NazakatMunawar says

    WordPress themes are easily imported and export as all the content and images will get transformed into any themes accordingly but still, I suggest to make a back up before making any changes to the themes.

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.