February 6, 2017 at 8:08 pm #108939
The excerpt mode is set to “words”, however I want to change the mode to “chars”
as exemplified as follows:
# excerpt($text, $length = 140, $mode = ‘chars’)
How can I achieve it?
Best regards,February 6, 2017 at 9:16 pm #108943Leslie BigosParticipant
Go to Dashboard=> Appearance=> Customize=> Theme Options=> Layout Options and make sure you have selected Excerpt/Blog Display in Full Content Display options.February 7, 2017 at 10:44 am #108978
To get what you want, you will need to do some custom work.
Please check: https://wordpress.org/support/topic/limit-excerpt-length-by-characters/ for further help.
PratikFebruary 8, 2017 at 12:06 pm #109087
Thanks @bigoslesli, however there is no choice visible concerning “excerpt” under the layout options.
Thank you @Pratik! I have looked at the link and tried a couple of things. I realised that I could not achieve what I want to by changing the character size.
The thing I want to is that I want to restrict the excerpt seen in the front page by putting
<!--more-->tag in the actual page content. I simply achieved it but in this case “Continue Reading->” is not seen in the front page. For instance in the front page, “Teknik Tercume” is restricted till “Yazılım Ve Bilgisayar” by simply adding
moretag to the page content as follows:
Yazılım Ve Bilgisayar,<!--more--> Elektrik, İnşaat,
How should I proceed?
Best regards,February 8, 2017 at 12:42 pm #109092
Goto Appearance=> Customize=> Theme Options=> Layout Options=> Full Content Display and make sure Option selected there is Full Content Display. Save and the more tag will work.
PratikFebruary 16, 2017 at 2:49 pm #109945
It has been already set to “Full Content Display”, I double checked it. Problem still exists. If you want to check it out, I can provide you a temporary user.
Best regards,February 16, 2017 at 3:03 pm #109947
Can you post in your site url?February 16, 2017 at 3:19 pm #109952February 16, 2017 at 4:32 pm #109960
So you were talking about Featured Content. I was assuming you were talking about blog page.
Goto Appearance=> Customize=> Theme Options=> Excerpt/More Tag settings and reduce the Excerpt length(words).
This will bring read more link.
PratikFebruary 18, 2017 at 8:16 pm #110192
Concerning Featured Content, I can simply set a number in the “Excerpt/More Tag settings” and in the homepage the number of words appears under the page logo. However this is not what I want.
I am willing to set different number of words for each page with
<!--more-->tag. However as far as I can see I can not do it right now with the
<!--more-->tag. For instance, I have following setting:
The lenght of excerpt: 24
In the content of the page named “Teknik Tercume” (http://www.ankaratercumeofisi.com/teknik-tercume/), I have set
<!--more-->tag as follows:
Yazılım Ve Bilgisayar, Elektrik,<!--more--> İnşaat,
However “the leght of excerpt” setting overwrites
moretag and in the home page, it is seen as following:
Yazılım Ve Bilgisayar, Devamı →
In other words, after 24. word, which is
Bilgisayar,, the content is cut with respect to the “the leght of excerpt”.
Is there a way to achieve to set different number of words for each page with
<!--more-->tag? Or should I change the code?
Best regards,February 19, 2017 at 10:02 am #110221
What you want can only be achieved by using Featured Image Content, where you will be able to add custom content and link it to your page/post.
PratikFebruary 20, 2017 at 3:38 pm #110309February 20, 2017 at 3:40 pm #110310
Just add a link like
<a href="your_link">Read More ... </a>February 21, 2017 at 12:30 pm #110372February 21, 2017 at 12:48 pm #110375
- The topic ‘changing excerpt mode’ is closed to new replies.