How to debug function file causing white screen

It sounds like there is a fatal error occurring, but you aren’t displaying errors on the page. To enable debugging you should add the following code to your wp-config.php file. define( ‘WP_DEBUG’, true ); *note: if your wp-config.php file already contains an entry for the above, make sure it’s set to true. Once you know … Read more

Language Switch Function

You are now only testing for the theme location not to be empty. This means that every non empty menu location will see the language button attached. So, in stead of testing for emptyness you should be testing for a specific location. The name of that location depends on your theme, but suppose it’s called … Read more

Keep js after reload the page

I understand, that you want “a.music” remain set active after you reload the page. For that you can check whether the cookie is set or not if it is set you make active to the “a.music” else it will remain as same. var tags = getCookie(‘tags’); jQuery(‘a.music’).each(function(){ var dTag = jQuery(this).attr(“data-tag”); if(dTag == tags) { … Read more