GK image show - remove links

eCommerce WordPress theme to create online shop with WooCommerce support
GK User
Wed Jan 14, 2015 11:55 am
Hi,

How can I make caption and description for images in GK image show just regular text?
Tnx
User avatar
Senior Boarder

GK User
Wed Jan 14, 2015 2:49 pm
Hi,

Unfortunately it's not possible without editing the widget's code.
You have to change this fragment from InStyle/gavern/widgets.imageshow.php:
Code: Select all
if($titles[$i] != '') {
                  echo '<h3><a href="'.$links[$i].'">' . $titles[$i] . '</a></h3>';
               }
               
               if($images[$i]->post_content != '') {
                  echo '<p><a href="'.$links[$i].'">' . $images[$i]->post_content . '</a></p>';
               }

into:
Code: Select all
if($titles[$i] != '') {
                  echo '<h3>' . $titles[$i] . '</h3>';
               }
               
               if($images[$i]->post_content != '') {
                  echo '<p>' . $images[$i]->post_content . '</p>';
               }
User avatar
Moderator

GK User
Wed Jan 14, 2015 6:57 pm
That was easy :) Tnx
User avatar
Senior Boarder


cron