$aux_links_output .= '<li><a href="'.$login_url.'">'. __("Register", "swiftframework") .'</a>'. "\n";
$aux_links_output .= '<li><a href="'.$login_url.'">'. __("Login", "swiftframework") .'</a>'. "\n";
此代码显示注册和登录,但我想要在png中显示的图标代替显示。所以任何人都可以请求帮助我会感激。
答案 0 :(得分:1)
您必须在锚点中添加img标记:
$aux_links_output .= '<li><a href="'.$login_url.'">'. __("Register", "swiftframework") .'<img src="link to your icon" title="" alt=""/></a>'. "\n";
$aux_links_output .= '<li><a href="'.$login_url.'">'. __("Login", "swiftframework") .'<img src="link to your icon" title="" alt=""/></a>'. "\n";