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” 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?
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
Victoria, they askad the login area on the right side of the mennu bar. is it possible?
Hi,
I’m not sure but I think so, did you try to add the code to a sidebar widget?
Best regards,
Rikard
Sorry, I dont know how