Sorry for my newbiness with this... I would like to make the following amendments to my site and any help with how to do this would be much appreciated. ;o)
Link: http://www.thetrolley.co.uk/products.php?q=Clos+Delem+Semillon+2003
(1) Move search box to where it says "Price search results for Clos Delem Semillon 2003 "
(2) Have a side menu with all the categories, brands & merchants listed. Is that easily possible?
Thanks again.
Chris
Hello Chris,
I'm not familiar with the template you are using - you will be able to get much more detailed layout help from Dave at www.pricetapestrytemplates.com - they have a forum where you can ask design questions etc.
However, I think it is a simple case of modifying the css to shift the search form over to the left which should move it closer to where you want. If you edit default.css and look for the .searchform class it is currently as follows:
.searchform {text-align:center; padding:5px 0px 5px 0px; margin:0px; color:#000; background:transparent; height:60px; font-weight:bold;}
If you change this to:
.searchform {text-align:left; padding:5px 0px 5px 0px; margin:0px; color:#000; background:transparent; height:60px; font-weight:bold;}
...that should do the trick!
Regarding a side menu containing the categories, brands and merchants, this is doable on small niche sites (this looks like a niche site). Firstly, I would seek info from Dave regarding adding a sidebar to every page on your site.
Then it's just a case of adding the category, brand and merchant menu PHP code into your template at the location that will output in the sidebar you have created. The following PHP should make a good starting point; but you can of course modify this via HTML or CSS as required....
<?php
print "<h4>Categories</h4>";
$sql = "SELECT DISTINCT(category) as category FROM `".$config_databaseTablePrefix."products` ORDER BY category";
if (database_querySelect($sql,$rows))
{
print "<ul>";
foreach($rows as $row)
{
print "<li><a href='".$config_baseHREF."search.php?q=brand:".$row["category"]."'>".$row["category"]."</a></li>";
}
print "</ul>";
}
print "<h4>Brands</h4>";
$sql = "SELECT DISTINCT(brand) as brand FROM `".$config_databaseTablePrefix."products` ORDER BY brand";
if (database_querySelect($sql,$rows))
{
print "<ul>";
foreach($rows as $row)
{
print "<li><a href='".$config_baseHREF."search.php?q=brand:".$row["brand"]."'>".$row["brand"]."</a></li>";
}
print "</ul>";
}
print "<h4>Merchants</h4>";
$sql = "SELECT DISTINCT(merchant) as merchant FROM `".$config_databaseTablePrefix."products` ORDER BY merchant";
if (database_querySelect($sql,$rows))
{
print "<ul>";
foreach($rows as $row)
{
print "<li><a href='".$config_baseHREF."search.php?q=merchant:".$row["merchant"]."'>".$row["merchant"]."</a></li>";
}
print "</ul>";
}
?>
Hope this helps!
Cheers,
David.