Post by jakuba » Sat Feb 03, 2018 12:29 am

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.

Active Member

Posts

Joined
Fri Jul 08, 2011 12:51 am
Location - CZ-Prague

Post by IP_CAM » Sat Feb 03, 2018 1:49 am

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>

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: Google [Bot] and 55 guests