Forums

Line of text on login page, and change url of log in image (4 posts)

  1. geezerd
    Member
    Posted 1 year ago #

    OK, so I'm using this code to change the url of the image on the log in page:
    add_filter('login_headerurl', create_function(false,"return 'http://www.mysite.com/home.html';"));

    I used Qwerty Admin Panel Theme to change the image, but that plugin had no option to change the url, so I found that code above on here in the forums and added it in my functions.php, and it worked, but only after I figured out it had an error. It had 'login_headertitle' instead of the correct 'login_headerurl'.

    But I digress.
    I want to add a line of text saying "Members Only Area" just above the login form. Anyone have a code snippet I can add to functions.php to make that happen?
    Thanks.

    (Oh, and Mr, Mrs or Ms Moderator person, if you go to http://wordpress.org/support/topic/275733?replies=6 you will see the very last entry. It's wrong. And the topic is closed. So there's no way to let people know that it should be login_headerurl and not login_headertitle, which kinda sux)

  2. geezerd
    Member
    Posted 1 year ago #

    Here is how I am doing it now, hacking into the WordPress files, which is never good:

    <body class="login">
    <?php   if ( !is_multisite() ) { ?>
    <div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Home')); ?>"><?php bloginfo('name'); ?></a></h1>
    <p style="text-align:center;"><strong>Members Only area</strong></p>
    <?php   } else { ?>
    <div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', network_home_url() ); ?>" title="<?php echo apply_filters('login_headertitle', $current_site->site_name ); ?>"><span class="hide"><?php bloginfo('name'); ?></span></a></h1>
    <?php   }

    Which really should not even work, since I put my paragraph inside the 'php if ( !is_multisite()' part, and I'm not using multisite. It should only show if it were in the next part, the 'php else' there after it, right?

  3. Nate Defosses
    Member
    Posted 1 year ago #

    So, what, no one can bump their post in the forums anymore?

  4. rememberme
    Member
    Posted 10 months ago #

    It is not the finest way, but a very simple solution:
    Set "Members Only area" on your logo and add it with the appropriate settings in the CSS at #login h1:first-child a:first-child { }.

Topic Closed

This topic has been closed to new replies.

About this Topic