how to create a link on image thumb subcategory

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart Themehow to create a link on image thumb subcategory

This topic has been marked as resolved.

Hello

I have a mega menu with subcategories thumb activated.

I see that only the title of the subcategory has a href link, but the image has not. I want that when customers click on the image they get to the subcategory.

I tried to change some code in Category.tpl (catalog/view/theme/burnengine/tb/menu/category.tpl)

I changed the line:

$(this).find(“> a”).after(‘<span><img src=”‘ + image_source + ‘” /></span>’);

into:

$(this).find(“> a”).after(‘<a href=”<?php echo $category['url']; ?>”><span><img src=”‘ + image_source + ‘” /></span>’);

Now I have a link to the main category, but I want a link to the subcategory

Can you help me out.

You can see on http://www.cardprotector.eu –> choose “Secrid leather wallets” –> Click on image of “Mini wallets”

Thanks

Best from Bob

February 10, 2017 at 2:24 am #56247
You will need to register in order to post topics and read replies in the ThemeBurn.com support forums!
February 14, 2017 at 1:01 am #56428

thanks. it works

February 20, 2017 at 1:09 am #56611

Glad we’ve helped :)

BR,
ThemeBurn team

February 23, 2017 at 5:39 pm #56796

Hi
Also I took advantage of this solution.
Works great on pc
However, it does not work on a mobile device ?

BR
Mariusz

August 13, 2018 at 3:08 pm #65141

Hi
It does not work on my nokia windows mobile 8 :(
On newer mobile phones it works without a problem :)

BR
Mariusz

August 13, 2018 at 3:27 pm #65142
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.