Post by ceko21 » Tue Sep 22, 2020 10:32 pm

Hello friends. I purchased a theme but I'm having trouble. After 4 categories on my website, the category section becomes a drop-down menu. I am deleting the source code, but there is no change on my website. I clear cache and sass but still no effect. can you help me.
www.eldegmedenciltbakimi.com



catalog/view/theme/goldfish/template/common/menu.twig


catalog/controller/common/menu.php

Newbie

Posts

Joined
Tue Oct 24, 2017 4:34 am

Post by letxobnav » Tue Sep 22, 2020 11:10 pm

The "more" dropdown part is done via javascript (custom.js), not your controller or view:

Code: Select all

$(document).ready(function(){
	jQuery(function($){
	if ($(window).width() > 979)
	{
		var max_elem = 5;	
		if($(window).width() <=980){ max_elem = 3;}
		$('.navbar-nav li').first().addClass('home_first');
		var items = $('.navbar-nav  li.top_level');
		var surplus = items.slice(max_elem, items.length);
		surplus.wrapAll('<li class="top_level hiden_menu dropdown"><div class="dropdown-inner">');
		$('.hiden_menu').prepend('<a href="#" class="level-top">More</a>');
	}
	
	});
});

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by paulfeakins » Wed Sep 23, 2020 6:29 pm

ceko21 wrote:
Tue Sep 22, 2020 10:32 pm
Hello friends. I purchased a theme but I'm having trouble.
Contact the theme developer?

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 40 guests