Change Theme Without Login To WordPress Admin Area
Change Theme Without Login To WordPress Admin Area
Check the database name from wp-config.php file.
Backup the database using the following command from shell.
Cpanel
mysqldump database_name > database_name.sql
Plesk
mysqldump –opt -uadmin -p`cat /etc/psa/.psa.shadow` database_name > database_name.sql
Now, login to phpmyadmin and select the database_name.
In the database click on table wp_options .
In wp_options click on Sql tab .
Execute the following queries for finding out the current theme enabled for wordpress site.
SELECT *
FROM wp_options
WHERE option_name = ‘template’
OR option_name = ‘stylesheet’
OR option_name = ‘current_theme’;
Now, execute the following query for changing the theme for wordpress site.
UPDATE wp_options SET option_value = ‘default’ WHERE option_name = ‘template’;
UPDATE wp_options SET option_value = ‘default’ WHERE option_name = ‘stylesheet’;
UPDATE wp_options SET option_value = ‘default’ WHERE option_name = ‘current_theme’;
Replace default with theme name.
Check the theme again by running below command.
SELECT *
FROM wp_options
WHERE option_name = ‘template’
OR option_name = ‘stylesheet’
OR option_name = ‘current_theme’;
-
Recent
- Top command in batch mode
- Malware on Linux Server (Maldet)
- The script to kill DoS/DDoS botnet on the OpenVZ hardware node
- How to set limit to remove the Frozen Maiils Automatically ?
- Script to catch malicious perl scipts uploaded to /tmp
- Exploit Removal Guide
- Frozen messages with Exim
- DDOs Commands
- SERVER LOAD TWEAKS…APACHE/MYSQL/SMTP-POP3/EXIM/IMAP
- Change Theme Without Login To WordPress Admin Area
- How do I find out zombie process?
- Command to check mod_pagespeed
-
Links
-
Archives
- March 2013 (1)
- February 2013 (8)
- January 2013 (2)
- December 2012 (7)
- November 2012 (24)
- October 2012 (44)
- September 2012 (10)
- August 2012 (13)
- July 2012 (8)
- June 2012 (5)
- May 2012 (44)
- April 2012 (8)
-
Categories
- Apache
- Cloud Linux
- Computers & Electronic
- Control Panel
- CPanel / WHM
- Education
- Enertainment
- fashion
- File Sharing
- Firefox
- Gadgets
- Games
- General
- Graphics & Design
- Health
- Hot Shot
- Humor
- Icons
- Installation
- Internet
- Iphone
- Laptops
- Linux
- Mega Projects
- Microsoft
- Mobile News
- Mobile Phones
- MySql
- PHP
- Plesk
- Portable Softwares
- Reviews
- Security
- Social Media
- Software & Utilities
- SolusVM
- Sports Channels
- Technology
- Thoughts
- Tips & Tricks
- Uncategorized
- Wallpapers
- Web 2.0
- WHM Plugins
- Windows
- Wordpress
- YouTube
-
RSS
Entries RSS
Comments RSS