Post by TiaID » Wed Nov 21, 2018 7:30 pm

Hello,

In opencart 2 I did know how I could add an alt image tag to my store logo, but on OC 3 I do not know how...

So...

How can I add an alt image tag to my store logo?

New member

Posts

Joined
Fri Feb 15, 2013 9:51 pm

Post by rjcalifornia » Wed Nov 21, 2018 7:40 pm

TiaID wrote:
Wed Nov 21, 2018 7:30 pm
Hello,

In opencart 2 I did know how I could add an alt image tag to my store logo, but on OC 3 I do not know how...

So...

How can I add an alt image tag to my store logo?
Edit the header.twig file:

catalog/view/theme/default/template/common/header.twig

Around line 81

Image
A2 Hosting features: Shared Turbo Boost, Managed Warp 1, Unmanaged Hyper 1, and Warp 2 Turbo


Active Member

Posts

Joined
Fri Sep 02, 2011 1:19 pm
Location - Worldwide

Post by kestas » Wed Nov 21, 2018 7:40 pm

In OC 3.0.2 already are added in file: catalog/view/theme/default/template/common/header.twig

'title' and 'alt' tags

Code: Select all

<div class="col-sm-4">
        <div id="logo">{% if logo %}<a href="{{ home }}"><img src="{{ logo }}" title="{{ name }}" alt="{{ name }}" class="img-responsive" /></a>{% else %}
          <h1><a href="{{ home }}">{{ name }}</a></h1>
          {% endif %}</div>
      </div>

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by TiaID » Wed Nov 21, 2018 8:20 pm

at line 81 teher is something about old browsers....

New member

Posts

Joined
Fri Feb 15, 2013 9:51 pm
Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 79 guests