Rate this item

It's time to create new or re-design your websites to bring it to the next level.

Download 100+ Free Joomla! templates Download 100+ Free WordPress themes

How To Display Link Directly To The Additional field image?

Hi guys! If you want to display link directly to your additional field image then you must change the default K2 code.
You can do it by inserting this following code in the item.php (remember to make a template override):

<? Php
$ Var = $ this-> item-> extraFields-> Image-> value;
$ Var = preg_replace (‘/ <img src = “/’,” “, $ var);
$ Var = preg_replace (‘/ “alt =” Image “\> /’,” “, $ var);
Echo ‘<a href=”‘ .varvar. “TextOfLink”.”;

Looking for a free Landing Pages template to start creating your stunning website?

90+ Landing Styles (Onepage) for Joomla! 80+ Landing Styles (Onepage) for WordPress

30% off for summer holiday!

eskişehir escort izmit Escort bursa escort bayan ankara escort bayan van escort bayan elazığ escort bayan erzurum escort bayan
Intro about 22+ Wordpress Themes support Elementor (#1 Page Builder for Wordpress) Check it out & Download
[Flash Sale!] Get 30% OFF for your PRO purchase or Join Membership on Today! Get Coupon Code!