How to change the search text font ?


search.php

<font color = "#A9A9A9">

<form action="<?php echo home_url('/'); ?>">
<input type="text" class="searchbox" name="s" value="type keywords" onFocus="if (this.value=='type keywords')this.value='';" onBlur="if (this.value=='')this.value='type keywords'" />
<input type="image" src="<?php echo get_stylesheet_directory_uri(); ?>/images/searchbutton.png" class="searchbox_submit" value="" />
</form>

</font>

This does not work. So how ?

Recommended Answers

Explain your question properly.
Plus, it's got some php, so I suggest first check in the php thread for any answers.

Jump to Post

All 3 Replies

Explain your question properly.
Plus, it's got some php, so I suggest first check in the php thread for any answers.

Agree with thepythonguy, please be more specific and detailed which font should be change: either the search form's text or the text of searching result.
I believe both of that can be done by CSS
.class{
font-size:??px;
}

Member Avatar

Are you asking for changing the font style or the text in textbox itself? FYI the text is changing when you focus on textbox.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.