How to change URL on the main LOGO?

Dear Gurus,

I need to change the URL on the main LOGO to point into main portal.

Does anyone know how to achieve this?

Thanks

The LOGO_URL setting looks like what you need

I think you will have to override the header template logo block.
(custom/templates/core/header.html)

  {% block logo %}
    <a style="min-height: 60px;" href="<your url>">
      <img class="header-logo" src="{{ logo_url }}">
    </a>
        {% endblock %}

adopt the link around the img.

1 Like

LOGO_URL is the URL to fetch the log image from. So to customize the link a template override is needed.

Ah right, misread his question.

i used this to change the image and the link but the main menu is gone.

Show us the full template you used in the overrides. My guess would be that you forgot to inherit from the original template. To override the logo block your template should have this structure:

{% extends '~header.html' %}

{% block logo %}
    ...
{% endblock %}
{% block logo %}
    <a style="min-height: 60px;" href="https://google.mn">
      <img class="header-logo" src="https://upload.wikimedia.org/wikipedia/commons/8/85/Logo-Test.png">
    </a>
        {% endblock %}

You’re missing the {% extends '~header.html' %} at the beginning of the template.

1 Like