AbanteCart Community

AbanteCart Development => Customization help => Topic started by: lostmytophat on October 03, 2016, 04:51:28 PM

Title: How can I edit the link in my store's logo?
Post by: lostmytophat 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?
Title: Re: How can I edit the link in my store's logo?
Post by: digitalt 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.
Title: Re: How can I edit the link in my store's logo?
Post by: lostmytophat on October 04, 2016, 11:13:20 AM
That worked perfectly, thanks!  :)