WordPress.org

Ready to get started?Download WordPress

Forums

Skin Login
[resolved] Change logo url and alternate text (7 posts)

  1. joshgx
    Member
    Posted 1 year ago #

    // changing the logo link from wordpress.org to your site
    			function my_login_url() { return get_home_url(); }
    
    		// changing the alt text on the logo to show your site name
    			function my_login_title() { return get_option('blogname'); }
    
    		// calling it only on the login page
    			add_filter('login_headerurl', 'my_login_url');
    			add_filter('login_headertitle', 'my_login_title');

    Adding this will change the url and alternate text for the logo to the blogs information instead of wordpress.org

    http://wordpress.org/extend/plugins/skin-login/

  2. simnor
    Member
    Plugin Author

    Posted 1 year ago #

    Aha brilliant, thanks, will add it in when I release the next version.

    Cheers

  3. muyilleum
    Member
    Posted 1 year ago #

    When can we expect the new version? I also want to change the logo url and alternate text. Thanks

  4. Karalius
    Member
    Posted 1 year ago #

    nice, but where to put those codes? in skin-login.php?

  5. joshgx
    Member
    Posted 1 year ago #

    Kara,

    It is placed in the skin-login.php at the end just before the ?>

    $sn_skin_login_css = $style_background_image.$style_background_colour.$style_logo.$style_text_colour.$style_link_colour.$style_button_colour.$style_button_border_colour.$style_theme_css.$style_custom_css;
    
    		// changing the logo link from wordpress.org to your site
    			function my_login_url() { return get_home_url(); }
    
    		// changing the alt text on the logo to show your site name
    			function my_login_title() { return get_option('blogname'); }
    
    		// calling it only on the login page
    			add_filter('login_headerurl', 'my_login_url');
    			add_filter('login_headertitle', 'my_login_title');
    
    ?>
    	<style type="text/css">
    		<?php echo $sn_skin_login_css; ?>
    	</style>
    <?php }
    add_action( 'login_enqueue_scripts', 'sn_skin_login_css_styles' );

    here is the end of the file.

  6. mrcavallo
    Member
    Posted 1 year ago #

    wow - great fix joshgx - thanks very much!

    great addition to a very useful plugin.

  7. joshgx
    Member
    Posted 1 year ago #

    no problem mrcavallo! glad to help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.