- This topic has 2 replies, 2 voices, and was last updated 7 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Home › Forums › Free Themes › WEN Business › How to only show summary in Latest News Widget
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
Any ideas on this?
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 !!
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |