• Resolved jnystrom

    (@jnystrom)


    Hello! How can I limit the amount of words that Cision Block displays in the news article? I would like to cut it down to let’s say, 25 words max, followed by a “…”, and then the “Read More” link. How can I do this? Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Author cyclonecode

    (@cyclonecode)

    You should be able to change the word count used for excerpt by copying the template located under cision-block/src/Frontend/templates/cision-block.php into the root of your active theme and then change the following line, setting your desired word count:

    <?php echo wp_trim_words(esc_html($item->Intro ? $item->Intro : $item->Body), 25); ?>

    The above changes the word count for the excerpt to 25 instead of the default of 55.

    I also have an upcoming update for the plugin which makes it possible to change this from the configuration page.

Viewing 1 replies (of 1 total)
  • The topic ‘Limit words/characters in feed?’ is closed to new replies.