hi there,
can you please point me what modification i have to make to add the post excerpt on the first slider of “big slider”?
I”m trying to insert this line from module 1
<p><?php echo $this->get_excerpt(td_util::get_option(‘tds_’ . ‘mod7_content_excerpt’));?></p>
into this file td_module_slide_big.php but no luck so far.
thanks!
Hi,
Please follow this topic to add excerpt to the Big Grid: https://forum.tagdiv.com/topic/how-can-i-show-up-excerpts-text-on-big-grid-image-not-only-title/
Thanks!
Hi,
Please try to add this code in big slide module: http://screencast.com/t/80VT7i2j6e an also the excerpt’s function from td_module.php: http://screencast.com/t/GhMUGRBfLtk
<div class="td-excerpt">
<?php echo $this->current_post->get_excerpt(25);?>
</div>
function get_excerpt($lenght = 25, $show_shortcodes = '') {
if ($this->post->post_excerpt != '') {
return $this->post->post_excerpt;
}
if (empty($lenght)) {
$lenght = 25;
}
$buffy = '';
//print_r($this->post);
//remove [caption .... [/caption] from $this->post->post_content
$post_content = preg_replace("/\[caption(.*)\[\/caption\]/i", '', $this->post->post_content);
$buffy .= td_util::excerpt($post_content, $lenght, $show_shortcodes);
return $buffy;
}
And also this css in Theme Panel > Custom Css: http://screencast.com/t/tnNg3nS8eCjC
.td-big-grid-meta .td-excerpt{
bottom: 0px;
left: 0;
position: absolute;
color:white;
background-color: blue;
}
.td-sbig-title-wrap {
position: absolute;
bottom: 20px;
left: 0px;
}
.td-big-grid-title .td-sbig-title-wrap{
bottom: 20px;
}
This is not an easy task if you don’t have some basic php/css experience… also it is possible to need more css customization.
Thanks!
-
This reply was modified 11 years by
Alin [tagDiv].