2008-11-06 23:54:09

marteueh
Member
beta

customize the button search

Hello
It’s possible to customize the button that starts the search with css?
you would you give me some suggestions on how to operate?
thanks

Offline

 

2008-11-07 23:47:30

thebombsite
Plugin Author
omega
Real name: Stuart
From: Exmouth, England
Known languages: Doh!
Website

Re: customize the button search

The easiest way I have found is to replace the TXP tag with code similar to this:-

<form id="searchForm" method="get" action="<txp:site_url />search">
<p><input id="searchInput" type="text" name="q" value="" size="25" /><input id="searchButton" type="submit" value="Go" /></p>
</form>

This is similar to the code that the tag outputs but would allow you to add your own style hooks to use in your CSS. Note that I have a separate “search” section so you should adjust the “action” attribute to suit your site.

Last edited by thebombsite (2008-11-07 23:48:20)


Stuart – The BombsiteProText ThemesTextgarden

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

 

2008-11-09 02:21:28

marteueh
Member
beta

Re: customize the button search

Thanks for your advice
I solved the problem
compliments for your website that is very interesting
bye

Offline

 

2009-09-30 05:26:16

gfdesign
Member
thêta
Real name: Fernando
From: Argentina
Known languages: es, en

Re: customize the button search

Dears
In this code… How do I indicate the specific form I want to use for the results ?
Thanks

Offline

 

2009-09-30 11:36:24

uli
Moderator
omega
Real name: Uli
From: Cologne/Köln
Known languages: de > en

Re: customize the button search

You put a searchform="form name" in your article tag


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

 

2010-06-13 13:28:24

fantasmo
Member
gamma

Re: customize the button search

Hi, but when I use the html-code instead of the txp-search-tag…i can not show the word, the person typed in, on the search results page??!

Offline

 

2010-06-21 05:53:58

Katalonian
Member
êta
Real name: Ziya
From: Baku, Azerbaijan
Known languages: Russian, Azeri, Turkish, English
Website

Re: customize the button search

Hi guys! How i can put my image button instead of button value “go” ?


<txp:txp_me />

Offline

 

2010-06-21 08:05:37

Gocom
Developer
omega
Real name: Jukka Svahn
Website

Re: customize the button search

Katalonian wrote:

Hi guys! How i can put my image button instead of button value “go” ?


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

 

2010-06-21 11:00:36

philwareham
Core designer
sigma
Real name: Phil Wareham
From: Farnham, UK
Website

Re: customize the button search

jQuery UI is a good way of styling buttons, the bonus being someone else has done all the legwork in getting buttons to display identically in a wide selection of browsers…

jQuery UI Buttons

Offline

 

2010-06-23 09:18:01

Katalonian
Member
êta
Real name: Ziya
From: Baku, Azerbaijan
Known languages: Russian, Azeri, Turkish, English
Website

Re: customize the button search

Guys, i created a search page from this tutor:
Search with Textpattern

But i can’t stylize search results with txp search tags. for example:

<div class=“search_blocks”>
<div class=“search_block”>
<div class=“search_topic”><txp:search_result_title /></div>
<div><txp:search_result_excerpt /></div>
<div class=“search_link”><txp:search_result_url /></div>
</div>

How to do?

Last edited by Katalonian (2010-06-23 09:19:47)


<txp:txp_me />

Offline

 

Powered by FluxBB