Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove Search Heading from Sidebox?

Remove Search Heading from Sidebox?

Locked

Views: 1,612

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
4 Oct 2007, 4:43 AM
#1
fancypants avatar

fancypants

New Zenner

Join Date:
Dec 2005
Posts:
18
Plugin Contributions:
0

Remove Search Heading from Sidebox?

I apologize if this has already been asked, but I can't find the answer - I'm surely not looking in the right places...

In the search sidebar I'd like to remove the 'search text' div above the search box. - not just the text but the entire div - so that I'm left with a simple text field and search button.

It appears "tpl_search.php" only handles the content of the search sidebar not the searchHeading div.

Hope I'm making sense. I'm simply trying to clean up the appearance of the sidebar since the 'Search' heading is redundant with the button labeled 'Search'.

Thanks!

4 Oct 2007, 6:19 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove Search Heading from Sidebox?

Are you talking about the sidebox heading?

And a url to your site is always a good move as many will not post with out seeing the issue

4 Oct 2007, 11:32 AM
#3
possum avatar

possum

New Zenner

Join Date:
Sep 2007
Posts:
58
Plugin Contributions:
0

Re: Remove Search Heading from Sidebox?

Hi Fancypants and Kobra,

I have the same challenge as Fancypants with the Heading on the sidebox. I'm trying to remove it on the Better Categories and Book Product Type filter sideboxes instead of the search, but it all looks like the same problem. Each of the sideboxes seem to call a standard function which always has a header.

My site is

https://www.possumbooks.com

and you can see what I have at the moment down the left hand side. (You'll also see that the site is a mess and I have lots of other challenges, but best to try one at a time :smile: )

I haven't yet figured out what file does the actually turns the $content variables into the sideboxes proper.

Possum.

4 Oct 2007, 12:58 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove Search Heading from Sidebox?

possum,

For just the filter boxes this will hide the text if you match the color to the heading determine the color and replace the code for it in the following and add it to your stylesheet

#booktypesHeading {
color: #006633;
}

#bookgenresHeading {
color: #006633;
}
5 Oct 2007, 10:49 AM
#5
possum avatar

possum

New Zenner

Join Date:
Sep 2007
Posts:
58
Plugin Contributions:
0

Re: Remove Search Heading from Sidebox?

Hi Kobra,

Thanks for such a quick reply.

Now that I look back on my post I realise that it wasn't very clear :blush:. What I'm actually trying to do is to get rid of the header bars completely so I can squish up the space taken up in the left hand column. I have lots of extra categories to put in yet and I don't want people to have to scroll just to get to the categories. If I understand your post correctly it will remove the text, but still leave me with the unused space.

My guess is that I'm going to have to find the code that actually creates the sidebox output and make a custom version. Problem is that I have no idea where to find it :blink:

Any thoughts much appreciated.

Possum.
www.possumbooks.com

5 Oct 2007, 1:28 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Remove Search Heading from Sidebox?

If you do not want the heading at all try this:

#booktypesHeading {
display: none;
}

Similar for any that you do not want

5 Oct 2007, 1:57 PM
#7
possum avatar

possum

New Zenner

Join Date:
Sep 2007
Posts:
58
Plugin Contributions:
0

Re: Remove Search Heading from Sidebox?

Thanks kobra!

I had no idea you could turn elements off completely using css. I thought you had to go into the php code. I've turned the header off the categories box too. For anyone else interested the css is:

#categoriescssHeading {
display: none;
}

Thanks again for your help.

Possum.

5 Oct 2007, 8:05 PM
#8
fancypants avatar

fancypants

New Zenner

Join Date:
Dec 2005
Posts:
18
Plugin Contributions:
0

Re: Remove Search Heading from Sidebox?

Sorry for my absence on this thread. I'm right there with possum - didn't even think of display:none

Thanks so much for the help!