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>

I'm no longer active at the OC Forum. To reach me, contact: jti@jacob.ch
A Demoversion of my free OpenCart LIGHT v.1.5.6.5 Software Edition
can be seen in Action here: http://www.jti.li/shop/
---
940+ FREE OC Extension-Repositories - from OC v.1.5.x up,
on the world's largest OC-related Github Site: https://github.com/IP-CAM
---
Image


User avatar
Legendary Member

Posts

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

Users browsing this forum: No registered users and 32 guests