How to create a Wordpress theme/template that updates itself?

Asked

Viewed 175 times

0

It has how to make a theme/template in Wordpress, that when I make an edition in it, it updates itself, without needing to be uploading?

  • 1

    This you solve with a good editor. The program will automatically upload every time a file is saved.

  • 1

    If you edit on the server itself, I don’t think you’ll ever need to upload :)

  • This is a terrible practice, is known as "cowboy coding" or edit files directly on the server. If it’s an unimportant site that you can break without problems then go ahead. If not, develop in local environment, test, then use git or some other deployment method to automate the process. My favorite and deploying editor is Phpstorm.

2 answers

2

It will always take some kind of connection to the remote server to send the files, but it is possible to have a more automated experience with an FTP program like the Cyberduck (open source). It takes care of sending the files automatically.

For small edits it works well, but it’s always good to remember that this is a practice that should be discouraged for web projects in general, because remote file editing brings a lot of problems to a project.

Better use version control and different development environments (subject to another topic).

0

You can use an online editor, some hosting services offer online editing by Cpanel, File Editor.

It can be a dangerous practice if someone has access to your online editor.

With FTP/SFTP despite the delay in communication, but it is more secure.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.