Grow your CSS skills. Land your dream job.

WordPress admin

  • # September 19, 2012 at 6:54 am

    Hey Guys,

    Have no clue why this is happening….my wordpress website is running fine, but when I try and log in to the wordpress wp-admin for my site, the login page won’t load and I see a message in the top left corner that says ‘lol’. Have I been hacked? How do I get rid of this and see my admin login page again?

    Thanks in advance!

    # September 19, 2012 at 8:09 am

    Yea, you have been hacked.

    add this line into your functions.php file right after the opening ?php tag, make sure “your_new_password_here” is actually the password you want to use, make sure it is not the same as before else, it could be compromised.

    wp_set_password(‘your_new_password_here’,1);

    then go try to login with the pass you just set, once you get in, go delete the line out of your functions.php file and reupload it.

    I highly recommend you find a good security plugin…WP better security is a great one…also, make sure you are running some form of backups too…

    # September 19, 2012 at 11:32 pm

    Hey I tried as you said but still get the ‘lol’ screen when I go to my login page which is :
    http://vigourdynamicfitness.com.au/wp-admin

    Here is my script for my functions.php file, have I got it laid out correct? I just put in ‘Newpass1′ as the temporary password….

    < ?php
    wp_set_password(‘Newpass1′,1);

    // Add RSS links to section
    automatic_feed_links();

    // Clean up the
    function removeHeadLinks() {
    remove_action(‘wp_head’, ‘rsd_link’);
    remove_action(‘wp_head’, ‘wlwmanifest_link’);
    }
    add_action(‘init’, ‘removeHeadLinks’);
    remove_action(‘wp_head’, ‘wp_generator’);

    // Declare sidebar widget zone
    if (function_exists(‘register_sidebar’)) {
    register_sidebar(array(
    ‘name’ => ‘Sidebar Widgets’,
    ‘id’ => ‘sidebar-widgets’,
    ‘description’ => ‘These are widgets for the sidebar.’,
    ‘before_widget’ => ‘

    ‘,
    ‘after_widget’ => ‘

    ‘,
    ‘before_title’ => ‘

    ‘,
    ‘after_title’ => ‘


    ));
    }

    // Navigation
    if (function_exists(‘register_nav_menus’)) {
    register_nav_menus(
    array(
    ‘main_nav’ => ‘Main Navigation Menu’
    )
    );
    }

    ?>

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".