Page 1 of 1

Menu Dropdown item is not active

Posted: Sat Feb 03, 2018 12:29 am
by jakuba
Hello,

I want my items with dropdown to have active ahref.
https://demo.opencart.com/

After clicking on firts item Desktop or the second one -> nothing happend. It is not user friendly.

Where can I activate that - in source code item have a href set but after clicking on the item nothing happend.

Re: Menu Dropdown item is not active

Posted: Sat Feb 03, 2018 1:49 am
by IP_CAM
in the MENU.TWIG File, you could try, to replace:

Code: Select all

<a href="{{ category.href }}" class="dropdown-toggle" data-toggle="dropdown">{{ category.name }}</a>
with this:

Code: Select all

<a href="{{ category.href }}">{{ category.name }}</a>
It has been solved in older versions in a similar way.
Good Luck ;)
Ernie

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<modification>
<id>Make Top Links Clickable</id>
<version>OS v.1.5.6.5</version>
<vqmver>2.4.1</vqmver>
<author>cyclops</author>
<file name="catalog/view/theme/*/template/common/header.tpl">
<operation error="log">
<search position="replace" ><![CDATA[<a href="<?php echo $category['href']; ?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo $category['name']; ?></a>]]></search>
<add><![CDATA[
	<a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
]]></add>
</operation>
</file>	
</modification>