-
Author
-
March 28, 2016 at 22:40 #113184mlacroix0Participant
Hi,
The post masonry for the blog articles shows the first sentences of the post under the featured image on the home blog page.
How do I write a custom description for each article shown in the post masonry so that the description makes more sense and is not cut at a wrong place?
Please let me know if the question is not clear and I’ll post pictures of what I ask.
Thanks,
Maxime
March 29, 2016 at 17:12 #113290RaduModeratorHi,
Please follow this small video : https://drive.google.com/file/d/0Bxo5b6iHWRMwREVtYlpVV01OUnM/view
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionMarch 29, 2016 at 19:27 #113366mlacroix0ParticipantGreat! Thank you very much for this link.
Is it possible to change the caracther length of the excert in this theme?
Thanks,
Maxime
March 30, 2016 at 16:27 #113528RaduModeratorHi,
Add this code to your child theme ( wp-content/themes/kleo-child/functions.php )
COPY CODEfunction custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Replace 20 with your desired number.
Note : child theme needs to be active
Cheers
Radu
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 19, 2017 at 19:24 #158960RaduModeratorHi,
Use this solution : https://archived.seventhqueen.com/forums/topic/how-to-minimize-the-preview-of-blog-in-home-blogpost#post-158945
Cheers
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 20, 2017 at 18:46 #159126camelotParticipantHi Radu,
Thanks for your reply. However I got this message:
Warning: preg_replace(): Unknown modifier '\'
That line is:
$excerpt_initial = preg_replace( '<code>\[[^\]]*\]</code>', '', $excerpt_initial );
I’m not familiar with Regex. Please help.
April 24, 2017 at 19:29 #159486RaduModeratorHi,
Sorry for the late reply, you run on php7 ?
Can you please provide FTP credentials ? to take a closer look?
On mine the excerpt it’s limited using that solution and also on other users install.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 26, 2017 at 15:27 #159643RaduModeratorCheck it now
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionApril 27, 2017 at 15:00 #159745RaduModeratorYou’re welcome
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.