I am not able to duplicate. Can you export your TopBar (in JSON) format and send it to me? I want to see if there is something unique to your setup that I need to account for.
http://zwebify.com/contact/
Hmmm.. I think I found it.
look for this line in wp-topbar.php
echo $wptbOptions['bar_text'],'<a style="color:',$wptbOptions['link_color'],'; ';
Change it to this:
echo stripslashes($wptbOptions['bar_text']),'<a style="color:',$wptbOptions['link_color'],'; ';
Let me know if this helps,
Bob
Thread Starter
Mark
(@markob17)
Interesting. Making the changes you’ve instructed fixed the issue within the WP-Topbar admin section, however, it still displays the \ on the website. Here’s my website URL if this can help you troubleshoot: http://www.askthetrainer.com. We’ve temporarily disabled w3 total cache, minify, etc. to make the code reading friendly. Look forward to your reply.
Regards,
Mark
I see it also. Can you change the text to “Do not”.. Update the TopBar. Make sure it looks OK on your site. Change it back to “Don’t”
Also, do you have Magic Quotes Turned on or off? (See the TopBar Debug Page) :
PHP Magic Quotes is ON
Thread Starter
Mark
(@markob17)
Hi Bob, I could change the text to “Do not” instead of “Don’t” but I am still not sure why it would add the \. I may want to use the ‘ with future marketing messages. In regards to Magic quotes, it is current shown as OFF.
Regards,
Mark
Ok – that helps! I am able to re-create the problem… It is the magic quotes setting. Now I am looking at how to fix it permanently!
Thread Starter
Mark
(@markob17)
Sounds great Bob, thanks for looking into this!
Ok — I think I have it working.. but it is significant changes to account for Magic Quotes.
Can I email you the zipped file (also includes the temp fix to push down the TopBar)?
The file does NOT change your database; so it is easy to backout.
Bob
Thread Starter
Mark
(@markob17)
Yes, I can be emailed. You can send the email to vito@askthetrainer.com.
Thanks,
Mark
Thread Starter
Mark
(@markob17)
Bob, I want to apologize as I just realized I didn’t remove the ‘ and then re add it after implementing the original fix you sent me early on. I haven’t implemented this new fix just yet but I did implement the old one just to make sure I was covering all basis. It ended up working both in the admin area and live on the site.
So I went back and replaced:
echo $wptbOptions[‘bar_text’],’
with:
echo stripslashes($wptbOptions[‘bar_text’]),’
in the wp-topbar.php per your original suggested fix and it is working.
I will still test out the new fix to see if the top-bar scrolls and pushes the content down in addition to resolving this issue. I will let you know what happens after testing is complete.
Thread Starter
Mark
(@markob17)
Thank you for helping us resolve this issue. Awesome support!
Best Regards,
Mark