Wordpress

WordPress – Font Rendering Problem with Google Chrome

I’m using both WordPress and Google Chrome for many years, and I never encounter any issue. Both work very well until recently when Google Chrome automatically updates itself when restarting my computer. This issue maybe surfaced much earlier, but I rarely shut down my Laptop & Chrome, so I only find out there is font rendering issue with the latest chrome and WordPress. Currently, my Google Chrome is version 37.0.2062.103 m & it having this problem.

The problem will only affect WordPress back-end. The versions I’m using are 3.92 & 4.0. I never try earlier version of WordPress. It also seems to be limited to Windows 8 Operating systems (Windows 8.1 included). Try Windows 7 and Windows Server 2008, this issue does not arise.

If you are having this problem, there is a way to fix it. It is not that your computer affected by virus or malware or our WordPress hacked.

To fix it do the following.

1. Open a new tab & go to chrome://flags/
2. Find “Disable DirectWrite Windows” & click enable
3. Restart Google Chrome


PHP Code in Footer Attribution of Thesis 2+ WordPress Theme

In Thesis 2+ WordPress theme, if you need to have PHP Code in Footer Attribution, you need to add a code in Thesis 2+ Custom Function. You may need this to automatically change the year in the copyright of the footer instead of manually change it every year. The best thing is the code will apply to all post, page or archive page.

In Thesis 2+ theme, there are 2 ways to do it. If you want the Custom Function to apply to all Thesis 2+ Skins, edit “/wp-content/thesis/master.php” file. However if you want the function to apply to only individual Skin, edit “/wp-content/thesis/skins/SKIN/custom.php” file. “SKIN” is referring to your selected skin.

If you want to change the year in the copyright in the footer automatically, add the following code.

/* Footer Text */
function my_footer() {
	?>
		<p>Copyright &copy; 2011 &ndash; <?php echo date("Y"); ?>
		<a href="/">example.com</a></p>
	<?php
	}
add_action('hook_top_footer', 'my_footer');