Jump to content


Photo
- - - - -

Justify and reduce length at ALL Excerpts


  • Please log in to reply
3 replies to this topic

#1 eolic

eolic

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 21 April 2011 - 05:51 AM

Hello, I would like to justify Excerpt text and reduce the length of all to half of the actual size. I find the way to do it one by one, form the edit post page, but I would prefer to change the code and do it automatically. Thank you very mcuh!

#2 Kate

Kate

    Advocate

  • Members
  • 3039 posts

Posted 21 April 2011 - 12:49 PM

Hi eolic, To justify it, you'll need to add a little CSS "text-align:justify". For the excerpt length, you'll have to add some code to your functions.php file. You can read about that here:

Please Login or Register to see this Hidden Content



#3 eolic

eolic

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 22 April 2011 - 09:02 AM

Thank you very much Kate,

I don't exactly the code to say where "text-align:justify", I don't really know each part of the theme to use it, like .posts .excerpt etc.
is it correct if I write:

Please Login or Register to see this Hidden Content


And about the functions, I have to write the new function on function.php in base theme?

Thank you very much!

#4 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 22 April 2011 - 08:02 PM

Put this in Custom Code -> Custom CSS:

Please Login or Register to see this Hidden Content


The answer to your second question is yes.