Title: CODE EMBED Plugin Adding Space in Alt text
Last modified: April 18, 2024

---

# CODE EMBED Plugin Adding Space in Alt text

 *  Resolved [watsonbuys](https://wordpress.org/support/users/watsonbuys/)
 * (@watsonbuys)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/plugin-adding-space-in-alt-text/)
 * I am using the WP Plugin – CODE EMBED. I am using it for on page text and now
   trying to use it for images.
 * Specifically i will use the below image on the referenced page as an example 
   of my issue. RE: The first image of woman standing in front of van at the top
   of the page.
 * I am trying to use the CODE EMBED plugin to rename images through alt text. I
   can do this but with one issue. When i use the {{CODECITY}} in alt text it adds
   a space before and after the word.
 * I want the image alt text to show as: sewer-scope-Denver-Colorado
 * But instead it shows up on inspection as: sewer-scope- Denver – Colorado
 * I am using this code:
 * sewer-scope-inspection-company-{{CODECITY}}-{{CODESTATE}}
 * HOw do I eliminate the spaces.
 * Do the spaces matter for SEO?
    -  This topic was modified 2 years, 1 month ago by [watsonbuys](https://wordpress.org/support/users/watsonbuys/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-adding-space-in-alt-text%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/plugin-adding-space-in-alt-text/#post-17697614)
 * Mmm. That’s an interesting problem – I’ve not seen that before. Looking at the
   page code, it looks to be a carriage return rather than a space.
 * I’ll need to look at my plugin code to see what may be happening here. I’ll do
   that as soon as I can and let you know what I find out.
 *  Plugin Author [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/plugin-adding-space-in-alt-text/#post-17697635)
 * Okay, what can I say? Curiosity got the better of me! I looked and found it… 
   I was adding blank lines around the embeds for no reason other than the fact 
   that it looked neater. But doesn’t help you. Anyway, I’ve ripped them out and
   am testing the resulting change.
 * It’s late for me, so I’ll finish it up tomorrow and hopefully get it fixed for
   you then.
 *  Plugin Author [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/plugin-adding-space-in-alt-text/#post-17699947)
 * I’ve just released a new version which should fix your problem – let me know 
   how it goes!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘CODE EMBED Plugin Adding Space in Alt text’ is closed to new replies.

 * ![](https://ps.w.org/simple-embed-code/assets/icon.svg?rev=3073981)
 * [Code Embed](https://wordpress.org/plugins/simple-embed-code/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-embed-code/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-embed-code/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-embed-code/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-embed-code/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-embed-code/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Artiss](https://wordpress.org/support/users/dartiss/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/plugin-adding-space-in-alt-text/#post-17699947)
 * Status: resolved