Forums / Templates, Stylesheets, Page Layout / Show Product Listing only for search results

Show Product Listing only for search results

Views: 774

Results 1 to 6 of 6
31 Oct 2011, 3:03 AM
#1
matthew1246 avatar

matthew1246

New Zenner

Join Date:
Oct 2011
Posts:
4
Plugin Contributions:
0

Show Product Listing only for search results

So far I have set in stylesheet.css to:
display: none for #productListing. How do I get productListing to show only for search results? So when you click Search button for "Enter search keywords here" here on homepage, the search results show. I'm using Pink Boutique template and my website is www.udance.com.au.
Please help.

31 Oct 2011, 10:28 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Show Product Listing only for search results

Something like this:

#indexProductList #productListing {display: none;}

Not sure why you don't want to display product listings, though.

31 Oct 2011, 12:54 PM
#3
matthew1246 avatar

matthew1246

New Zenner

Join Date:
Oct 2011
Posts:
4
Plugin Contributions:
0

Re: Show Product Listing only for search results

stevesh:

Something like this:

#indexProductList #productListing {display: none;}

Not sure why you don't want to display product listings, though.

I've already done that. I want the search page to show productListing but I don't want any other webpages to show productListing.

31 Oct 2011, 1:07 PM
#4
matthew1246 avatar

matthew1246

New Zenner

Join Date:
Oct 2011
Posts:
4
Plugin Contributions:
0

Re: Show Product Listing only for search results

The form for the search box shows this website address for the serch box: http://www.udance.com.au/index.php?main_page=advanced_search_result
I want make this webpage show #productListing div but I can't find the right webpage. The best I could find is advanced_search_result.php but that is not the html.

31 Oct 2011, 1:43 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Show Product Listing only for search results

Matthew1246:

I've already done that. I want the search page to show productListing but I don't want any other webpages to show productListing.

The rule I provided does exactly that in Web Developer on your site.

2 Nov 2011, 2:56 AM
#6
matthew1246 avatar

matthew1246

New Zenner

Join Date:
Oct 2011
Posts:
4
Plugin Contributions:
0

Re: Show Product Listing only for search results

stevesh:

The rule I provided does exactly that in Web Developer on your site.

Sorry I thought what you wrote was a typo. Thankyou it works.
I thought you meant what you wrote with a comma.
#indexProductList, #productListing {display: none;}

:)