News:

Support the VirtueMart project and become a member

Main Menu

How to make linkable category image

Started by mratki, September 08, 2021, 12:12:27 PM

Previous topic - Next topic

mratki

Hello, is it possible to make category image linkable in product category view?

Link to webp: https://getim.eu/dev/em-trgovina/index.php/prodajni-program

Regards,
M

Jörgen

This would be a question for the mega-shaper template.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

mratki

They don't know the answer either... can you help me?

Regards,
M

jenkinhill

Look at the default VM template code (which has the image link in place)   /components/com_virtuemart/sublayouts/category.php  and compare that with your template override, /templates/shaper_megadeal_ii/html/com_virtuemart/sublayouts/category.php

That should guide you to the code to use. We cannot help with the exact code as that would require us to have a copy of your template.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

mratki

Something in their overrided category.php file was blocking link, I just deleted part for wrapping image and it's working now. Thank you so much!

Regards,
M