Title of blog post shorten with "..."

Hi would like to lengthen then title size.
It works on two lines , but doesn t go to the end of the second line.
I get things like

"
Fidéliser ses clients grâce aux « Apps » –
Pourquoi les…
"
Where I would like to have :
"
Fidéliser ses clients grâce aux « Apps » –
Pourquoi les PME les privilégient en 2018
"
I have tried things like this css, without any luck :frowning: :
.post-content .entry-content .post-title { overflow: visible;
}

Please help

Hi there

Hope you are having a good day and thank you for your question :slight_smile:

No css need for this question, its built-in function of WordPress, Pleaase check this link for more detailed information:

Thanks!
Colorlib Support Team

Dear Noda ,
Thanks for your quick answer.

I have tried what you sugest, but the <!–more–> tag seems to work only for texte of the post, not the title.
When I check on google, I find people who are looking for the opposite; ie to shorten the titles when they are too big…
For this they creat a specific function in PHP …therefore maybe you created such function in shapely??? That I could tweak to revert to wordpress standard behaviour.

This doesn t work:
<section
class="page-title-section bg-secondary " >
<div class=“container”>
<div class=“row”>
<div class=“col-xs-12”>
<h3 class=“page-title” style=“color:#000000”>
Fidéliser ses clients grâce aux « Apps » – Pourquoi les PME les privilégient en 2018 <!–more–> </h3>
</div>

		&lt;/div&gt;
		&lt;!--end of row--&gt;
	&lt;/div&gt;
	&lt;!--end of container--&gt;
	&lt;/section&gt;

Hello!

Do you want to change the length of the title on single post?
If yes, then go to this file: shapely/template-parts/content.php on line 64 and you will see this code:



<a href="<?php echo esc_url( get_the_permalink() ); ?>"><?php echo wp_trim_words( get_the_title(), 9 ); ?></a>


You will have to replace the value ‘9’ with a larger one, for example 20 then save the file and refresh the page.

Please give this a go and let me know how it goes!

All the best,
Mihaela

Thank you Mihaela :slight_smile:
It works :smiley:
Have a nice day