• 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 'https://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 https://www.ads-software.com/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)

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter geezerd

    (@geezerd)

    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', 'https://www.ads-software.com/'); ?>" 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?

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

    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 { }.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Line of text on login page, and change url of log in image’ is closed to new replies.