teitbite wrote:Hi
Unfortunately not the easiest one
But it got me thinking if not to recode gkModuleTitleLink plugin to support such subtitles. This would work even better, unfortunately this is beyond our support.
Yess... its very difficult to maintain this way for two lines title. can you please just advise just which file/where i can get a solve.
specially if you can suggest me exact which which file/code i need to edit for this.
im using here most of k2 article. i need two line title for both intro and details section. here one of my friend suggest me to replace 46/49 line of template/html/com_k2/default/category_item.php file with this code:
- Code: Select all
<?php
//separate subtitle
if( strpos( $this->item->title, '||' ) === FALSE)
{
$title = $this->item->title;
}else{
$titles = explode('||', $this->item->title);
$headline = $titles[0];
$title = $titles[1];
}
// Creates span around first word of title for unique styling
if (isset($headline))
{
$title = '<span class="headline">' . $headline . '</span>' . $title;
}
echo $title;
?>
im trying it also but not working though he said that he used this code and worked for him.
I need to solve it.