0

I was just hired to work in web design with WordPress and I'm struggling because I'm not experienced with the platform. My job is, basically, take the design made in Adobe Illustrator and build the layout in HTML and CSS.

Today I was assigned a site that's already online and had to build the new layout. My instructions were to activate the new template in the WordPress wp-admin, to create the new files (index.php, header.php, footer.php and style.css) in the FTP server and build from there.

Everything OK with that except that when I'm working on the site (maybe 3 or 4 hours), the site is kinda down because I'm uploading the new (incomplete) layout, am I explaining correctly?. E.g., if the web address is theclientsite.com I go to theclientsite.com/wp-admin/themes, define and activate new theme, write the code and test it directly in the browser going to theclientsite.com.

The question is: is there a way to work locally with the WordPress installation? I mean a way to test the site in something like localhost/theclientsite in the browser. My intuition says that the answer is YES, because we're talking about php code. But, as I said, I'm not experienced in the WordPress platform. I don't know if I need to be connected to a WordPress's server or something like that, or if I need to install something in my machine.

Any help, guide or tutorial is welcomed and will be appreciated. Thanks in advance for your answers.

Maxime
  • 8,645
  • 5
  • 50
  • 53
Alvaro Pedraza
  • 1,176
  • 6
  • 20
  • 44

3 Answers3

4

Yes, it is possible to work offline by installing locally:

  • Apache / Nginx
  • PHP
  • MySQL

That can be done...:

You will have to edit your host file to map the domain.com to your localhost (127.0.0.1). The reason is that, by default, WordPress is not domain agnostic, which means absolute links (including the domain) are stored in the database. Otherwise, you will need to edit the data to map it to localhost.

As you are new with WordPress, I will remind you to backup the website BEFORE doing any change. A free tool like BackWPup can do the job to backup all files and the database.

The changes you made on the website were made directly in production (meaning on the live site). That is a really bad practice, as you probably know why now, because your visitors see and incomplete and buggy website.

That is why you need a dev environment where you can build and test everything. If you did not do any backup and feel screwed, you can install a maintenance plugin like Ultimate Coming Soon Page and configure it to tell your visitors that the site is having a make over and come back later.

As for tutorials, I would start with How to install WordPress with WampServer. First, you will understand how to install WordPress... in general. Once you understand this part, you are ready to export an existing website and import it locally. I would suggest to read more about How move a WordPress website locally.

This is a start! Use Google as you go... it will help a lot! :-)

Maxime
  • 8,645
  • 5
  • 50
  • 53
0

You can install XAMPP packages that ships with Apache, Mysql (MariaDB actually) and PHP environments. All already configured so you can just Next > Next > Install.

https://www.apachefriends.org/pt_br/index.html

taiar
  • 552
  • 6
  • 22
  • I already have MySQL installed on my machine (I'm working with Mac). I don't know MariaDB, what's the difference with MySQL? Do I need something else (besides XAMPP) from WordPress to do that? What do I need `Perl` for? (sorry, I've never used) – Alvaro Pedraza Aug 09 '16 at 01:31
  • 1
    @AlvaroPedraza 1) You don't have to worry about MariaDB since it will [work the same as MySQL](https://stackoverflow.com/questions/4106315/can-mysql-seamlessly-be-replaced-with-mariadb-or-are-there-things-to-change-in-t). 2) You will have to download [wordpress](https://wordpress.org/) and extract it to the xampp document root. 3) Wordpress doesn't use Perl so you can just ignore it. – Cave Johnson Aug 09 '16 at 01:44
0

I've always preferred working directly on the remote server using Aptana with built-in FTP client. I've known others that prefer working locally using WAMP. https://sourceforge.net/projects/wampserver/

atjoedonahue
  • 476
  • 6
  • 19