• Resolved watsonbuys

    (@watsonbuys)


    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 7 months, 1 week ago by watsonbuys.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Artiss

    (@dartiss)

    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

    (@dartiss)

    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

    (@dartiss)

    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.