Character appearing in Lightbox Right Before Copyright Symbol

Posted in: Newspaper
Post count: 52

I am still in the process of implementing the theme on my site. On my test site, I am getting a bug where the  character appears before the copyright symbol in the caption of an image only in the lightbox, not in the main post.

Here’s a link to an example. The caption of the image is normal. Then, when you click on it to view the lightbox, that weird symbol shows up in front of the copyright symbol. Please let me know of a fix. Thanks!

http://www.teabear.com/sandbox/fluoride-supplement-dosage/

Post count: 9544

Might not be the cause, but be sure to use the current HTML entity for the copyright symbol, and not simply pasting in the ASCII character.

© should work, or I think & # 169; (without the spaces) may still work also.

  • This reply was modified 11 years by simchris.
Post count: 52

Thanks, Christopher. You’re always so helpful!

That worked, but I painstakingly added image credits for ~300 posts’ featured images. Hopefully I can do a find/replace via phpMyAdmin.

I’ll let you know how it goes.

Seems like there would be a way to fix this so that I could use the ASCII symbol, but oh well.

Post count: 52

Got them all fixed! It was tricky since phpMyAdmin would not let me do a find and replace of finding the copyright symbol and replacing it with ©. Somewhere along the line, it converted my “©” back into it’s equivalent copyright sign. I’m assuming it did this since phpMyAdmin is web based…

To make a long story short, I simply clicked the SQL tab and took out the copyright symbol and replaced it with ©

Hopefully this will help someone in the future. Here’s the SQL command, just fill in the name of your database where indicated:

UPDATE database_name.wp_posts SET post_excerpt = REPLACE(post_excerpt, '©', '©') WHERE post_excerpt LIKE '%©%' COLLATE utf8mb4_bin
  • This reply was modified 11 years by tcdraper.
Post count: 6600

Hi,

Thanks for sharing, glad you have managed to fix this.
Thanks for the message!

Post count: 52

Just in case anyone tries this, that 2nd copyright symbol should be the text ©, not the copyright symbol. I couldn’t figure out how to type it out in that code box on this forum without it turning into the copyright sign!

Post count: 388

It did make for a hilarious read, though, once I’d figured out what was happening to your text :p

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.