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 installerar du tillägg och teman för WordPress från GitHub

Undrar du hur du installerar tillägg och teman till WordPress från GitHub?

GitHub är en tjänst för webbhotell för projekt som används av många open source-projekt och utvecklare. Som användare av WordPress kan du ibland stöta på tillägg eller teman som serveras på GitHub.

Eftersom GitHub inte är specifikt för utvecklare av WordPress kan det vara svårt för en new användare att lista ut hur man downloadar och installerar ett plugin eller theme från GitHub.

I den här artikeln visar vi dig hur du installerar tillägg till WordPress eller teman från GitHub.

Installing a WordPress plugin or theme from GitHub

Vad är GitHub?

Som vi nämnde tidigare är GitHub en tjänst för webbhotell för kod. Det är gratis att använda för open source-projekt, och för närvarande är det den mest populära tjänsten för webbhotell för projekt bland utvecklare av open source.

Det använder Git-systemet för revisionskontroll, därav namnet GitHub. Inte bara det, utan det ger enkla verktyg för samarbete och funktioner för sociala nätverk, till exempel att följa användare, ge repository stjärnor, prenumerera på repository och projekt, och mer.

GitHub kan användas i alla projekt som vill använda funktionerna för Git revision control. Det kan användas för läranderesurser med open source, projekt för documentation, manualer, guideböcker och mycket mer. GitHubs tools allow users to add other users to their projects and work with them in teams.

Med detta sagt, låt oss titta på hur man installerar WordPress tillägg och themes från GitHub.

Så här installerar du tillägg och teman för WordPress från GitHub

Innan du installerar ett WordPress theme eller plugin från GitHub måste du se till att du kan ta emot updates för det. Vi kommer att täcka den delen senare i den här artikeln.

Att installera tillägg och teman från GitHub är superenkelt. Det gillar precis som att installera ett WordPress tillägg manuellt.

Först måste du gå till plugin / theme’s repository på GitHub.

På huvudsidan av repository, klicka på knappen ”Code” och välj sedan ”Download ZIP”.

GitHub download zip

Nu, head över till din WordPress admin area och gå till Plugins ” Add New page.

Du måste manuellt ladda upp pluginet från din dator. För att göra det klickar du på knappen ”Upload Plugin”.

Manually upload and install a WordPress plugin

Detta kommer att visa dig alternativet att uploada plugins zip-fil.

You need to click on the ”Choose file” button and then select the ZIP file from your computer.

Därefter måste du klicka på knappen ”Install Now”. WordPress kommer nu att uploada zip-arkivet från din dator till din website, packa upp det och installera pluginet åt dig.

När det är gjort kommer du att se ett success message. Du kan sedan klicka på ”Activate” för att aktivera pluginet på din WordPress website.

Så här får du updates för WordPress tillägg installerade från GitHub

Som standard letar WordPress efter en nyare version av pluginet baserat på ett plugins read me-fil och plugin-header, som innehåller information om den senaste stabila versionen som ska användas.

Som standard visar WordPress dock ej automatiska updates för tillägg som downloadats från GitHub. För att aktivera användare att automatiskt ta emot updates direkt från GitHub repositories, måste utvecklare av teman och plugins göra lite extra ansträngningar.

För att uppnå detta kan vissa tillägg och teman från GitHub redan ha inkluderat koden som aktiverar dig för att få automatiska updates.

I vissa fall kan utvecklaren av temat/tillägget be dig att installera pluginet GitHub Updater. Detta aktiverar dig för att få updates för GitHub tillägg och themes.

I båda fallen måste du kontakta plugin / theme utvecklare på GitHub och fråga dem om uppdateringar situationen för att vara säker på att du kommer att få updates när de släpper en ny version.

Bonus: Hur man automatiskt distribuerar WordPress Theme Changes med hjälp av GitHub

Om du är en utvecklare som arbetar med ett custom theme är det också möjligt att automatiskt distribuera dina ändringar till GitHub.

Detta kan spara dig mycket tid och säkerställer också att du har olika versioner av ditt theme saved om du behöver rulla tillbaka ändringar i framtiden.

För detaljer om hur du gör detta kan du se vår guide om hur du automatiskt distribuerar ändringar i WordPress theme med hjälp av GitHub och Deploy.

Vi hoppas att den här guiden hjälpte dig att installera WordPress tillägg eller teman från GitHub. You may also want to see our guide on how to code a website and our expert picks for the best WordPress plugins for business websites.

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

20 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. Jiří Vaněk says

    GitHub is still a big unknown for me, but I’m slowly trying to delve into its mysteries and commands. I’m mainly interested in it because of the versioning possibilities and also because there are occasionally very interesting projects here. And yes, as a beginner, I still don’t understand it. Tutorials like this are very valuable to me because this is not the first article about GitHub that I’m reading here. The more I learn about it, the more I start to enjoy it, because even in WordPress, one can step out of the box, so to speak. That means going a bit beyond the official WordPress repositories. And because of this, I get access to interesting projects again. Thanks for these guides.

  3. Moinuddin Waheed says

    This is very good news that the vast community of wordpress non code background can also use GitHub for downloading themes and plugins.
    i thought that git and GitHub are only developers per se. But we can use wordpress themes and plugins downloaded from here.
    Thanks wpbeginner for this helpful tutorial.
    At times we don’t get plugin in wordpress repository and Google shows it in GitHub, so we can easily access and test them on our local machines.

    • Jiří Vaněk says

      That’s right. What I’ve also discovered is that you can find solutions to many problems on GitHub. Several times while working with WordPress, I encountered an issue on a foreign website and in my effort to help, I ended up on GitHub. And there, I found the solution. However, sometimes it was a bit more complicated for me to implement it. That’s why these articles are very meaningful and have great potential for me, because I feel that you can find really interesting things on GitHub that aren’t usually in the repository.

  4. Ismail says

    Hello admin,

    Thank you so much for this article and I learn a lot from this site. Today, I want to download Facebook Instant Articles fro Github, and this article help me to do that. But I have a question, if possible please guide me since I am newbie.

    For FBIA plugin from WP Directory, do I have to uninstall it and install the plugin from Github afterwards? I hope you can help me on this. Thank you for your help to all people.

    • WPBeginner Support says

      If you are replacing the plugin with a version from GitHub it would normally be best to remove the old files and then replace them with the plugin from GitHub

      Administratör

  5. yh says

    wordpress is saying I need a business plan to add plug ins. is there any way around this? or is there any way for me to retrieve a scheduled post and post it manually? I cant find the post anywhere

  6. Andy Fragen says

    Thanks for mentioning GitHub Updater. It works with plugins or themes hosted on GitHub, Bitbucket or GitLab.

    As a bonus you can use GitHub Updater to perform a one click install of any GitHub, BitBucket, or GitLab (public or private repos) plugins or themes using only the repository URI vastly simplifying the instructions in the article.

  7. adolf witzeling says

    GitHub is great-for learning too. I’ve gained so much knowledge just by looking at code from github. Thanks for this nice post!

  8. Gautam Doddamani says

    GitHub and StackOverflow are some of my favourite sites for checking out useful scripts that i can use on my blog. I am using one plugin from GtiHub myself…but didn’t know about the GitHub updater…thanks guys!

  9. Morgan says

    Here is a real tip:

    Right click ”Download ZIP” > Copy Link Address

    Plugins > Add New > Upload > Choose File

    When the window pops-up for you to find your zip file, just paste the URL and it will fetch the link. No need to clutter your computer with files you don’t need.

    • Andy Fragen says

      You can actually do a one click install using the Remote Install feature of GitHub Updater. Added benefit is the plugin/theme directory is correctly renamed.

    • WPBeginner Support says

      Tracy, yes there is a chance of that. In the WordPress plugin repository, plugins go through a basic review process and since it is a larger community an unsafe plugin would get caught much quicker than on GitHub.

      Administratör

  10. Aaron says

    Awesome article, I heard your interview on Mixergy. Really love how you use FAQ’s to drive content. I had no idea your traffic was so huge- very cool to see your growth through value creation. Congrats! –Aaron

  11. Alfred Degens says

    Thanks for this article!

    Can you tell me where to find WordPress plugins on GitHub?
    Is there a way to search for those open source plugins on Github?
    I tried on Google search but didn’t find any plugin on Github.

    Regards,
    Alfred

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.