Call javascript function when category was added via ajax

Recently, I just have the same problem and got the solution. use ajaxSuccess event since we need to reset input when ajax is completed. filter the settings data for specific action and screen. Code: $(document).ajaxSuccess(function(e, request, settings){ var object = $.deparam(settings.data); if(object.action === ‘add-tag’ && object.screen === ‘edit-category’ && object.taxonomy === ‘category’){ //DO RESET Your … Read more

hide certain template files in apearance editor

Yes, there is a way to hide template files from WordPress’ Appearance Editor. All you need to do is move the files so that it is two folders deep from your theme folder. theme-folder/two/folders/template.php Doing this should keep it from showing up in the editor. Hope this helps.

WordPress Admin Interface not styled properly

I believe the wordpress URL and site URl are not set right. Please try to edit your wp-config.php adding these lines: define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); Is your index on same folder as wp installation? if not, you need to place it there. I’m talking about placing the URL in the above lines, not the index on the … Read more

$content_width for responsive UI

When that variable was added to themes, was the July 2008. First time someone start talk about responsive design was the May 2010, two years later. Nowadays, that variable have lost is important (if ever it had one). Codex itself recommend to set the max width in css, like .size-auto, .size-full, .size-large, .size-medium, .size-thumbnail { … Read more