Jump to content

Logo link on search result page


ellenb4t

Recommended Posts

Hi guys,

Today I noticed something on the search result page; the logo link refers to an incorrect homepage:

Let me show you:

Go to https://biketubing.com/  and type for example 'Cable Guide' in the search box.

You'll end up here: https://biketubing.com/search?controller=search&s=cable+guide

Now, if you click on the logo top left; the link is: https://biketubing.com/home this page doesn;t exist, so you'll end up on a 404 page.

If on this 404 page or any other page you click on the logo, you'll be directed to the correct homepage link: https://biketubing.com/

As far as I can see, it only occurs on the search result page. No recent updates.

How can I resolve this?

Running on 1.7.8.0

Thank you for helping!

Ellen

Link to comment
Share on other sites

  • 4 weeks later...

Hello, at first you can try to clear cache.

Then, you can see, what you have in this file, where the code is: themes\classic\templates\_partials\helpers.tpl

In classic theme it looks like:

{function renderLogo}
  <a href="{$urls.pages.index}">
    <img
      class="logo img-fluid"
      src="{$shop.logo_details.src}"
      alt="{$shop.name}"
      width="{$shop.logo_details.width}"
      height="{$shop.logo_details.height}">
  </a>
{/function}

Also, you can see this file: \themes\classic\templates\_partials\header.tpl

You need to take note to such code here:

<div class="col-md-2 hidden-sm-down" id="_desktop_logo">
          {if $shop.logo_details}
            {if $page.page_name == 'index'}
              <h1>
                {renderLogo}
              </h1>
            {else}
              {renderLogo}
            {/if}
          {/if}
</div>

if Everything is ok, above, then the problem is in the database data. See what you have in Traffic & SEO tab in BackOffice.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...