Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Old Version fixes and change logs (http://forum.bytesforall.com/forumdisplay.php?f=37)
-   -   [SOLVED] BUGFIX: single quote shows as HTML code browser tab when SEO is on (http://forum.bytesforall.com/showthread.php?t=6700)

lmilesw Apr 13, 2010 06:12 AM

[SOLVED] BUGFIX: single quote shows as HTML code browser tab when SEO is on
I've seen something about this somewhere on this forum but couldn't find the thread. When I turn on the SEO built into Atahualpa I get screenshot 1. Screenshot 2 is with the built in SEO off. Any ideas?

Screenshot 1
Attachment 462

Screenshot 2
Attachment 463

juggledad Apr 13, 2010 06:47 AM

what plugin are you using to get that tab?
What's teh URL? (if you need to keep it private, send me a PM with the URL)

lmilesw Apr 13, 2010 07:06 AM

No plugin Paul. If I turn on the built in SEO in Atahualpa that is what I get in Firefox. The site is being built so I will PM you with a login if you want to view it.

juggledad Apr 14, 2010 06:54 AM

This is being caused because both WordPress and Atahualpa are converting special characters in the title to the HTML equivalent. WordPress would convert a single quote to '& # 8 2 1 7 ;' (extra spaces added so it won't convert it here) and when Atahualpa processed it again, it was changing the '&' into a '&' so the single quote now looked like this '’' which isn't a proper HTML code thus displaying improperly.

To fix this edit bfa_meta_tags.php and find line 71 (in version 3.4.6) which should be
HTML Code:

                        $bfa_ata_page_title = htmlentities(single_post_title('', false),ENT_QUOTES,'UTF-8');
and change it to
HTML Code:

                        $bfa_ata_page_title = single_post_title('', false);

7/9/10 NOTE: this did not get fixed n 3.5.1 - see http://forum.bytesforall.com/showthr...6521#post36521 for a fixed copy of the code.

All times are GMT -6. The time now is 12:48 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.