Tag: WordPress

  • Generating a new administrator user in WordPress through SQL

    If you need access to a website, built on WordPress, but you have SSH access only, you could still cope with the situation with a few line in the command line. Here are the steps you need to follow: Find the database credentials. They are usually in wp-config.php file under the web-root directory of your…

  • Chaging the logo on the loging WordPress page

    You have built a new client’s website and you want to change the WordPress logo on the login page (wp-login.php), well there is nothing more easy then this. Add the following code to your theme’s function.php. /* Change WordPress login page logo image */ function new_login_page_logo() { ?>; <style type=”text/css”> .login h1 a{ background-image: url(‘http://yoursite.com/path/to/the/img.png’);…

  • Debugging WordPress

    wp-config.php debug options: ini_set(‘log_errors’,TRUE); ini_set(‘error_reporting’, E_ALL); ini_set(‘error_log’, dirname(__FILE__) . ‘/error_log.txt’); And some more: define(‘WP_DEBUG_LOG’, true); define(‘WP_DEBUG’, true); define(‘WP_DEBUG_DISPLAY’, false); define(‘SCRIPT_DEBUG’, true); define(‘SAVEQUERIES’, true); ini_set(‘log_errors’,TRUE); ini_set(‘error_reporting’, E_ALL); ini_set(‘error_log’, dirname(__FILE__) . ‘/error_log.txt’);