wp_register_script Question

If you need to add it in the head, then this might help you: <?php add_action(‘wp_head’, ‘add_attr’); function add_attr(){ ?> <script data-cfasync=”false” type=”text/javascript” src=”http://use.typekit.com/YOUR-KIT-ID.js”></script> <script data-cfasync=”false” type=”text/javascript”>try{Typekit.load();}catch(e){}</script> <?php } ?> Make sure your theme has the wp_head function call. You’ll need wp_enqueue_scripts or wp_register_scripts only if your JS code in in some other .js file … Read more

Custom link color or stylesheets

In answer (im not a theme developer) so please improve this answer In WordPress 3.4 the Theme Customiser was introduced for example in Twenty Eleven theme you have a colour wheel. Have a look at Otto’s write up on how to leverage Theme Customiser http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/

Entire VPS locks up when using particular theme [closed]

Usually the first step is to make sure there is no problem by changing the theme to Twenty Eleven and running the ‘same steps’ to recreate the problem. Some themes may not be ready for WordPress 3.4.1 as it introduced a lot of theme related changes. So see if there is anything on the WordPress.org … Read more

What is the Timeline for the Active Version Pie Chart in the Repository?

The active version pie chart is made up of completely nonsense data that isn’t being updated properly at present. What it displays has absolutely no bearing to real-world data. It’s on my list of things-to-fix, eventually. Once our stats gathering system is more reliable, I’ll do so. However, at present, it is total nonsense. Ignore … Read more

Redirect to 404.php from single.php

Try something like this: header(“HTTP/1.0 404 Not Found”); $wp_query->set_404(); //This will inform WordPress you have a 404 – not absolutely necessary here, but for reference only. require ‘/path/to/404.php’; exit; Just do the error handling on the page itself instead of redirecting it to another template. This will maintain your 404 header and give you complete … Read more