Wednesday, August 19, 2020

How to Clone a WordPress Site

Sometimes you might need to clone your WordPress site. Maybe you want to use it as a template for a new site, or you want to make a copy of your old site on new hosting or a new domain.

Sometimes you don’t actually need to duplicate your site. If you’re moving it to new hosting or a new domain, you might find that following our guide to moving your WordPress site to a new domain gives you all the advice you need.

But if you do need to make a copy of your WordsPress site, there are a few ways to do it.

In this tutorial, I’ll show you two ways to clone your WordPress site. The first is for a standalone site, and the second is for a site in a WordPress multisite network.

So let’s start with a standalone site, with one website and one WordPress installation.

Cloning Your WordPress Site with a Plugin

The easiest way to clone your WordPress site is to use the Duplicator plugin, which is free. This lets you create a package containing all the data relating to your site, and then import that to another location and clone the site there.

duplicator plugin

Create a Package of Your Starting Site

Start by installing and activating the plugin on the site you want to clone—your starting site.

Now go to Duplicator in the admin menu to access the duplicator screen.

duplicator screen no packages

To clone your site, you need to create a package. Click the Create New button to start the process.

This will open the new package screen.

new package screen

Give your package a name and click the Storage tab to choose where you want to store it. With the free version of the plugin, you can store it on your server where your website is hosted. If you buy the premium version of the plugin, you have cloud storage options like Dropbox and Google Drive.

duplicator storage

Open the Archive tab to choose to archive database tables and files. To run a quick clone, you can leave this as the default and move on to the next step.

duplicator archive

Click the Next button to continue.

The plugin will then scan your site to check it can be duplicated. If there are any issues, it will generate a notice and warn you.

scan screen with notice

Here the plugin has flagged the fact that there are two very large files in the uploads folder. I can choose to omit those from the package if I want or to leave them in and run the risk of having problems when I import the package to my new site. If you’re using good hosting, you shouldn’t have a problem. We recommend SiteGround for reliable WordPress hosting.

filtering large files

If you do filter some files, click the link to rescan your site before building your package, so the installer file has the right metadata about the size and contents of your package.

If you’ve received notices and you’re happy to continue, check the box. Then (and this applies if your haven’t got any notices too), click the Build button to build your package.

The plugin will start the process of building a package and show you a progress screen.

package progress screen

Once it’s done, it will show you a success screen with a link to download the files. You’ll need the archive and the installer, so download them both.

download files

Import the Package to Your New Site

Now it’s time to import the package from your old server and use it to populate your new site.

You’ll need FTP access to your new server as you’ll have to upload the installer and archive files to it. Upload them to a new empty directory inside your root directory, such as yourdomain.com/duplicate.

Important—don’t install WordPress on the new server—the installer will install it for you with any customisations you had in the starting site.

You’ll find them on your computer, in your downloads folder or wherever you saved them to. The installer is a PHP file called installer.php and the archive is a zip file. Don’t unzip that file: upload it as a zip file.

You should now have two files in that directory—the installer and the archive.

Note: Make sure the zip file is fully downloaded before you copy it to your server, and that it’s fully copied before you go to the next part of the process.

In your new site, go to newdomain.com/folder/installer.php in your browser, where folder is the name of the directory you uploaded the files to.

first installer page on new site

Note: If you get an error message, it’s probably because you went to this screen before the zip file had fully uploaded to your server. Just wait and refresh when it’s done.

This will take you to the first screen in the import process. If you want to configure the import, you can expand the tabs and explore the options, otherwise just leave things as they are. Check the terms & notices checkbox and click the Next button.

The plugin will extract the archive file and take you to the Install Database screen.

Install Database screen

Here you have the option to create a new database or to remove all data from an existing database and overwrite it. As your server doesn’t have WordPress installed yet, you’ll be creating a new database. Type in the name of the new database and the username and password you’ve already set up with your hosting provider.

Tip: If you’re having problems connecting to create a database, try creating a new empty database in phpMyAdmin then use that database and its user with Duplicator's option to replace an existing database.

Select the options you want then click the Test Database button. When the test runs okay, click the Next button.

You’ll see a popup checking you want to proceed. Click the OK button.

The Duplicator plugin will then install the database and take you to the Update Data screen.

update data screen

Change the URL and path to the new site if you want to. Right now they’ll be in the folder where you put the installer and zip files. You’ll probably want to edit those fields and use the root directory though. Then click the Next button.

You’ll then be taken to the Duplicator installer's final screen, which tells you to login to your new WordPress site and delete all installer files. This is important for security reasons.

import done

If you keep the auto delete checkbox checked, the plugin will automatically delete those files the first time you log in to your new site. Your login details will be the same as they were for your old site.

Now log into your new site and you’ll find it’s identical to your old site. You’ve successfully cloned your WordPress site.

Cloning a WordPress Site in a Multisite Network

If you run a multisite network and want to clone one or more of the sites in it, this is even easier. Cloning sites in your network is useful when you want to create another similar site, maybe for another part of your business. Or maybe you have a base site that you use as a template for new sites in your network and you want to clone that.

To clone sites in your WordPress multisite network, use the NS Cloner—Site Copier plugin.

NS Cloner - Site copier plugin

Start by installing the plugin and network activating it.

Then go to NS Cloner in the WordPress admin menu. Select the site you want to clone and give the cloned version of the site a name.

NS Cloner screen

Then scroll down and click the Clone button.

The plugin will run the cloning process and give you a success message telling you it’s done. This could be quick for a small site but could take a while for a large site with lots of files. If you need to, go and make a coffee while you wait.

cloning success

And that’s it! You now have a duplicate of your site on the new location in the network. You can now log in to the new site and make any adjustments you need to to perfect your new site.

Summary

Being able to easily clone your site without having to manually copy files and database tables to your new WordPress installation will save you lots of time if you need to move your site or create a copy of it in a new location.

Whether you’re copying your site to a fresh WordPress installation or cloning a site within a multisite network, the steps above will show you how to create a carbon copy of your site.

The Best WordPress Themes and Plugins on Envato Market

Explore thousands of the best WordPress themes ever created on ThemeForest and leading WordPress plugins on CodeCanyon. Purchase these high-quality WordPress themes and plugins and improve your website experience for you and your visitors. 

Here are a few of the best-selling and up-and-coming WordPress themes and plugins available for 2020.


by Rachel McCollin via Envato Tuts+ Code

Report: Global Consumers Spent 1.6 Trillion Hours On Their Smartphones During The First Six Months Of 2020

With data from more than 8 million apps and thousands of websites, App Annie gives a complete picture of mobile app usage for marketers to understand the trends, consumer behavior and shifts, and ways to acquire and retain customers while entering new markets. Recently, App Annie issued a report...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Arooj Ahmed via Digital Information World

Which Companies Are the Most Innovative? (infographic)

One aspect of the modern world that has become firmly entrenched is that companies need to innovate a lot more than they used to, and a big part of the reason why that is the case has to do with the fact that there is a lot more competition in the market which leads to it being difficult for a...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Zia Muhammad via Digital Information World

Apple is experimenting with on-demand cloud gaming feature on its new 5G supported devices

The leading Apple company that has gained significant popularity through its iPhones and Macbooks announces the news of its innovation. The recent reports depict that Apple is yet again coming up with its new iPhones offering 5G services soon in the coming month of October. Along with this, a...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Arooj Ahmed via Digital Information World

Google is working to make HTTPS forms more secure for the users in Chrome 86

HTTPS or HyperText Transfer Protocol Secure is the secure version of HTTP. It is a web protocol over which data is sent between a browser and the website that the user is connected to. The 'S' at the end of HTTPS stands for 'Secure'. It means all communications between your browser and the website...

[ This is a content summary only. Visit our website https://ift.tt/1b4YgHQ for full links, other content, and more! ]

by Arooj Ahmed via Digital Information World

Website Inspiration: Against The Grain

Smart little One Pager promoting a motivational docuseries by Help Scout titled Against The Grain.

Full Review


by Rob Hope @robhope via One Page Love

The languages which almost became CSS

#454 — August 19, 2020

Web Version

Frontend Focus

The Languages Which Almost Became CSS — A fascinating look at the history of all the languages which almost became CSS (for example, the proposed 'RRP' format suggested code like this: @BODY fo(fa=he,si=18)). Well worth a read, and an interesting exercise in thinking about the world that might have been.

Zack Bloom

Working with Accessibility in Chrome DevTools — Umar Hansa demonstrates some useful features in DevTools which can help you improve the accessibility of your website.

Smashing Magazine

Super Fast GraphQL Based Headless eCommerce Service — Launch beautiful and fast eCommerce sites or Apps. Structured product information and rich marketing content in one service - even HD videos. Build your own frontend using your favourite framework like React, Next, Vue or Flutter. Ideal for JAMStack.

Crystallize sponsor

Web History — Chapter 2: Browsers — We linked to part one of this excellent web history series last week and now Jay Hoffman is back with the second instalment, delving into the genesis of web browsers.

CSS-Tricks

Firefox: An Endangered Internet Species? — A sad thing to consider, but even with another recent infusion of cash from Google, the author questions “just how long Firefox will survive as a viable, mainstream web browser”.

Steven J. Vaughan-Nichols

The Cult of The Free Must Die — In relation to the above, PPK posits that Mozilla should request donations from inside Firefox — on an entirely voluntary basis, in an effort to save it. There's also a follow-up post of sorts here.

Peter-Paul Koch

⚡️ Quick bits:

💻 Jobs

Frontend Developer at X-Team (Remote) — Join the most energizing community for developers and work on projects for Riot Games, FOX, Sony, Coinbase, and more.

X-Team

Get Tech Interviews This Week — Create a profile on Vettery to connect with hiring managers at startups and Fortune 500 companies. It's free for job-seekers.

Vettery

➡️ Looking to share your job listing in Frontend Focus? More info here.

📙 Tutorials, Stories & Opinion

How I Structure My CSS (For Now) — In a world with things such as BEM, ITCSS, SMACSS, and others, this independent user experience designer and developer shares his thoughts on the current world of CSS structure.

Matthias Ott

Gradient Angles in CSS, Figma & Sketch — The author notes that copying CSS code didn’t always give the same results across different graphics programs. Here he digs into what’s really going on with gradient angles (and ends up doing some trigonometry along the way).

Nils Binder

The Vue 3 Composition API - Getting Started — Examine the drawbacks of Vue 2 and discover how the Composition API addresses those issues, while simplifying components.

Wijmo, by GrapeCity, Inc. sponsor

Vertical Text Alignment in Buttons and Inputs — How to center text vertically in buttons and input elements using the padding and line-height CSS properties.

CodyHouse

Top 10 Social Media APIs for Developers — If you need to work with any social stuff on your site, this guide has plenty of pointers and links out for Facebook, Twitter, LinkedIn, Pinterest, Reddit, Discord, and others.

Ayrshare

Four Subtle Text-Effects to Spice Up Your Site — I particularly like the 🌊 wave effect.

Akhil Arjun

Visualizing CSS Resets — A quick visual explanation between the difference between a CSS Reset and Normalize.

Elijah Manor

What I Learned by Fixing One Line of CSS in An Open Source Project

Benjamin Schachter

VS Code Shortcuts and Tricks That I Wish I Knew Sooner

Hannah Gooding

🗓 Upcoming Events:

🔧 Code, Tools and Resources

Storybook 6.0 Released: The Production-Grade Front-End Component Development SystemStorybook is a widely-adopted and well-regarded open source library for UI compenent development. This major new release is aimed squarely at the requirements of the professional frontend developer community.

Michael Shilman

Layout Shift GIF Generator: Cumulative Layout Shift (CLS) Visualiser — Layout shift is expected to be a ranking factor in Google Search at some point. This online tool or CLI allows you to test CLS by generating an animated GIF.

Chris Johnson

500m End-Users Depend on Our Scalable Chat and Activity Feed APIs

Stream sponsor

Embla: An Extensible Low Level Carousel for the Web — We first came across this over a year ago, but this bare-bones carousel option is still seeing updates and remains a decent dependency-free option. Demos here.

David Cetinkaya

System UIcons: A Free Icon Set Designed for Systems and Products — Use without attribution. Download as SVG files or copy the SVG code for any selected icon.

Corey Ginnivan

Web2VR: A Library for The A-Frame Web Framework — Dynamically translate HTML and CSS to A-Frame 3D. Plenty of demos here that you can play around with both with or without a VR headset.

kikoano


by via Frontend Focus