Hi David,
Could you please show me how to insert logo/company name above the search bar on the homepage and also on the product/price search result page below the "home" link.
Thanks and very much appreciate of your time taken out to help.
Cheers,
Dan
You need to add in default.css, inside the body tag the code below:
background-image:url('img.png');
background-repeat:no-repeat;
background-position: center 15px;
You need to change img.png to your own image address, and the position. More details about positioning backgrounds you can find at http://www.codertools.com/css_help_guide/css_background-position.aspx.
Hope it helps.
Hi Dan,
It's probably best to handle it in one place for both scenarios, i.e. in html/header.php. If the search box on your home page is centered, the following code will show your logo / company name centered on the home page, and left aligned (below the menu) on all other pages.
Simply insert the following code at the very END of html/header.php
<?php
if (strpos($_SERVER["PHP_SELF"],"index.php")!==FALSE)
{
print "<div id='logo' align='center'>";
}
else
{
print "<div id='logo'>";
}
?>
<img src='/images/logo.jpg' />
<h3>Your Company Name Here!</h3>
<?php
print "</div>";
?>
The above assumes your logo in /images/logo.jpg, and simply change the company name text as required.
Hope this helps!
Cheers,
David.