Excerpt only title

Modern e-commerce WordPress theme to build successful online store with WooCommerce support.
GK User
Wed Mar 26, 2014 9:05 am
Hi,

GK title overay widget fuctions to view title and excerpt on image.

But excerpt is viewed not only post but also html code.

So I want to display only title, or not to display html code.

How ?
User avatar
Junior Boarder

GK User
Wed Mar 26, 2014 9:15 am
Hi,

You can set text length to: 0 in widget configuration or edit ShopAndBuy/gavern/widgets.titleoverlay.php file (around line 144) and add this fragment:

Code: Select all
$art_text = preg_replace('@\[.+?\]@mis', '', $art_text);

after:
Code: Select all
$art_text = $this->cut_text('text', strip_tags($this->wdgt_results[0][0]->post_content));

(twice - in line 144 and 149).
User avatar
Moderator

GK User
Wed Mar 26, 2014 2:00 pm
Thanks !

I set 0 in widget configuration, so Solve it.

Thank you very much ^^
User avatar
Junior Boarder


cron