Subtitle on Slider

Posted in: Newsmag
Post count: 76

Hello Guys,

Is there any way to include the post subtitle on Slider? At the moment, Slider displays post title, category, and filter.

Post count: 6535

Hi

You can achive that by adding this code in td_module_slide.php file like here: http://screencast.com/t/WDnuBzmxSP

$buffy .= '<div class="td-excerpt"">';
$buffy .= $this->get_excerpt(20);
$buffy .= '</div>';

You also will need this css to set excerpts color: http://screencast.com/t/tAGe0tuWg

.td_module_slide .td-excerpt{
color: white!important;
}

Let me know how it goes.
Thanks!

  • This reply was modified 10 years by Andrei L..
Post count: 76

Thanks Andrei – I will give that a go. Won’t that just be the ‘excerpt’ of the post rather than the sub-title of the post?.

Post count: 6535

Hi

I am not very sure what you mean so please provide more details about this so I can get back to you with a more accurate answer.
Thanks!

Post count: 76

Thanks Andrei,

The text in the subtitle (https://www.dropbox.com/s/o81fqpmuvpo2qyo/subtitle.JPG?dl=0) can be different from an excerpt which I think is just the first x number of words/letters in a post.

Will your solution only pick up the excerpt or is there a solution to present the subtitle of the post on the slider.

Regards,

Richard

Post count: 6535

Hi

The theme won’t get the post subtitle as excerpt because it wasn’t designed like that. However you can set some custom excerpts in post editor: http://screencast.com/t/qUltlMgw46oqhttp://screencast.com/t/zKdp52D7

I hope this helps.
Thanks!

Post count: 76

Hi

Thank you for all your advice. Much appreciated.

Richard

Post count: 76

Hi Andrei

It all went just as you advised – perfect. The site is http://www.womensgolf.com.

Best wishes,

Richard

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newsmag’ is closed to new topics and replies.