Home Forums Free Themes WEN Business How to only show summary in Latest News Widget

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #39897
    johnkjennings
    Participant

    I’m using two Latest New Widgets on my home page. Inside the posts, I have an entry (summary) paragraph, followed by a Read More text break, then the rest of the post. I would expect on the widget, it would only shop up until the “read more break”, but it continues into the main post text.

    Is there a way of preventing this from happening?

    Temporary site URL is http://a6a.54f.myftpupload.com

    #40492
    johnkjennings
    Participant

    Any ideas on this?

    #40667
    wensolutions
    Keymaster

    Hello @johnkjennings,

    The latest news widget provided by the theme has an option to individually control the excerpt length in the posts by providing the no. of words displayed in the widget settings and thus it ignores the more link added from the post editor.

    However, if you wish to display the read more text only upto the more link in the editor, you can achieve the request with some code modifications. For this you will need to create a child theme.

    For reference on child theme creation, you can see the links below :

    https://codex.wordpress.org/Child_Themes

    You can also automate the process with the help of plugins like :

    wordpress.org/plugins/wp-child-theme-generator/

    After creating and activating your child theme, add the following code in your child theme’s functions.php file :

    This will override the excerpt length to the length set in editor by “more link”.

    Also, please note that the code will take excerpt length from the more link, the no. of words set in widget settings will have no effect.

    As the resolution needs some code handling, you can also choose to Hire a customizer to do the task for you along with your required modifications.

    Hope this Helps,

    Best Regards !!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.