View Full Version : How to find the form in wordpress files...

The Alchemist
08-05-2012, 04:46 PM

I was hoping that someone can help me with this as I have no clue where the form for this code lies. I want to redesign it and I don't even know what it is called or if it is in fact already in the code.

It's a login form a box for username and password and then a link that says register...

This is what I find in the php file for the homepage design:

<div class="sidebar-box" style="margin-bottom: 5px;">
<div class="sidebar-box-head" style="height: 0px; padding-top: 5px;">
<?php /*global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID) { ?>
Already with us? Login here:
<?php } else { ?>
Welcome, <?php echo $user_identity; ?>
<?php }*/ ?>
<div class="sidebar-box-content" style="background: none;">
<?php global $user_ID, $user_identity; get_currentuserinfo(); if (!$user_ID) { ?>
<?php $args = array(
'echo' => true,
'redirect' => site_url( ),
'form_id' => 'loginform',
'label_username' => __( 'Username' ),
'label_password' => __( 'Password' ),
'label_remember' => __( 'Remember Me' ),
'label_log_in' => __( 'Log In' ),
'id_username' => 'user_login',
'id_password' => 'user_pass',
'id_remember' => 'rememberme',
'id_submit' => 'wp-submit',
'remember' => true,
'value_username' => NULL,
'value_remember' => false ); ?>
<?php wp_login_form( $args ); ?>

<a href="<?php bloginfo('home'); ?>/wp-login.php?action=register">Register</a>

<?php } else { ?>
<div class="sidebox">
<?php global $userdata; get_currentuserinfo(); ?>
<p>You&rsquo;re logged in as <strong><?php echo $user_identity; ?></strong>
<a href="<?php echo wp_logout_url('index.php'); ?>">Log out</a> |
<?php if (current_user_can('manage_options')) {
echo '<a href="' . get_option('dashboard_url') . '">' . __('Admin') . '</a>'; } else {
echo '<a href="' . get_option('dashboard_url') . '">' . __('Profile') . '</a>'; } ?>
<?php } ?>
</div> The page is for my own business and I have a guy that is supposed to do it but he doesn't seem to know how to do it. So I plead to you coders.. Please help!:confused:

http://andalusitano.com/wp-content/uploads/login.jpg What I want to do is to make the text above the login boxes smaller and I want the word register to either come on the same line as the login and password or have a button for it (an image) next to the login button...

08-05-2012, 08:03 PM
There is a php function named wp_login_form() that inserts the form. This function will probably be found in an included or required file. Look higher up in the code for the words 'include', 'include_once', 'require' or 'require_once'.

Alternatively, use a search tool to search in all files (within your directory) for wp_login_form. I like Agent Ransack (http://www.mythicsoft.com/page.aspx?type=agentransack&page=home) (might be Windows only(?)).

However, the display of the form itself is likely to be controlled by a separate .css file. Search in css files for #loginform.

08-06-2012, 09:25 AM
Several WordPress plugins can also add a contact form to your blog, but a plugin is not so necessary for that. I’m going to show you how you can also create a built-in contact form for your WordPress theme for that.
water heater installation (http://www.noritz.com/home-owners/find-an-installer/)