Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change style of function called fields


  • Dakcenturi
    Member

    @dakcenturi

    Is there a way to change the style of fields that are called via a function. IE change the look of <?php bb_profile_data_form(); ?>

Viewing 5 replies - 1 through 5 (of 5 total)

  • Ashish Kumar (Ashfame)
    Participant

    @ashfame

    I think CSS is all you need. The function generated the data in a table, not good I know, but it is how it is.


    Dakcenturi
    Member

    @dakcenturi

    What are the ID’s to modify the CSS on?


    Ashish Kumar (Ashfame)
    Participant

    @ashfame

    Use Firebug (Firefox addon)or simplest(ugliest) View Page Source option.

    P.S. We are at bbPress support forums and not at a web development one


    Dakcenturi
    Member

    @dakcenturi

    Here is a section of the view source:

    <tr class=”form-field”>

    <th scope=”row”>

    <label for=”first_name”>First name</label>

    </th>

    <td>

    <input name=”first_name” id=”first_name” type=”text” value=”” />

    </td>

    </tr>

    Now I tried and none of them made any noticeable change.:

    .input{

    background-color: #171717;

    color: #00CC00;

    }

    #first_name{

    background-color: #171717;

    color: #00CC00;

    }

    .form-field{

    background-color: #171717;

    color: #00CC00;

    }

    In order to get it to work on one of the other forms I actually put the style in the input code, but I don’t know how to access the input code as it is being called via php and isn’t a .php file in the theme.


    Ashish Kumar (Ashfame)
    Participant

    @ashfame

    PHP just creates the HTML, so if you need to style HTML, you don’t need to do PHP. Just work on the HTML produced by view-source

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar