Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2004
    Thanked 0 Times in 0 Posts

    Question How to find the form in wordpress files...


    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 } ?>
    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!

    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...

  2. #2
    Senior Coder
    Join Date
    Apr 2011
    London, England
    Thanked 354 Times in 353 Posts
    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 (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.
    "I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
    Validate your HTML and CSS

  3. #3
    New to the CF scene
    Join Date
    Aug 2012
    11160 Grace Avenue Fountain Valley, CA 92708, United States
    Thanked 0 Times in 0 Posts
    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts