Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-01-22 01:31:22

John Wozniak
Member
Registered: 2006-10-20
Posts: 37

How can I edit the default search form HTML?

Where can I get to/at this code? I would like to put a proper form label on the input and style the input with a background. I looked through the forms and pages but didn’t see any that looked like the search code.

Offline

#2 2007-01-22 01:57:37

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: How can I edit the default search form HTML?

u could add the standard search_input tag to a page template, then view that web page in your browser & view source… copy & paste the generated html, and replace the search_input tag with that!

Offline

#3 2007-01-22 02:06:11

John Wozniak
Member
Registered: 2006-10-20
Posts: 37

Re: How can I edit the default search form HTML?

nardo wrote:

u could add the standard search_input tag to a page template, then view that web page in your browser & view source… copy & paste the generated html, and replace the search_input tag with that!

Thanks – I will check that out.

I found this hack, which seems to work ok, however the changes to be made are on line 1050 or so in the taghandlers.php file (later than the tut mentions because it is for a slightly older version of TXP).

Offline

#4 2007-01-22 20:14:57

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: How can I edit the default search form HTML?

I found this hack…

I don’t recommend that.

Offline

Board footer

Powered by FluxBB