Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Putting an image next to the store logo


JustinS

Recommended Posts

How do I accomplish this? Just wanting to have an image of equal height next to my store logo to fill up some of the blank space there. If someone could tell me the file name and in what folder it is located that'd be awesome!

 

Thanks a lot

Link to comment
Share on other sites

/includes/header.php

 

find this code:

<div id="storeLogo">
<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?>
</div>

 

This is what shows the logo.

 

You'd use a similar code to display a different image.

 

If it is not a hyperlink you'd use something like this:

 

<?php echo  tep_image(DIR_WS_IMAGES . 'myImage.jpg'); ?>

 

your image has to be uploaded to the /images folder and then you need to specify the image name in the code, instead of 'myImage.jpg'

Find this post helpful? Click the 'Like this' button. :)

Link to comment
Share on other sites

@@al3ks

Haven't had time to really check it yet but should I specify width/height in that php somewhere so the page doesn't move around while loading or does that not happen with php? If so how would I throw that in there? I pretty much don't know anything about php yet.

Link to comment
Share on other sites

The tep_image() function interrogates the image size and supplies that in the HTML output.

 

The only time you need to supply it is if you want the image at something other than full size.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I mean this in a non-derogatory manner so please don't be offended....

 

Has anyone ever told you your profile photo bears a resemblance to Robert Pattinson in the "Twilight" Series?

 

So just stay away from that pretty ladys' jugular or I'll have to break out the Holy water, silver crucifix, and wooden stake...

:thumbsup:

 

:lol:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...