Redirect to custom login page

You can redirect requests to wp-login.php to your page: add_action( ‘login_head’, function() { $parsed = parse_url($_SERVER[‘REQUEST_URI’]); $redirect = site_url(‘mypage’); if (!empty($parsed[‘query’])) { $redirect .= ‘?’.$parsed[‘query’]; } wp_safe_redirect($redirect,301); exit; } ); However, wp-login.php appears ~34 times in Core on my 3.6.1 install ( grep -Rn “wp-login.php” * | wc -l ), and many of those do … Read more

wp_nav_menu in 3.7 add name class nav navbar-nav

Edit In this case, it appears that the problem is that you’re not actually outputting a custom nav menu at all, but rather the menu fallback: wp_page_menu(). Notice that the classes for the list items are page-item rather than menu-item. That’s a sure giveaway that the output is being generated by wp_page_menu() rather than wp_nav_menu(). … Read more

Using existing widget code! [closed]

It depends entirely on the license of theme you’re intending to make a derivative work of. You’ll find a related debate on wordpress.org here: http://wordpress.org/support/topic/theme-licensing …and another individuals cumulative research on the matter here: http://bloggingexperiment.com/is-blogging-experiment-breaking-the-law Additionally, here’s an example of the a web designer legitimately modifying a premium theme on Theme Forest and reselling it … Read more