Jump to content
Sign in to follow this  
koskos

Как убрать всплывающие категории

Recommended Posts

Когда навожу на главной страницы категорию всплывает под категория

Хочу от этого избавиться.

Подскажите какой файл нужно корректировать и что именно

Спасибо! Version 1.5.6

Снимок экрана 2017-02-16 в 10.37.11.png

Edited by koskos

Share this post


Link to post
Share on other sites

К автору шаблона.

Share this post


Link to post
Share on other sites

Как называется шаблон?

Share this post


Link to post
Share on other sites

Так это платный шаблон. Автор должен оказывать техподдержку. Или вы с вареза его скачали?

Share this post


Link to post
Share on other sites

Идем в файл (catalog/view/theme/шаблон/template/common/header.tpl)

Ищем и удаляем строки, либо закомментируем

<div>
        <?php for ($i = 0; $i < count($category['children']);) { ?>
        <ul>
          <?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
          <?php for (; $i < $j; $i++) { ?>
          <?php if (isset($category['children'][$i])) { ?>
          <li><a href="<?php echo $category['children'][$i]['href']; ?>"><?php echo $category['children'][$i]['name']; ?></a></li>
          <?php } ?>
          <?php } ?>
        </ul>
        <?php } ?>
      </div>

 

Edited by Skunk
[code]

Share this post


Link to post
Share on other sites
В Friday, February 17, 2017 в 10:14, koskos сказал:

opc070164

<div id="res-menu" class="main-menu nav-container1">
<div class="res-menu-inner">
<div class="nav-responsive"><span>Menu</span><div class="expandable"></div></div>
<ul class="main-navigation">
<?php foreach ($categories as $category) { ?>
<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
<?php if ($category['children']) { ?>

<?php for ($i = 0; $i < count($category['children']);) { ?>
<ul>
<?php $j = $i + ceil(count($category['children']) / $category['column']); ?>
<?php for (; $i < $j; $i++) { ?>
<?php if (isset($category['children'][$i])) { ?>
<li>
<?php if(count($category['children'][$i]['children'])>0){ ?>

<?php } ?>

<?php if ($category['children'][$i]['children']) { ?>
<?php /*?><div class="submenu" id="id_menu_<?php echo $category['children'][$i]['id']; ?>"><?php */?>
<ul>
<?php for ($wi = 0; $wi < count($category['children'][$i]['children']); $wi++) { ?>
<li><a href="<?php echo $category['children'][$i]['children'][$wi]['href']; ?>" ><?php echo $category['children'][$i]['children'][$wi]['name']; ?></a></li>
<?php } ?>
</ul>
<?php /*?></div><?php */?>

категории

Edited by Skunk
[code]

Share this post


Link to post
Share on other sites

попробовал в разных вариациях по удалять строки, к сожалению не получилось

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.