Author Topic: How can I edit the link in my store's logo?  (Read 5401 times)

Offline lostmytophat

  • Newbie
  • *
  • Posts: 33
  • Karma: +6/-0
    • View Profile
How can I edit the link in my store's logo?
« on: October 03, 2016, 04:51:28 PM »
I'd like to be able to edit the link that's in my store's logo. I found I can do it by changing my store's URL in the settings, but that causes serious problems in displaying the page. I'm hoping there's another way. In a script file somewhere?

Offline digitalt

  • Full Member
  • ***
  • Posts: 116
  • Karma: +20/-0
    • View Profile
Re: How can I edit the link in my store's logo?
« Reply #1 on: October 04, 2016, 06:36:12 AM »
Take a look at header.tpl.  Check out starting about line 12 for this:

      <a class="logo" href="<?php echo $homepage; ?>">
         <img src="resources/<?php echo $logo; ?>" width="<?php echo $logo_width; ?>" height="<?php echo $logo_height; ?>" title="<?php echo $store; ?>" alt="<?php echo $store; ?>"/>
      </a>
      <?php } else if (!empty($logo)) { ?>
          <a class="logo" href="<?php echo $homepage; ?>"><?php echo $logo; ?></a>
       <?php } ?>

I think you can hard code the URL you want there.  I would suggest installing dev_tools and clone your template and then make the changes to your cloned theme.

If I missed the mark here, someone else can correct me, but it looks like that is where you need to make the change. $homepage calls the URL in settings.

Offline lostmytophat

  • Newbie
  • *
  • Posts: 33
  • Karma: +6/-0
    • View Profile
Re: How can I edit the link in my store's logo?
« Reply #2 on: October 04, 2016, 11:13:20 AM »
That worked perfectly, thanks!  :)

 

Powered by SMFPacks Social Login Mod