Category Archives: jquery

How to Create a Responsive Navigation Menu with jQuery and CSS3

I am assuming that you have some basic knowledge of CSS and know what is a Responsive Layout – including menus. In short responsive layout is when content display format adjusts to the viewport’s width and height. Also we are talking about horizontally laid out menus only for this tutorial. We have 2 ways to […]

Also posted in General, Web Design, Web Development | Comments closed

Ajax Call not Working for Non Admin Users in WordPress?

This problem sometimes occurs when you want to restrict access to WordPress dashboard. Typically you would like to redirect non admin users to another location (usually a front end custom admin panel) after they login, based on a ‘if admin’ conditional statement. Here is an example: function redirect_non_admin_user() { if ( !current_user_can(‘administrator’) ) { wp_redirect( […]

Also posted in Wordpress | Leave a comment