Will Wordpress Update effect my custom theme - wordpress

I am going to create a custom theme for one of my client, he will be reselling it to his customers.
As wordpress updates comes frequently and one has to update the wordpress to ensure security, how can I prevent my theme from update effects? I want to know that as there anyway to update the theme remotely with wordpress updates?
I will be using a custom framework not the wordpress default theme engine.
Thanks

Wordpress Codex gives a warning about updates.
That being said, if you look at the "Extended Instructions" for updating, it lists files and folders you can delete. It also lists files and folders you SHOULD NOT DELETE. Those "DO NOT DELETE" items are the files and folders not touched by an update.
So... you should ask yourself, "Will I ever need to edit/enhance one of those core files that may be replaced?"
The answer could help you build safer and smarter.

Related

Wrong CSS and JS paths after moving wordpress page

i moved my wordpress website from domain-a.com to domain-b.com and changed the the WP_HOME and WP_SITEURL with define and the siteurl and home with update_option. I can access the page now but the css and js-files still links to the domain-a.com. What else can i do?
regards
Refer to codex Moving WordPress. Your database may have records that still refer to domain-a.com. There are several options listed for search/replacing safely. I usually use Better Search Replace. If you can't access the dashboard, you'll need to use a PHP script to update the database.
Hopefully you have backups in case things get really wonky!
You may also consider reviewing any theme or plugin files that you have customized (if you're using a child theme or have written a plugin yourself) to ensure that there are no hardcoded domains.

Whether wordpress automatically backup old theme before updating the theme?

I have developed many scripts and have put inside the theme folder of wordpress. Today somehow the theme got updated automatically. Now all the scripts gone. Nothing was there. Whether wordpress will backup the old theme somewhere before it updating the theme automatically?
PS: I haven't installed any plugin to backup automatically!
Thanks for your replies
Wordpress will update and overwrite all the default (included) themes when it upgrades, so your changes will be overwritten.
To prevent this in future you should use a child theme, or manually upgrade by downloading the zip file from wordpress.org, unzipping it, and deleting the files that you don't want to be overwritten, then copying that across your existing installation. Creating a backup before you do this is also a good idea.
To prevent this I strongly recommend that next time you work around with a child theme instead of editing your main theme files. This will prevent your edited files to be overwritten when the theme updates itself. Also start using a plugin that backups your files.
Wordpress itself doesn't backup any files prior to updating Wordpress, themes or plugins. What got overwritten is now overwritten. You can contact your host support and ask them if they made any backups on your site (some hosts do that on a weekly basis so they can revert changes in case of an error - but this is on a host by host basis and not all do this).
Hope this will be a good lesson for you to think about this things beforehand and I hope you retrieve all your lost files.

Would one-click installation delete previous website?

I am helping a friend build a simple Wordpress website, their current website is with a hosting and domain service called https://www.icuk.net/.
The website is very poorly built on this platform. I told them I'd make a website for free on WordPress as I have some experience with drag and drop WordPress website builders.
My question is, if I use the platform's one-click WordPress installation, does it automatically delete the website that was previously using the domain and hosting? If so, could anyone explain in layman's terms how I would go about backing it up, as it's always better to be safe than sorry.
I would be hesitant to do this, personally. I believe you can use the one click service to uninstall, at which point you can install WP again. A better option, however, if WP is already installed, would be to just change the theme, deactivate and delete any unwanted plugins, and then delete (or change to draft if you may want any of the content for your new development) any unwanted posts or pages. A current version of WP is a current version of WP, thus there is no reason to reinstall. Once you change the theme, remove the posts and pages, and remove the plugins, you are essentially back to a new install. Maybe do that instead?

Is there a way in WordPress to go back to default settings, delete all assets, etc.?

I'm a WordPress n00b and have a question that may be a stupid one. Basically, I want to start my site from scratch, but want to keep all the plugins and themes that I downloaded. Is this possible, and if so, what are the steps to do it?
If you create a new database and update this value in wp-config.php, it will initialise your posts, users, etc...
The plugins in the plugins folder and themes in themes folder will still remain although you might need to reconfigure the theme.

I made a bunch of wordpress sites for clients and built off of the core theme (I didn't use a child them). What are my options now?

I didn't know about the best practice of not skinning/modifying/working off of the core wordpress theme (twenty-ten, twenty-eleven, twenty-twelve, twenty-thirteen), and a bunch of my clients sites are running right now on the core themes with a custom/modified skin.
I've heard stories of wordpress getting hacked and sites being compromised because wordpress is out of date. The wordpress team also pretty much states that security issues are being fixed with each update. I need to update the core wordpress files on these sites to prevent this, but now I'm scared that if I update wordpress, the theme will be overwritten.
In fact, I had a client click the update button once in the wordpress admin (not really knowing what they were doing) and overwrite the theme (that was pretty disasterous). I even use a plugin now to disable that message so my other clients don't do that.
What steps should I take now to fix this? Copy the theme, rename the folder/theme name in style.css, and change the theme in admin settings? Would I be OK to update wordpress after I do this? Or are there more steps that I need to take?
You have the right idea. Copy the theme folder and rename the new copy to something else like customtheme. Then edit customtheme's theme info in the comments at the top of style.css and switch to it in the admin panel. After that you are safe to update.
Do keep in mind that it's possible WP updates will break things anyway, depending on how you implement custom functionality and what plugins you are using.
Agree with the above. Don't go anywher near the WP core or the default themes. Either create child themes or better off, build your own.
Copying and renaming and existing theme will cause you all sorts of problems as each theme uses named functions. If you just rename the stylesheet there will be more conflicts than you can fix in a week of debugging.
If you are blocking the update messages you are putting your clients at risk.

Resources