• Resolved khoneini

    (@khoneini)


    Hi all!

    I have a problem well, its not a problem I just want to change something.
    http://www.leodag.nl/blog/ is my site as you can see there is a login script on the frontpage. It works great but I want to change the “Log In” button.

    This is the login script:

    <li>
    	<?php global $user_ID, $user_identity, $user_level ?>
        <?php if ( $user_ID ) : ?>
        <h2>Vlindercontrol</h2>
        <ul>
            <li>Ingelogd als: <strong><?php echo $user_identity ?></strong>.
            <ul>
                <li><a href="<?php bloginfo('url') ?>/wp-admin/">admin panel</a></li>
                <?php if ( $user_level >= 0 ) : ?>
                <li><a href="<?php bloginfo('url') ?>/wp-admin/post-new.php">schrijf een artikel</a></li>
                <?php endif // $user_level >= 1 ?>
                <li><a href="<?php bloginfo('url') ?>/wp-admin/profile.php">persoonlijke opties</a></li>
                <li><?php wp_loginout(); ?></li>
            </ul>
            </li>
        </ul>
        <?php elseif ( get_option('users_can_register') ) : ?>
        <h2>Inloggen</h2>
        <ul>
            <li>
            <form action="<?php bloginfo('url') ?>/wp-login.php" method="post">
                <p>
                gebruikersnaam:<br /><label for="log"><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" style="width: 100px;" /> </label><br />
                wachtwoord:<br /><label for="pwd"><input type="password" name="pwd" id="pwd" style="width: 100px;" /> </label><br />
                <input type="submit" name="submit" value="Log In" class="class" />
                <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> onthoud mij</label><br />
                </p>
                <input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>"/>
            </form>
            </li>

    I hope some1 can help me with it already tried something like login but didnt work at all.

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter khoneini

    (@khoneini)

    someone please?

    Thread Starter khoneini

    (@khoneini)

    bump

    Bump ?

    What about searching instead of bumping ?

    This is a basic html and design issue, I swear you should find this info in 5 second with google…

    ———————————
    If you want a straight text link :

    1- Give a name to your form (here, we name it “register”

    <form action="<?php bloginfo('url') ?>/wp-login.php" method="post" name="register">

    2- And change this line :

    <input type="submit" name="submit" value="Log In" class="class" />

    For this one :

    <a href="#" onClick="document.register.submit();">submit</a>
    ———————————

    ———————————
    If you want to use a jpg or a gif for the button :

    1 – Upload the button jpg or gif in your theme directory/images” and name it, for instance “submit.jpg” (or wathever you like)

    2- Change this line in the code you pasted above :

    <input type="submit" name="submit" value="Log In" class="class" />

    By this :

    <input type="image" name="submit" value="Log In" class="class" src="<?php bloginfo('template_directory'); ?>/images/submit.jpg" />

    Now, the type of button is defins as an image, and the source of this image is your submit.jpg in your theme directory…
    ———————————

    ———————————
    If you want to change the button with css styling, then assing a class to this submit button, for instance here, we will choose to name the class “submit_login”… :

    <input type="submit" name="submit" value="Log In" class="submit_login" />

    And use your style sheet to adjust the style you want for the class “submit_login”… Then, you can also make it appear as a text link…
    ———————————

    S.

    Thread Starter khoneini

    (@khoneini)

    thanks, I didnt found this on google.

    its solved now

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Change button to text link’ is closed to new replies.