Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

favicon


Recommended Posts

Подскажите почему в header.tpl я не могу найти путь прописания favicon, а в когде главной страницы( если в хроме посмотреть код страницы) он присутствует ?

Link to comment
Share on other sites


3 минуты назад, elgufffax сказал:

Подскажите почему в header.tpl я не могу найти путь прописания favicon, а в когде главной страницы( если в хроме посмотреть код страницы) он присутствует ?

Потому, что добавление favicon происходит в файле catalog/controller/common/header.php

 

if (is_file(DIR_IMAGE . $this->config->get('config_icon'))) {
	$this->document->addLink($server . 'image/' . $this->config->get('config_icon'), 'icon');
}

 

Link to comment
Share on other sites

@elgufffax 
Это гделается в цикле foreach($links as $link) {}

А сам линк добавляется в контролере.

Но иконку для Favicon вы можете усиновить в админ панеле "Система - настройки - изображения - иконка"
 

Link to comment
Share on other sites

а мне янгдекс написал что на сайте нет ионки потому что  - в формате PNG, при этом для нее не добавлен type="image/png".

как можно добавить в контроллере type="image/png"  ?

Link to comment
Share on other sites


Положил в корень 16x16 icon , в код ничего не всивлял ,через негделю значок появился в поисковике. Интересно если в корень положить png 32x32 ,есть вероятность что тоже что-то подхватит ?

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
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.