Jump to content



- - - - -

Putting an image next to the store logo


This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1   JustinS

JustinS
  • Members
  • 127 posts

Posted 17 June 2012 - 01:32 AM

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

#2   al3ks

al3ks
  • Members
  • 288 posts

Posted 17 June 2012 - 01:42 AM

/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. :)

#3   JustinS

JustinS
  • Members
  • 127 posts

Posted 17 June 2012 - 01:57 AM

Thanks buddy I'm going to give it a shot in a little bit

#4   JustinS

JustinS
  • Members
  • 127 posts

Posted 17 June 2012 - 02:14 AM

@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.

Edited by JustinS, 17 June 2012 - 02:14 AM.


#5   germ

germ
  • Members
  • 13,921 posts

Posted 17 June 2012 - 02:52 AM

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 >

#6   JustinS

JustinS
  • Members
  • 127 posts

Posted 17 June 2012 - 05:29 AM

@germ
Thanks! That's very nice to know.

#7   germ

germ
  • Members
  • 13,921 posts

Posted 17 June 2012 - 12:51 PM

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 >