Support » Themes and Templates » Leaf » [Resolved] iview caption customization
4 years ago
I am looking for a way to shorten the caption that is being displayed in iview for a post. I have customized iview fonts with css and now captions are simply too long.
Anybody knows how to obtain this?
Thanks in advance
OK, just found it 🙂
<span class=”iview-caption caption1″ data-x=”15″ data-y=”258″ data-transition=”expandleft”><?php echo ‘<p>’ . wp_trim_words( get_the_excerpt(), 27, null ) . ‘</p>’; ?></span>
Editing this, did the trick 😉
Thanks for the theme, its superb!
Hi ent108, you should look into making a child theme so all your edits don’t get over written in an update, i have a child the starter on GitHub for leaf.
oh, thanks for the hint… I have customized it hardly. I need to check on how to do a child theme…
Thanks for your attention.
@ent108 I have a child Theme starter on GitHub and i just found this plugin using the coin slider