I’m not sure why there’s a non-breaking space being added to the front of your excerpt. It would be best to find out what is putting that there. But in the meantime, you can add this to your theme functions.php ( or a simple plugin ) and it should take care of it.
//* Remove non-breaking space from beginning of paragraph
add_filter( 'the_excerpt', function( $excerpt ) {
return str_replace( [ '<p> ', '<p> ' ], '<p>', $excerpt );
}, 999, 1 );
Related Posts:
- Need help removing […] after excerpt
- Remove post image caption from post_excerpt();
- Settings API callback function inserts html quotes from nowhere
- Input data from email form not going to JSON file
- How to get the value of input hidden html from text editor to custom page template?
- HTML tags not showing in excerpt
- Different post styles depending on category
- How create a Shortcode with hover and complex options
- How do I remove the product thumbnail link from a specific div in Woocommerce? [closed]
- Dot is not added at the end of href
- WordPress Multiple Navigation bars
- Position banner to right of logo in header – messed up my header file
- Commenting out unwated CSS/scripts in HTML with PHP
- How to separate HTML and WordPress files
- Add .htm extention to a custom taxonomy
- Login to wordpress by clicking a link and specifying usernaname and password in url
- Query Pages and post excerpts dynamically
- Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )
- How do I add a custom css to all posts without affecting homepage css? [closed]
- My custom get_the_excerpt() can’t get excerpt by ID
- Make PHP work with HTML tags
- Adding Meta Tags to a Post using its Tags, Excerpt and content
- Using the_excerpt() on a page
- Noscript not working as it should in wordpress site
- Show latest posts in a plain HTML website custom widget [closed]
- How to convert select to HTML with PHP tags inside of it [closed]
- Is this spyware on my site or a real Java update?
- Syntax error when I try to insert my loop into an unordered list? [closed]
- How to make modifications only to certain elements of an HTML string on the server-side?
- Wrapping a Sidebar within
- Search WordPress using static html page
- Hide HTML element (by class or ID) with PHP
- Add Codepen animation as Preloader to WordPress
- Path for php file for inserting data through html form
- Function returns text instead of html [closed]
- Printing HTML codes
- Widget back end radio button issue
- HTML escaping data with ajax requests
- How i can get post data from database when i am getting post id from url in wordpress
- How to retrieve the data from the sever and displaying it in a page?
- php within html within php
- How to execute html code inside php?
- How to remove coupon dropdown feature
- Add data-id attribute to child page links
- Add shortcode in my div
- How to show an entire post content and not also the excerpt?
- stripping tags from excerpt in WordPress is not working
- WordPress plug-in for dynamic download link?
- Almost Done… Post Format Code
- HTML table attributes ignored
- php esc_html_e with an html link inside not working
- Add html link in functions.php files of the theme
- Automatic excerpt is not shown with the_excerpt() command
- Using ob_start and ob_get_clean with wordpress shortcode
- How to edit HTML of my website on WordPress? [closed]
- WordPress wp-admin redirect and exception
- How to remove the h6 tag for the entry-category Class
- Override user-edit.php to design own profile page
- wp_insert_post() with HTML tags using PHP
- How to rename woocommerce-billing-fields
- Prevent redirect to wp-login.php
- PHP contact form not redirecting [closed]
- Creating an image from a custom field
- How to Schedule Cronjobs for start of every month and year
- Where can I find the inline-css of my theme header?
- Handling PHP/HTML inside the output of a shortcode function
- Make textarea required. Help [closed]
- WordPress forms submissions and PHP files
- Menu Custom Data Attributes
- How to add post meta in while loop?
- Adding function to child theme’s function.php
- Highlight the links without using dropdown
- Illegal string offset error in wordpress theme options textarea
- How to turn each phone number within the $content to a telephone link?
- Creating custom page template from existing PHP site
- wordpress site – using custom database and PHP
- How to use the checked() function to check for a non-empty var
- Calling function in loop causes repeat data
- Shortcodes showing in excerpt despite using strip_shortcodes
- How do I access post_meta key with php?
- Find out last 7 days of upload images, last week uploaded image from Gallery and display them in different pages
- Separate array output into a
- How to remove the space before the ellipsis in excerpt?
- Website completely messes up when logging out
- Calling PHP Titles inside Javascript Markup
- How can I use custom menus with a Bootstrap WordPress theme?
- Remove in post content
- Initial offset of number of posts in home page on the posts page
- Link to page with posts of specific type
- Post class only applying to first excerpt; why?
- Function Display article [closed]
- Adding attribute to the post.php form tag in wp-admin
- Using php inside javascript [closed]
- Assign Custom classes to every Excerpt
- Replacing WordPress Icons (menu,icons32, etc)?
- WordPressUser Submission Form
- Shortcode displaying at the top of the page [duplicate]
- Is it possible to isolate and use WordPress functions outside of wordpress
- WordPress custom post type and taxonomy
- How to get the second slug of a page url?