Archived topic
Different content title displays
5 replies · Started by horizonblue on July 25, 2020
Hi there
Is it possible to create edited (shorter) titles that can be pulled onto sidebars, WP Show Post lists etc? So for example, on the post, the title might be fairly long, but it could be more concise / compelling elsewhere.
Hope this makes sense.
Thanks for your help
Hi there,
I'm not aware of a solution like this unfortunately. The theme itself doesn't handle the title functionality as it's all handled by WordPress itself.
That's a shame. Thanks anyway.
Hi there,
you can use this CSS method:
.wp-show-posts article .wp-show-posts-entry-title {
line-height: 2.5ex;
height: 5ex;
overflow: hidden;
text-overflow: ellipsis;
}
It will limit the title to two lines for all WP Show Posts lists.
If you wanted that to only effect a list in the right sidebar you would change the CSS Selector to:
#right-sidebar .wp-show-posts article .wp-show-posts-entry-title {
Hi David
That's great, I'll try that, thanks for your help :)
You're welcome