• I called my menu Left Nav and added login account and register and would like to add create campaign too, thses are all pages that exist. but the links do not resolve to registration, login or register after the code is added to functions.php file as is suggested it should why not? what is wrong here?

    add_filter('wp_nav_menu_items', 'my_account_link', 5, 2);
    function my_account_link($items, $args) {
    	if (class_exists('ID_Member')) {
    		$durl = md_get_durl();
    		if ($args->theme_location == '[Left Nav]') {
    			if (is_user_logged_in()) {
    				$items .= '<li class=""><a href="'.$durl.'">'.__('My Account', 'customizr').'</a>';
    				$items .= '<li class=""><a href="'.$durl.'?action=register">'.__('Create Account', 'customizr).'</a>';
    			}
    			else {
    				$items .= '<li class=""><a href="'.$durl.'">'.__('Login', 'customizr').'</a>';
    			}
    		}
    	}
    	return $items;<a href="http://crowdraisers.co.uk">
    }</a>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I have changed the customizr to Customizr and remain confused about whether there should be a capital but does not work with either anyway!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘why doesn't this code allow login registration etc in customizr’ is closed to new replies.