Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #108939
    INFOYED
    Participant

    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,

    #108943
    Leslie Bigos
    Participant

    Go to Dashboard=> Appearance=> Customize=> Theme Options=> Layout Options and make sure you have selected Excerpt/Blog Display in Full Content Display options.

    #108978
    Pratik
    Participant

    Hi @infoyed,

    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.

    Regards,
    Pratik

    #109087
    INFOYED
    Participant

    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 more tag to the page content as follows:

    Yazılım Ve Bilgisayar,<!--more--> Elektrik, İnşaat,

    How should I proceed?

    Best regards,

    #109092
    Pratik
    Participant

    Hi @infoyed,

    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.

    Regards,
    Pratik

    #109945
    INFOYED
    Participant

    Hi @Pratik,
    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,

    #109947
    Pratik
    Participant

    Can you post in your site url?

    #109952
    INFOYED
    Participant

    The site link is http://www.ankaratercumeofisi.com

    Best regards,

    #109960
    Pratik
    Participant

    Hi @INFOYED,

    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.

    Regards,
    Pratik

    #110192
    INFOYED
    Participant

    Hi @pratik,

    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 more tag 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,

    #110221
    Pratik
    Participant

    Hi @INFOYED,

    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.

    Regards,
    Pratik

    #110309
    INFOYED
    Participant

    Dear @pratik,

    Thank you very much. I have changed them to featured image content. I have added <!– more Read More –> However it did not work. How can I add “Read More” to Featured Image Content? (site url: http://www.ankaratercumeofisi.com/)

    Best regards,

    #110310
    Pratik
    Participant

    Just add a link like <a href="your_link">Read More ... </a>

    #110372
    INFOYED
    Participant

    It worked! Thank you very much @pratik!

    Best regards,

    #110375
    Pratik
    Participant

    Great 😀

Viewing 15 posts - 1 through 15 (of 15 total)
  • The topic ‘changing excerpt mode’ is closed to new replies.