Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8533603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:00:01+00:00 2026-06-11T10:00:01+00:00

i am trying to get my wordpress theme to look like this: <input id=author

  • 0

i am trying to get my wordpress theme to look like this:

<input id="author" class="inputsection" name="author" type="text" onfocus=" if (this.value == 'name...') {this.value = '';}" value="name..." />

<input id="email" class="inputsection_right" name="email" type="text" onfocus=" if (this.value == 'email...') {this.value = '';}" value="email..." />

<textarea id="comment" name="comment" cols="5" rows="5" class="inputlargesection"></textarea>

<input name="submit" type="submit" value="Submit" class="formbutton">

I am using the standard comment_form() function which wordpress asks for.

This is how i have done this:

<?php

comment_form(

array(
    'author' => "<input id=\"author\" class=\"inputsection\" name=\"author\" type=\"text\" onfocus=\" if (this.value == 'name...') {this.value = '';}\" value=\"name...\" />",
    'email'  => "<input id=\"email\" class=\"inputsection_right\" name=\"email\" type=\"text\" onfocus=\" if (this.value == 'email...') {this.value = '';}\" value=\"email...\" />",
    'url'    => false,
    'comment_field' => '<textarea id="comment" name="comment" cols="5" rows="5" class="inputlargesection" aria-required="true"></textarea>'
)

) ; 

?>

But this is not working.

How do i make it so it looks like what i am after. no other elements, no code allowed text etc.

Ive been sorting through both wordpress codex and google and i am not finding exactly what i need.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:00:02+00:00Added an answer on June 11, 2026 at 10:00 am

    looks like the fields should be put in an extra array:

    <?php
    
    comment_form( array(
    
        'fields' => array(
            'author' => "<input id=\"author\" class=\"inputsection\" name=\"author\" type=\"text\" onfocus=\" if (this.value == 'name...') {this.value = '';}\" value=\"name...\" />",
            'email'  => "<input id=\"email\" class=\"inputsection_right\" name=\"email\" type=\"text\" onfocus=\" if (this.value == 'email...') {this.value = '';}\" value=\"email...\" />",
            'url'    => false,
        ),
        'comment_field' => '<textarea id="comment" name="comment" cols="5" rows="5" class="inputlargesection" aria-required="true"></textarea>'
    
    ) ); 
    
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating wordpress theme. I get this error inside a textarea: Trying to get
I'm using a wordpress theme that I built and I'm trying to get a
I'm trying to get my Wordpress theme to pull up a thumbnail image for
I'm trying to convert my HTML to Wordpress theme. So my navigation is like
Hi I am trying to instegrate a slider into my wordpress theme.This is what
I'm trying to edit template of this theme for Wordpress theme: http://demo.fabthemes.com/financio/ At the
I'm trying to get the Thesis theme working in Wordpress, and it's almost perfect.
I am trying to work this function in wordpress theme the way where I
I'm trying to create a website that allows for easy theme adding/manipulation like wordpress
i am trying to get wordpress posts, 3 at a time, this is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.