Amadou Beye
Amadou Beye

Reputation: 2808

How to limit character on title Blogger

I have a Blogger blog and I would like to reduce the length of title.

"Find out the new Iphone 6 in my showroom" should be " Find out the new Iphone 6..."

Is there any way ?

Upvotes: 1

Views: 995

Answers (2)

Nadira Ali
Nadira Ali

Reputation: 1

you can set title length in index pages by javascript. Paste this code before . You can change the maximum length 30.

<script type="text/javascript">
//<![CDATA[
$(".title").each(function(){
    if($(this).text().length>30)
    {$(this).text($(this).text().substr(0, 30)+'...');}
});    
//]]>
</script>

Upvotes: 0

Fahim Raza
Fahim Raza

Reputation: 281

Yes you can use CSS property Elipsis to limit the title

Here is a page which may help you http://www.w3schools.com/cssref/css3_pr_text-overflow.asp

Upvotes: 0

Related Questions