Your question is not entirely clear, but it looks like you simply want to remove the continue reading button from the excerpt. You have already found the offending code. Nothing stops you from modifying it in this way:
function new_excerpt_more($more) {
global $post;
return '';
}
add_filter('excerpt_more', 'new_excerpt_more');
To do this properly you must not change the theme file itself, but place this code in the functions.php of a child theme, which further only needs to consist of an almost empty style.css file. If a function in a child theme has the same name as in the parent theme it will override the latter.
Related Posts:
- Give “Read More” precedence over excerpt() word count
- Filter Post Title without affecting screen-reader-text
- Get excerpt from $post->post_content
- How to use the_excerpt in a filter hook?
- add_filter on “the_excerpt” only works when post does not have excerpt
- End excerpt at the end of the sentence
- get_the_excerpt() with fallback like the_excerpt()
- Exclude filter on front page
- How do I filter get_the_excerpt() but keep all of its functionality intact?
- Buddypress: Edit activity when new blog post [closed]
- How to make a button?
- Why in archive page doesn´t show read more button with excerpt?
- the_excerpt filter with an empty excerpt
- Access get_the_title() from ‘excerpt_length’ filter
- How do I override the_excerpt so that it will display full content?
- the_excerpt filter doesn’t work as expected
- Excerpt is being added above the content, but it should be after it
- run shortcode in excerpt of single custom post type
- apply_filters(‘get_the_content’, $content) + Except
- Trimming a custom field to a length
- Prepending character(s) to a custom tag title?
- Adding html banner to posts
- Apply wordpress filter checking category
- Add Filter – Pass Variable (PHP < 5.3)
- Create different flavours of excerpt
- Cutting off excerpt with first sentence
- Auto-generated excerpt with shortcode and read more button/text link
- is_page_template() doesn’t work with excerpt_length filter
- the_excerpt() does not work with has_excerpt()?
- get_the_excerpt on mobile still displays continue reading
- Can’t change excerpt length and more tag
- Custom excerpt_more filter not working when tag is present
- Why does using excerpt_more filter change link location?
- Only show read more text when when wp:post-excerpt meets excerptLength
- Clarification on filters and hooks
- post_mime_types Filter not Working in List Mode
- Include a page template along with add_theme_support()
- Modify the post/entry wrapper markup in genesis childtheme [closed]
- Allowing non-latin characters in registration
- post_row_actions filter is not working while update post using quick edit
- Should I use add_action(‘publish_post or add_filter(‘publish_post?
- How to link current user to their author page through shortcodes
- Taxonomy Custom Column – ‘manage_{TAXONOMY}_custom_column’ filter only passing 2 arguments
- Can you use add_filter() inside other function?
- Filter my args by the post 1st letter
- Limit RSS feed to previous calendar month
- Adding Filter to Homepage only
- Does auto_update_plugin Filter Work When Put In Theme’s functions.php File
- In need of a content replace filter for posts in a specific wordpress category
- How to remove action with slashes and arrows?
- Inline Styles on all native blocks
- How to filter post content and force every link () made in blocks to return urldecode() with readable value?
- Changing WordPress core without hacking core
- Link to Shop-Filter with .current-menu-item
- Remove posts inside pre_get_posts using a custom query
- Remove / Hide Attachment Display Settings in Add Media popup / dialog
- how to customize rss feed tags using hooks?
- Replacing a deprecated filter ‘woocommerce_get_price’ with ‘woocommerce_product_get_price’
- How do you get specific tags from the_content?
- Setting a default text for excerpts of a particular category
- Filter by category and city for doctors and hospitals in wordpress
- Why is overwriting $GLOBALS killing the_content()?
- Sorting products by price ( regular + sale price )
- Create new custom field that calculates age
- Remove comments validation (remove filter?)
- How to query if meta_key does exist or not?
- Remove Site Name from wp_title WITHOUT removing from attribute
- Plugin default settings hook
- add_filter to the_content after apply_filters
- Is there any reason for the nested filters to be applied on the first case and not in the second one?
- Best practice: Custom Post Type / Filter / Load more
- How to Edit Ecommerce filters URL, h1, h2 , Title
- restrain filter on get_the_excerpt to queried item in stead of current post
- Redirect an archive page to its relevant URL-friendly filtered page
- how to use substr with get_the_content()
- AJAX Post Filter
- Mystery line break
- How to add markup to the wp-custom-header div
- Display post after choice two taxonomy terms
- How to stop echoing gallery inside content?
- Having issue with dynamic data within restrict_manage_posts function
- how to filter datalist table of wordpress
- Ajax Filtering Pagination
- Custom permalink for attachment
- Is there a function to edit Blogs contents in Blogs page?
- Filter on the day of the week from timestamp
- Can’t set properly WordPress add_filter function
- Hook inside a hook
- Filter WordPress Archive Widget to exclude posts with specific custom taxonomy term id
- Adding user filter – Not updating data in URL
- filter wptexturize doesn’t work on old posts titles
- remove_action conditionally for Custom Post Type – not working
- wp_get_attachment_link filter not working
- How would I remove an inline googleAPI font script in the the parent theme header.php?
- Getting entry ID from frm_email_message filter in formidable
- Is there a hook or filter that adds a button to the left of the search box?
- Replacing text using add_filter
- Background color and background image below element in Contact Form 7 – error tip [closed]
- Change password reqts with NO plugin without breaking resetpass link?
- wc_get_template_part filter not working