Hello,
I would like to show excerpts text on Big grid image not only title.
Theme panel>excerpts>Big grid module used on td block big grid
There is no field to show exceperts text. How can I show it on the following the largest one image?
http://themeforest.net/item/newsmag-news-magazine-newspaper/full_screen_preview/9512331
Hi,
You have to edit the Big Grid code – http://screencast.com/t/4nnvYd442q
<div class="td-excerpt">
<?php echo $this->current_post->get_excerpt(25);?>
</div>
And apply some css to make it white – http://screencast.com/t/MEITPzjS
Thank you, Emil G.
-
This reply was modified 11 years by
Emil G.
Hi,
Please use this custom css: http://screencast.com/t/XCS9Eztym2O
.td-big-grid-post-1 .td-excerpt,.td-big-grid-post-2 .td-excerpt,.td-big-grid-post-3 .td-excerpt,.td-big-grid-post-4 .td-excerpt{
display:none;
}
Thanks!
One more thing-
>And apply some css to make it white – http://screencast.com/t/MEITPzjS
I added this CSS and it worked. But it also changed all another body section expcerpt made white-out…
Should I add custom class? Could you please advise?
Hi,
Adding this custom css in Theme Panel > Custom Css should apply only at Big Grid’s excerpt:
.td-big-grid-post .td-excerpt{
color:white;
}
Thanks!
Hello,
Your provided code;
<?php echo $this->current_post->get_excerpt(25);?>
the word count doesn’t work correctly because of under 2 byte languag(Japanse, Chinese and Korean)
So I would like to use “mb_substr” in your code.
<?php echo mb_substr(get_the_excerpt(), 0, 25); ?> is sama mean as <?php the_excerpt(25); ?> but for 2 byte.
Then what can I modifiy <?php echo $this->current_post->get_excerpt(25);?> to use “mb_substr” in your customized code?
Hi,
Please set excerpt on letters from Theme Panel: http://screencast.com/t/n5CL26eMV
And also excerpt value from the code, from 25 to your wish.
Thanks!