Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

How can I edit the link in my store's logo?

Started by lostmytophat, October 03, 2016, 04:51:28 PM

Previous topic - Next topic

lostmytophat

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?

digitalt

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.

lostmytophat


Forum Rules Code of conduct
AbanteCart.com 2010 -