deepimpact71
Member
Posted 1 year ago #
Hello,
I tried searching for the solution on the forum but couldn't find anything related to the issue that I have.
I am using Revolution Code Blue themes http://www.wordpressthemes2.com/revolution-code-blue/ on one of my sites and certain categories on my site have & in them which shows as & amp; in the title (in the browser top bar only). On page it looks fine. Also, whenever I have a $ sign in my post title ... it does not show in the title (again the browser bar only) otherwise on post it looks just fine. I checked and I am using character set UTF-8 in wp-config.php and also in the meta tags of my templates.
What can I do other than removing the ampersand sign so that it shows as & only and not & amp;
Any help in this regards would be much appreciated.
Thanks
You might be able to use a filter on 'the_title' to decode the HTML, but I am not sure what this would do to feeds. To be safe, you can find instances of the_title() and decode there. For example, change this:
<?php the_title(); ?>
to this (UNTESTED):
<?php echo htmlspecialchars_decode(get_the_title()); ?>
deepimpact71
Member
Posted 1 year ago #
Thanks vtxyzzy.
I will give this a try! IF it does not work, I will revert back to the original instances of the title.
Do you know, what might actually be causing this? I am sure that it is related to the particular template that I am currently using. Anyways, thanks again.
I misread where you are seeing the problem - in the browser top bar. Disregard my earlier post.
I installed the theme and I don't get the problem. It may be due to a plugin you are using, particularly ones related to SEO. Try disabling all plugins and add a new post to see if it has the problem.
deepimpact71
Member
Posted 1 year ago #
I was just about to try your earlier suggestion... thank you so much for going through the trouble of installing the theme and testing things out on your end. I really appreciate it. I do have a bunch of plugins installed and I can tell you for sure that I had this problem before I installed the seo plugin Meta SEO Pack... but still... I am going to try what you suggested... you never know ...
Thanks again