Become a premium member to remove ads
KrazyHydra

Webdesign help

2 posts in this topic

For those that do webdesign, I need some help. I'm working on a student organization website at my university. Luckily, wordpress is a simple tool that basically let me do as much as  i could without any knowledge in CSS or HTML of that sort. But right now, the contact form on my website is the same color text as the background, so when you go to enter in your information/question, you can't read shit.

 

I'm trying to change the color, but it looks like I have to manually input a code to change the color of the text. The following is what I got from the Contact form.php ... but honestly I have no idea what I'm doing.

 

'<?php

 
add_action('wp_ajax_om_ajax_contact_form', 'om_ajax_contact_form');
add_action('wp_ajax_nopriv_om_ajax_contact_form', 'om_ajax_contact_form');
 
function om_ajax_contact_form() {
 
if ( get_magic_quotes_gpc() ) {
$_POST = stripslashes_deep( $_POST );
}
 
$email = get_option(OM_THEME_PREFIX.'form_email');
if(!$email)
{
echo '1';
die();
}
 
 
$html='<h3>'.__('Contact Form', 'om_theme').'</h3>';
$html.='<table border="1" cellpadding="5"><tr><td>'.__('Date', 'om_theme').'</td><td>'.date('F j, Y H:i').'</td></tr>';
 
if(is_array(@$_POST['fields'])) {
foreach($_POST['fields'] as $k=>$v) {
$html.='<tr><td>'.base64_decode($k).'</td><td>'.str_replace("\n",'<br/>',htmlspecialchars($v)).'</td></tr>';
}
}
$html.='</table>';
 
add_filter('wp_mail_content_type',create_function('', 'return "text/html";'));
if( wp_mail( $email, __('Contact form filled','om_theme'), $html ) )
echo '0';
else
echo '1';
 
  die();
}'
 
The code is within the ' ' 
Edited by KrazyHydra

Share this post


Link to post
Share on other sites

Well what you can do is add this before <?php part:

<html>  <body style="color: whatevercoloryouwanthere">

and at the end you add this to close that part above:

  </body></html>

All of this are just plain HTML. I do not know if this will work 100% since I don't have enough information from you to help out.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now