Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I noticed you are missing the action attribute to your form.</p> <pre><code>&lt;form name="loginform" id="loginform" action="&lt;?php echo get_option('siteurl'); ?&gt;/wp-login.php" method="post"&gt; &lt;input value="Username" class="input" type="text" size="20" tabindex="10" name="log" id="user_login" onfocus="if (this.value == 'Username') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Username';}" /&gt; &lt;input name="rememberme" id="rememberme" value="forever" tabindex="90" type="checkbox"&gt; Remember Me? &lt;br /&gt; &lt;input value="Password" class="input" type="password" size="20" tabindex="20" name="pwd" id="user_pass" onfocus="if (this.value == 'Password') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Password';}" /&gt; &lt;input name="wp-submit" id="wp-submit" value="Log In" tabindex="100" type="submit"&gt; &lt;input name="redirect_to" value="&lt;?php echo get_option('siteurl'); ?&gt;/wp-admin/" type="hidden"&gt; &lt;input name="testcookie" value="1" type="hidden"&gt; &lt;/form&gt; </code></pre> <p>I've added it to your code below.</p> <pre><code>&lt;div id="navbar"&gt; &lt;?php wp_nav_menu( array( 'menu' =&gt; 'Primary Menu', 'container' =&gt; false,'menu_id' =&gt; 'main-nav','depth'=&gt;'2')); ?&gt; &lt;div id="login" &gt; &lt;?php if (!(current_user_can('level_0'))){ ?&gt; &lt;form name="loginform" id="loginform" action="&lt;?php echo get_option('siteurl'); ?&gt;/wp-login.php" method="post"&gt; &lt;input value="Username" class="input" type="text" size="20" tabindex="10" name="log" id="user_login" onfocus="if (this.value == 'Username') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Username';}" /&gt; &lt;input name="rememberme" id="rememberme" value="forever" tabindex="90" type="checkbox"&gt; Remember Me? &lt;br /&gt; &lt;input value="Password" class="input" type="password" size="20" tabindex="20" name="pwd" id="user_pass" onfocus="if (this.value == 'Password') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Password';}" /&gt; &lt;input name="wp-submit" id="wp-submit" value="Log In" tabindex="100" type="submit"&gt; &lt;input name="redirect_to" value="&lt;?php echo get_option('siteurl'); ?&gt;/wp-admin/" type="hidden"&gt; &lt;input name="testcookie" value="1" type="hidden"&gt; &lt;/form&gt; &lt;a class="helpbutton" href="&lt;?php echo get_option('home'); ?&gt;/wp-login.php?action=lostpassword"&gt;&lt;/a&gt; &lt;?php } else { ?&gt; &lt;ul class="admin_box"&gt; &lt;li&gt;&lt;a href="&lt;?php echo get_option('home'); ?&gt;/wp-admin/"&gt;Dashboard&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="&lt;?php echo get_option('home'); ?&gt;/wp-admin/post-new.php"&gt;Write new Post&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="&lt;?php echo get_option('home'); ?&gt;/wp-login.php?action=logout&amp;redirect_to=&lt;?php echo urlencode($_SERVER['REQUEST_URI']) ?&gt;"&gt;Log out&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;?php }?&gt; &lt;/div&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload