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

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.

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.

Will Wordpress Update effect my custom theme

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.

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.

wordpress theme doesn't appear

I'm having a very basic problem: I'm trying to create a new theme for a wordpress installation locally on my computer.
I've created a styles.css and index.php file and put it in a folder in wp-content/themes. But it doesn't appear in the Wordpress themes page.
As a test, I made a change to the description of one of the existing themes (Twenty-Ten) in its style.css, and refresh the Wordpress themes page, but the old description continues to be shown. This suggests to me that I'm simply using the wrong folder, but that's not possible! Any ideas on this problem much appreciated.
UPDATE: In fact, even when I delete Twenty Ten from the Themes folder, it's still available as an option in the Wordpress backend, and I can activate it... Very strange...
G
I agree with your diagnosis. You are either looking at the wrong folder or in fact the wrong computer. There's no other way that you could change the theme to one that has been deleted.
I suggest that you confirm you are in the same universe you think you are in. Create a simple file localserver.txt in your WordPress directory and then confirm that you can access that file.
If you can't, you have your answer. You are somehow accessing a different location.
If you can access that text file, you need to go further and look to see if something like the site url setting is redirecting you to the live site, without you realizing it, when you access wp-admin.
Beyond that, I'd need to know more about your setup. Something like having www.example.com in your /etc/host file and not example.com can cause similar confusion...
Are you using Wordpress Multisite?
In that case you have to 'enable' that theme in the Network admin manager

Resources