Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-05-07 04:42:18

ideaguy
New Member
Registered: 2007-05-07
Posts: 2

changing background color in form

Good Evening,

I am new to this and I have been trying to play around with textpattern to change the background color for the search and browse input forms on the typical front page. I can change the background color, but it does not apply it inside the input text box or drop down menu. How do you change the name for these too? Instead of Browse change to Browse Products – for example.

Sorry, but how do you replace the title of site to an image of the title on the front page?

Thank you in advance,
ideaguy

Offline

#2 2007-05-09 05:48:04

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: changing background color in form

For the background color of the input, add this to your CSS (if your’re using the default theme):

#sidebar-2 input { background: #fafafa; }

Offline

#3 2007-05-09 08:51:30

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: changing background color in form

ideaguy schrieb:

Instead of Browse change to Browse Products – for example.

Put this bit of code into your site:

<p>Browse Products</p>
<form action="/search/" method="get" class="YourClass">
<input type="text" name="q" value="" size="16" /></form>

then all search results will be displayed in section ‘search’ – don´t forget to add a section called search. of xourse you can use any other section as well.

Offline

#4 2007-05-09 22:58:13

ideaguy
New Member
Registered: 2007-05-07
Posts: 2

Re: changing background color in form

Thank you for the background color help with adding input for sidebar-2, but how would you change the color also for the popup list of categories on the front. I tried looking for the name of the jump type popup category list, but could not find it? Could you let me know what it is and how did you find it???

Second part, sorry…. I have created forms before and understand how to use them, but with textpattern kinda confused. On the front page is the word browse with the popup category list right below it. I just want to change this name to browse categories instead but where on the default theme do you replace or put in??

Next, why do you use the “/” in the action form and name the input “q”, and how do I call it back.

<p>Browse Products</p>
<form action=”/search/” method=“get” class=“YourClass”>
<input type=“text” name=“q” value=”“ size=“16” /></form>

thanks

Offline

#5 2007-05-10 13:20:43

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: changing background color in form

ideaguy, if you look at the source of your page in your browser, you will see all the divs, classes, id etc that TXP outputs. This will help you know what to apply your css to.


BB6 Band My band
Gud One My blog

Offline

Board footer

Powered by FluxBB