- This topic has 3 replies, 2 voices, and was last updated 6 years, 5 months ago by Theme Horse Support Team.
-
AuthorPosts
-
November 22, 2017 at 8:52 am #54119PierreParticipant
This i the code in the ./inc/functions/functions.php 58
Original code:
add_filter('excerpt_length', 'wp_portfolio_excerpt_length'); /** * Sets the post excerpt length to 50 words. * * function tied to the excerpt_length filter hook. * * @uses filter excerpt_length */ function wp_portfolio_excerpt_length($length) { return 50;// this will return 50 words in the excerpt } add_filter('excerpt_more', 'wp_portfolio_continue_reading'); /** * Returns a "Continue Reading" link for excerpts */ function wp_portfolio_continue_reading() { return '<span class="leggiTutto">...Leggi tutto</span>'; }
The full test in my post is:
Mi colpì la prospettiva, col grandangolo che avevo ho potuto dare un effetto profondità all’immagine, tra l’altro il trattore era acceso e vibrava tutto, ma con un tempo di scatto veloce ho bloccato l’immagine. (Bs).
But inter thumb show only “Mi colpì la prospettiva, col grandangolo che avevo ho potuto dare un effetto profondità all’immagine, tra l’altr“. These are less than 50 words
November 23, 2017 at 7:20 am #54133Theme Horse Support TeamKeymasterHi Pierre,
the default value for excerpt is 50, However we have set the character length too for content that display on post content. You have to change the character length as well from ./inc/structure/content-extentions.php on line:40
Thank you!
November 23, 2017 at 8:40 am #54137PierreParticipantThere is an problem:
In the ./inc/structure/content-extentions.php
add_action( 'wp_portfolio_loop_content', 'wp_portfolio_theloop', 20 );
In the ./inc/functions/functions.php
function wp_portfolio_excerpt_length($length) { return 10;// this will return 50 words in the excerpt
Show double image
http://i68.tinypic.com/124hkz7.png
This is the text: I 2 si contendevano “l’amichetta” nel cortile di casa. (Buffalora, Bs)
November 23, 2017 at 10:31 am #54143Theme Horse Support TeamKeymasterHi Pierre,
Please go to ./inc/structure/content-extentions.php on line no. 140 there you will see the below line of code.
<p><?php echo substr(get_the_excerpt(),0,126); ?></p>
Change the above character count value 126 as per your need.Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.