Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Store Logo Link


6 replies to this topic

#1 waynerp

  • Community Member
  • 8 posts
  • Real Name:Wayne

Posted 12 January 2012, 08:49

Hi All.
I KNOW this is a newbie question but can't find the answer and would be really grateful for any advice.
How do i make the store logo link back to my website??
many thanks

#2 DunWeb

  • Community Sponsor
  • 10,466 posts
  • Real Name:Chris Dunn
  • Gender:Male
  • Location:Tecumseh, Ontario, Canada N8N 1X8

Posted 12 January 2012, 08:57

Wayne,

By default, the store logo is linked to your index.php as defined in the /includes/header.php file in 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>


Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

:|: Click Here to learn how I can help you with custom coding, add ons, security and templates :|:

:|: Need an Area Calculator, Pre-Paid Account, Virtual Pin, Auction or Layaway Add on ? Click Here :|:

#3 waynerp

  • Community Member
  • 8 posts
  • Real Name:Wayne

Posted 12 January 2012, 13:03

thanks for that.
so to change it how would i do that, ie: what part of the code <?php echo '<a href="'ww.abc.com '">'
is that right??

many thanks

#4 thadeus

  • Community Member
  • 16 posts
  • Real Name:deniz

Posted 12 January 2012, 13:33

like this


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


#5 waynerp

  • Community Member
  • 8 posts
  • Real Name:Wayne

Posted 12 January 2012, 19:57

hmm its giving me a weird address http://www.pcperfect.co/shop/www.pcperfect.co
any ideas?

#6 bktrain

  • Community Member
  • 2,093 posts
  • Real Name:Brian
  • Gender:Male
  • Location:On the brink of insanity

Posted 12 January 2012, 20:33

Change
  <div id="storeLogo"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div>
to
  <div id="storeLogo"><?php echo '<a href="' . HTTP_SERVER . '">' . tep_image(DIR_WS_IMAGES . 'store_logo.png', STORE_NAME) . '</a>'; ?></div>
Or just add
http://
before the www.
Remember to backup database, files and pictures.

I reject your reality and substitute my own.
My mind not only wanders, it sometimes leaves completely.
The problem with the gene pool is that there is no lifeguard.
Everyone’s entitled to my opinion.


Links
Security
SSL Help
Basics for design
Basics for design V2.3+
How Do I ...?

#7 waynerp

  • Community Member
  • 8 posts
  • Real Name:Wayne

Posted 12 January 2012, 21:28

You ARE a superstar
many thanks