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

Collection of 200+ Free Joomla templates, support Joomla 3.9.x and Joomla 4 Listing of 300+ Best Free WordPress themes, WooCommerce compatible, Elementor supports!

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”.”;

Are you Web Freelancer or Web Design Company? Join our Club and Access our Resource!

500+ Premium Joomla! and WordPress themes just $8.70/Month, Quickstart (dummy) package included, unlimited domains!

40off

BLACK FRIDAY 50% OFF!

Access Life-time All-In-One Membership with all 500+ Premium WordPress themes and Joomla templates and new theme(s) every month just $199.50 (instead of $399). Life-time PRO theme access, download and support, no renewal in the future.

About Developer package of All-In-One Membership

The Pandemic Continues So Do Our Support! We're offering 40% Discount on all purchases! Code: WORKATHOME More Details
Black Friday Sale! Get extra 50% OFF for all purchases. Coupon code: LTBFCM50 More Details