- This topic has 9 replies, 4 voices, and was last updated 4 months, 2 weeks ago by
David.
-
AuthorPosts
-
October 17, 2020 at 5:49 am #1493040
Dailyaim Limited
I have set the “Excerpt” to “0” because I totally wanna remove it, but is not taking effect. Please how can I disable the content excerpt?
My own advice, it would have been better you included an option as “No Excerpt” – that is the way most other themes build theirs.
For example, since you have the following options; Excerpt, full content, then you should have just added also “no Excerpt” or “disable Excerpt” or “remove Excerpt” is better and more effective to work with.
Please How do I disable mine Excerpt, since the “0” is not working??
October 17, 2020 at 7:43 am #1493151David
StaffCustomer SupportHi there,
that field only applies if it is a WP auto generated excerpt. If you’re using manual excerpts or the read more tag then that will no apply.
If neither of them is the case then provide a link to the site so i can see the issue.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 17, 2020 at 11:28 am #1493519Dailyaim Limited
here is my website http://www.emyshub.com, please check it out and tell me how to get this done. Thanks
October 17, 2020 at 11:56 am #1493549Tom
Lead DeveloperLead DeveloperHi there,
You’re using the More Tag which will overwrite the excerpt length value you’ve set in the Customizer.
You can tell it not to like this:
add_filter( 'generate_more_tag', '__return_empty_string' );
Let me know if that makes a difference or not 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentOctober 17, 2020 at 9:27 pm #1493828Dailyaim Limited
You mean I should add this “add_filter( ‘generate_more_tag’, ‘__return_empty_string’ );” to my custom CSS box???
I have added the line code in; Appearance >> customize >> Additional CSS >> then add this “add_filter( ‘generate_more_tag’, ‘__return_empty_string’ );”, am I correct??
But the Excerpt is still not disabled yet. http://www.emyshub.com
was the code added in the right place?
October 18, 2020 at 12:47 am #1493919David
StaffCustomer SupportThat code is PHP – this article explains how to add it:
https://docs.generatepress.com/article/adding-php/
TLDR: If you’re not using a Child Theme then install the Code Snippets plugin and add the code to a new snippet.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 18, 2020 at 9:41 am #1494503Dailyaim Limited
1. Am I using a Child theme and How do I know if am using a Child Theme??
Because so far the only I have done was to download and install the GeneratePress theme and premium plugin. Then for some of my sites, I selected templates from the site-library, while some I customized it like that (without selecting from the site-library).
So am I using a child-theme??
2. Applying the above steps on my sites can insect the PHP code on functions.php file or better still install the Code Snippets plugin, or any of the options can serve?
October 18, 2020 at 10:56 am #1494584Leo
StaffCustomer Support1. It doesn’t sound like you are using a child theme.
You can check in Dashboard > Appearance > Themes.
2. Code Snippets is the best if you aren’t using a child theme already.
Do not modify the theme’s
function.php
as the changes will be erased during updates.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/October 18, 2020 at 8:18 pm #1494921Dailyaim Limited
Mr Tom,
I have installed the Code Snippets plugin and added the add_filter( ‘generate_more_tag’, ‘__return_empty_string’ );, but still the post Excerpt is still showing. check out http://www.emyshub.comOctober 19, 2020 at 7:40 am #1495530David
StaffCustomer SupportHi there,
something is injecting code into your post excerpt.
If you right click and inspect your excerpts and check the Element in the developers tools you will see this – i examined the latest post:<div class="entry-summary" itemprop="text"> <div class="at-above-post-homepage addthis_tool" data-url="https://www.emyshub.com/download-cloudapp-image-editor-screen-recorder/"></div> <p>Click here to Download CloudApp free software for Capturing and Instantly Sharing with your team… Record screen as a video with voice & …<!-- AddThis Advanced Settings above via filter on get_the_excerpt --><!-- AddThis Advanced Settings below via filter on get_the_excerpt --><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons above via filter on get_the_excerpt --><!-- AddThis Share Buttons below via filter on get_the_excerpt --></p> <div class="at-below-post-homepage addthis_tool" data-url="https://www.emyshub.com/download-cloudapp-image-editor-screen-recorder/"></div> <p><!-- AddThis Share Buttons generic via filter on get_the_excerpt --></p> </div>
So another plugin or function is inserting code into your excerpt. You will need to find which plugin/function is causing that.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.