Skip to content

Instantly share code, notes, and snippets.

View eugenoprea's full-sized avatar

Eugen Oprea eugenoprea

View GitHub Profile
@eugenoprea
eugenoprea / functions.php
Created February 3, 2013 01:12
How to Change the WordPress Login Logo URL
/** Change Powered by WordPress */
add_filter('login_headertitle', 'eo_login_logo_url_desc');
function eo_login_logo_url_desc()
{
return bloginfo('name');
}
@eugenoprea
eugenoprea / functions.php
Created February 3, 2013 01:01
How to Change the WordPress Login Logo
/** Change the WordPress Login Logo */
add_action('login_head', 'eo_login_logo');
function eo_login_logo()
{
echo
'<style type="text/css">
login h1 a
{
background-image: url(' . get_bloginfo('template_directory') . '/images/login-logo.png) !important;
}
@eugenoprea
eugenoprea / functions.php
Created February 3, 2013 00:44
Genesis - Move the Comments List Below the Comment Form
/** Move Genesis Comments */
add_action( 'genesis_before_comments' , 'eo_move_comments' );
function eo_move_comments ()
{
if ( is_single() && have_comments() )
{
remove_action( 'genesis_comment_form', 'genesis_do_comment_form' );
add_action( 'genesis_comments', 'genesis_do_comment_form', 5 );
}
}