Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #899293

    Hello,

    I’m updating an site and i found a problem with some code.

    The original site have a custom area with that code:

    <div id=”loginhome”>
    <?php if (!(current_user_can(‘level_0’))){ ?>
    <form action=”http://www.rodosys.srv.br/login/valida_formulario_login.php&#8221; method=”post”>
    <spam style=”font-size: 11px; color: #999;”>E-mail</spam> <input type=”text” name=”email_login” id=”email_login” value=”” size=”20″ />
    <spam style=”font-size: 11px; color: #999;”>Senha</spam> <input type=”password” name=”password_login” id=”password_login” size=”20″ />
    <input type=”submit” name=”submit” value=”Login” class=”button” />
    </form>

    <?php } else { ?>

    <spam style=”font-size: 11px; color: #999; “>Olá <?php $user_info = get_userdata(1);
    echo ‘ ‘ . $user_info->user_login . “\n”;

    ?>| Sair </spam>
    <?php }?>

    </div>

    I add this code in the header.php but I’m using a floating menu. How can I fix that div with the menu area?

    #899607

    Hey pontatv,

    That will take up half of the page, which is not user-friendly. The login part should be a link with the popup or horizontal form at least.

    Please, let me know what you think.
    Best regards,
    Victoria

    #899659

    Victoria, they askad the login area on the right side of the mennu bar. is it possible?

    #900258

    Hi,

    I’m not sure but I think so, did you try to add the code to a sidebar widget?

    Best regards,
    Rikard

    #900933

    Sorry, I dont know how

    #901284

    Hi,

    You can add widgets under Appearance->Widgets.

    Best regards,
    Rikard

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.