Hi
You need to add this code in td_module_slide.php:
$buffy .= '<div class="td-excerpt">';
$buffy .= $this->get_excerpt(20);
$buffy .= '</div>';
Change the number from get_excerpts() function if you want more words in excerpts.
You will also need this css in theme panel > custom code > custom css to change text’s color: http://screencast.com/t/SaHG6RceCrU
.slide-meta .td-excerpt{
color: white;
}
Thanks!
HI
Sorry about that, it was my mistake. Yes you can add subtitles in slide by adding this code in td_module_slide.php: http://screencast.com/t/XDwRih0TUMKA
$subtitle = get_post_meta($this->post->ID, 'td_post_theme_settings', true);
if (!empty($subtitle['td_subtitle'])) {
$buffy .= '
' . $subtitle['td_subtitle'] . '
';
}
You also need to replace the above css with this one: http://screencast.com/t/WTOd0TLs
.slide-meta .td-post-sub-title{
color: white;
border: none;
margin: 0;
}
Let me know ho it goes.
Thanks!
Hello,
I would also like to include some text after the title from the content not from subtitle, or excerpt. I know how to strip html tags so it won’t include an image or anything funky, but when I try to put the following code:
$buffy .= $this->get_title();//$this->get_title_main();
$buffy .= $this->get_content();
inside the td_module_slide.php I’m getting an error saying:
Fatal error: Call to undefined method td_module_slide::get_content() in /home/site/public_html/wp-content/themes/Newspaper-child/includes/modules/td_module_slide.php on line 47
Is there anything I’m missing? I mean, if some modules can support text from content, why td_module_slide can’t?
